Pureftpd doesn't accept connections behind NAT

versello

2[H]4U
Joined
Nov 19, 2003
Messages
2,061
I have pureftpd set up on my box (it has its own static IP), but when I go to connect, everything authenticates fine, but then I get the following error when connecting...

COMMAND:> REST 0
350 Restarting at 0
COMMAND:> PBSZ 0
200 PBSZ=0
COMMAND:> PROT P
534 Fallback to [C]
COMMAND:> PORT 192,168,#,#,11,98
500 I won't open a connection to 192.168.#.# (only to 6.#.#.#)
ERROR:> Syntax error, command unrecognized.
ERROR:> Failed to establish data socket.


The IP 6.#.#.# is the external IP of my router, while 192.168.#.# is the private IP of the computer I use. Any insight would be appreciated.
 
Are you trying to connect from inside or outside your network? It almost sounds like an address binding issue - like pureftp is bound to a 6.x.x.x address, but it is actually running on a 192.168.x.x address. I've never used pureftpd, but there's probably a 'listen' or 'bind-to' setting somewhere in the configs that might need to be changed.
 
If you're using an IPtables firewall, you may need the ip_nat_ftp and ip_conntrack_ftp modules; if "iptables -L" has any rules defined, it's worth a try to add those (just "modprobe MODNAME").

 
Back
Top