FTP between two linux systems inside a LAN
Hi.
I have searched for hours and didnt found something which is surely not so complicated. I want to transfer files between my two coputers (both linux Fedora) via ftp. I dont have any interest on remote access from outside into my lan. I can access from both machines remote ftp machines. I have installed vsftpd on both. I can do ftp on localhost without problems. When i try to do ftp on the other machine, i get allways "no route to host". I can do ssh on the other machine from both machines. I have no idea about firewalls, iptables and so on, so I need simple instructions, please (do this, do that, but please no theoretical things). My network: Machine 1: walter (192.168.2.10), fedora 9 Machine 2: egon (192.168.2.11), fedora 10 I have a modem-router Siemens, both are wire connected to the router. Thank you very much. |
Quote:
http://www.linuxhomenetworking.com/w...atus_of_VSFTPD If this doesn't work, we can try looking at your firewall. Install 'nmap' Then do the following *FROM BOTH MACHINES*: Code:
nmap -sT -P0 192.168.2.10 port 20-21 |
"no route to host" is a generic message indicating a network issue; it's not specific to FTP.
Run "/sbin/ifconfig" on both machines. Post results. On each machine, ping the other both via host name and ip address. Post results. run 'route' on both machines. Post results. Also, are your IP addresses assigned by the router, or did you set them yourself? Each time you post the results, copy and paste the actual text directly from the command line, and make sure that you use the 'code' tags here on linuxquestions.org; this makes the results much more legible. |
I had been already at that link some hours ago. I found it very helpful to install vsftpd, but it did not solve my problem.
Quote:
Code:
$ /usr/bin/nmap -sT -P0 192.168.2.10 port 20-21 Code:
$ /usr/bin/nmap -sT -P0 192.168.2.10 port 20-21 Quote:
Code:
$ ifconfig Code:
$ ifconfig Quote:
Code:
PING 192.168.2.10 (192.168.2.10) 56(84) bytes of data. Code:
PING 192.168.2.10 (192.168.2.10) 56(84) bytes of data. Quote:
Code:
$ route Code:
$ route Quote:
|
Quote:
... so only FTP gets a "no route to host" Last time I saw a post like that ... I think it was caused by IP Filtering ... it was posted within the last couple of days. |
New tries, but nothing
I have found this:
http://www.linuxquestions.org/questi...on-lan-104684/ I have added on /etc/sysconfig/iptables what is specified at that link at the bottom, but nothing. The /etc/sysconfig/iptables look like this: On 192.168.2.10: Code:
# Firewall configuration written by system-config-firewall Code:
# Firewall configuration written by system-config-firewall The iptables -L says: On 192.168.2.10: Code:
$ iptables -L Code:
$ iptables -L |
Do one thing:
1st of all stop your iptables sarvice and check the connectivity: # service iptables stop If it works fine then flush your iptables and then save iptables service # iptables -F # iptables -F -t nat # iptables -F -t mangle # service iptables save |
If you're running FTP across a firewall, there are a few things that you need to be aware of: a ftp server uses two ports. One port is the 'control port' usually port 21, used for sending and receiving FTP commands. The other port is the 'data port' on port 20.
The client side is more complicated; the ftp server will send commands and data back to unprivileged ports on the client (ports greater than 1023). Exactly how this is handled depends on whether you are in active or passive mode. Check http://slacksite.com/other/ftp.html for a nice clear explanation. Given all of these intricacies, you may want to consider using SFTP instead of FTP. It runs on port 22, it's part of the OpenSSH suite, it's secure, and it looks and feels just like FTP. |
One more information:
http://www.linuxquestions.org/questi...ive-ftp-22127/ |
Maybe you could make this all a lot simpler:
I don't run any firewalls on my LAN, because I trust the machines on my LAN. I do run a firewall on my modem/router. So the Big Bad Interweb is firewalled, but my LAN is trusted and trusting. Works for me. BTW, if you are running KDE then the fish://username@LAN_HostName protocol in konqueror is awesome. You just drag & drop files between PCs. You need to have ssh installed though (easy enough). |
Quote:
Code:
/usr/bin/nmap -sT -P0 192.168.2.10 -p 20-21 Is this just a simple networking problem? Are you configured cleanly? Could you have an entry in /etc/hosts that is in conflict or something? |
Quote:
|
All times are GMT -5. The time now is 11:14 AM. |