Date: Tue, 09 Apr 2002 21:11:17 -0500 From: Stephen Hoover <shooverfbn@442spot.com> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: FTP & NAT?? Message-ID: <LKEGLDFEGPHGICLNAALGEEKCCFAA.shooverfbn@442spot.com>
next in thread | raw e-mail | index | archive | help
Got a situation here I could use some help with. I have an FTP server that is behind a firewall. When I have the FTP ports set to 20 & 21, the ports open on the router etc - the outside client can connect no problem. If I look at net stat I see: tcp4 0 0 mail.12345 adsl-208-191-192.1033 TIME_WAIT tcp4 0 0 mail.ftp adsl-208-191-192.1031 ESTABLISHED Now if I move the FTP service to another port, say 4419 & 4420 for example, the client can connect but when trying to do a ls, it goes into PASV mode and hangs. Again the ports are open on the router of course. This is what I see in netstat: tcp4 0 0 mail.42869 *.* LISTEN tcp4 0 0 mail.ftp adsl-208-191-192.1034 ESTABLISHED Now this tells me that my server doesn't know where to send the control port back to. My question is why? What does changing the ports have to do with the way it works? Is it because ports 20 & 21 are common and known? I am using WU-FTPD 2.6.2 and the client is also behind a dynamic NAT firewall. Thanks! Stephen Hoover Dallas, Texas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?LKEGLDFEGPHGICLNAALGEEKCCFAA.shooverfbn>