All. I have fixed it using another IPTABLES command: * iptabes -A PREROUTING -t nat -p tcp -m tcp --dport 21 -j REDIRECT --to-ports 10121*
This appears to fix the connection problem. Thank you for all your help. On Fri, Mar 12, 2010 at 3:19 PM, Aidan Diffey <[email protected]>wrote: > It looks like when not running as root it is failing the EPSV command and > falling back to normal PASV mode. > > One of my friends has just pointed out that there may be an issue using FTP > with iptables and NAT. > > > On Fri, Mar 12, 2010 at 3:09 PM, Niklas Gustavsson > <[email protected]>wrote: > >> On Fri, Mar 12, 2010 at 3:54 PM, Aidan Diffey >> <[email protected]> wrote: >> > *--ROOT--- >> > EPSV >> > 229 Entering Passive Mode (|||40112|) >> > >> > --NO ROOT USER-- >> >> > EPSV >> > 229 Entering Passive Mode (|||46726|) >> > PASV >> > 227 Entering Passive Mode (10,101,64,144,172,26) >> > 227 Entering Passive Mode (10,101,64,144,172,26) >> >> How come the client sends different commands depending on wether you >> run the server as root or not, seems odd? >> >> /niklas >> > >
