![]() |
|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hi all!
I am trying to configure VSFTPD to run on a box which is behing a router. I can access it from inside the local network but not from outside. This is my config file: Quote:
What am I doing wrong? Thank you |
|
||||
![]()
Sunsawe: to clarify Carpetsmoker's question:
We can assume your router does Network Address Translation (NAT), so that all of the devices behind it share one single Internet address, and the systems on the local network are using "private" Internet addresses in one of these three ranges, per RFC 1918:
Since all of the devices on your private LAN share the same Internet address, your router must keep track of the state of all sessions that go through it. This is automatic, for traffic that is initiated inside your LAN, headed out to the Internet. However, for -services- you operate, such as FTP, there is no pre-existing state to keep track of -- incoming traffic to the router from the Internet has to go somewhere, and your router must be told where on your LAN to forward it. See your router owner's manual. --- So a NAT router acts something like a firewall, in that if you have not set up a service on it, any unanticipated incoming traffic will be rejected, since the router doesn't know what to do with it. |
|
|||
![]()
Hi,
There is actually no firewall activated on the box (which runs a Freebsd 7.2). Regarding the router, I assume it is ok as I can access other services (http, ssh, database...). I can open the connexion to the ftp, but the server replies to the client with a local address (192.168....) thus it fails. The error occurs when the client sends the PORT command. |
|
|||
![]()
Thank you for your reply.
Please don't take it the wrong way but I think this has nothing to do with the router settings. This is what appears in the client dialog window: Quote:
From an other client, I get this: Quote:
Last edited by Sunsawe; 26th September 2009 at 12:27 AM. |
|
||||
![]()
There's a good discussion of active/passive FTP and NAT in OpenBSD's PF Users Guide -- If Sunsawe replaces the turnkey SOHO router with FreeBSD or OpenBSD, PF and a version of ftp-proxy are available.
http://www.openbsd.org/faq/pf/ftp.html |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
VSFTPD Server Issues!! | disappearedng | FreeBSD General | 5 | 24th October 2008 08:47 AM |
VSFTPD SERVER | disappearedng | FreeBSD General | 1 | 21st October 2008 04:12 AM |
VSFTPd: pid file | kostromin | FreeBSD Ports and Packages | 0 | 4th July 2008 08:35 AM |
vsftpd stucks in close() | sunnyone | FreeBSD Ports and Packages | 0 | 10th June 2008 10:49 AM |
[VSFTPD] Can't write in directory | Sunsawe | General software and network | 7 | 1st June 2008 11:29 PM |