LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-29-2006, 02:26 PM   #1
anon212
LQ Newbie
 
Registered: Dec 2005
Distribution: Ubuntu 16.04.02 x64
Posts: 14

Rep: Reputation: 0
Ftp unreachable on same subnet


Is there a better way to xfer files. Am I doing things the wrong way?
----------------------------------------------------------------

I need to transfer some files between my local lan boxes. The same account names and passwords exist on both boxes.

In order to xfer files from one FC4 box (192.168.0.5) to
another FC4 box (192.168.0.3). I installed VSFTPD on 192.168.0.5.

From 192.168.0.5 I can successfully FTP 'open' 192.168.0.5 and see the files needing transfer.

From 192.168.0.3 I can ping and traceroute to 192.168.0.5.

However when I try FTP 'open' 192.168.0.5, from 192.168.0.3, it says there is no route to the host.

Ethereal shows 192.168.0.3 & 192.168.0.5 talking on the wire. It also shows an ICMP Destination unreachable packet.

Thanks for any help.

ps: Both 192.168.0.3 & 192.168.0.5 can access the internet, without any problems, via an IPCOP gateway at 192.168.0.1.

Last edited by anon212; 05-29-2006 at 02:51 PM.
 
Old 05-29-2006, 03:01 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
For your first question, I prefer to use SSH to copy files and as an FTP replacement. It's easy to use and you can use it across unsecured networks. It is slower as ftp because it encrypts traffic. Still, it fits my needs.

For your second question, check to what interface your FTP server is bound. It could be that it is only listening to the loopback interface (lo, also 127.0.0.1), whereas it should be bound to the network interface (typcially eth0, in your case 192.168.0.5).

What is the exact error message you are getting?
 
Old 05-29-2006, 06:06 PM   #3
anon212
LQ Newbie
 
Registered: Dec 2005
Distribution: Ubuntu 16.04.02 x64
Posts: 14

Original Poster
Rep: Reputation: 0
Error Messages

I would like to use SSH and SCP too. Then I would not have to stop the VSFTPD service when I surf the internet.

----------------------------------------------------------

From 192.168.0.3;

FTP
[mark@whatever ~]$ ftp
ftp> open 192.168.0.5
ftp: connect: No route to host

SSH
[mark@whatever ~]$ ssh 192.168.0.5
ssh: connect to host 192.168.0.5 port 22: No route to host

PING
[mark@whatever ~]$ ping 192.168.0.5
PING 192.168.0.5 (192.168.0.5) 56(84) bytes of data.
64 bytes from 192.168.0.5: icmp_seq=0 ttl=64 time=0.417 ms
64 bytes from 192.168.0.5: icmp_seq=1 ttl=64 time=0.484 ms

TRACEROUTE
[mark@whatever ~]$ traceroute 192.168.0.5
traceroute to 192.168.0.5 (192.168.0.5), 30 hops max, 38 byte packets
1 192.168.0.5 (192.168.0.5) 0.596 ms !<10> 0.708 ms !<10> 0.554 ms !<10>


ETHEREAL
No. Time Source Destination Protocol Info
1 0.000000 192.168.0.3 192.168.0.5 TCP 40790 > ftp ...

2 0.000288 192.168.0.5 192.168.0.3 ICMP Destination unreachable (Host administratively prohibited)

3 4.998883 Intel-Hf_f1:e7:7c 3com_0f:72:1b ARP Who has 192.168.0.5? Tell 192.168.0.3

4 4.999106 3com_0f:72:1b Intel-Hf_f1:e7:7c ARP 192.168.0.5 is at 00:10:5a:0f:72:1b
 
Old 05-30-2006, 01:41 AM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Can you post the output of command `route` from your .3 and your .5 machines?
 
Old 06-01-2006, 08:36 PM   #5
anon212
LQ Newbie
 
Registered: Dec 2005
Distribution: Ubuntu 16.04.02 x64
Posts: 14

Original Poster
Rep: Reputation: 0
Resolved!, Was the firewall.

About a half hour ago I realized that I had enabled the Fedora firewall on the 192.168.0.5 box.

I changed its security level configuration to allow FTP and SSH through the firewall. Now everything works.

I successfully FTPed and SSHed between 192.168.0.3 and 192.168.0.5

Thanks for your support!

Sorry to have wasted your time on something so stupid on my part. :-(



Sincerely,
NewbieMark

Last edited by anon212; 06-01-2006 at 08:40 PM.
 
Old 06-02-2006, 01:31 AM   #6
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Well, maybe we wasted your time by not asking the right questions ;-)
Glad it works.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables accept ftp port only to specific subnet GUIPenguin Linux - Security 2 09-29-2005 10:24 AM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM
Subnet changed = Network Unreachable scorchen Linux - Networking 3 09-18-2003 04:13 PM
tftp - "Destination Unreachable" due to "Port Unreachable" renjithgopal Linux - Security 5 07-24-2003 10:36 AM
Can IP from different subnet be configured on another subnet russell Linux - Networking 1 08-23-2002 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration