![]() |
|
|||||||
| 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.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
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. |
|
||||
|
Describe the make/model of your router, and the FTP port forwarding you have provisioned.
__________________
OpenBSD LiveCDs/LiveDVDs Last edited by jggimi; 25th September 2009 at 04:04 PM. |
|
|||
|
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. |
|
||||
|
OK. -Now- I understand the problem.
Your choice of FTP server eliminates passive FTP as a possibility, since it resides behind a NAT router. Google "vsftpd nat" and read the first link.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
||||
|
FTP is an ornary beast, especially when you link it up with NAT and firewalls. I'd recommend doing some basic research so you know what FTP is trying to do.
Depending on what features your router has, it may not even be possible. You really are going to need a ftp proxy of some sort.
__________________
The only dumb question is a question not asked. The only dumb answer is an answer not given. |
|
||||
|
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
__________________
OpenBSD LiveCDs/LiveDVDs |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| 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 |