FTP server stuck in passive with iptables running.
I have a (gentoo) server that runs samba and pureftp. It runs fine when I have iptables stopped. However when I start iptables the FTP only connects in passive mode, so it won't list files or folders etc.
As soon as I turn iptables off it works fine.
Would anyone know what chain I would need to add into iptables to allow this to work properly? Below is what I used to allow ftp through my firewall...
iptables -A INPUT -i eth0 -p tcp -m multiport --dport 20,21 -j ACCEPT
iptables -A INPUT -i eth0 -p udp -m multiport --dport 20,21 -j ACCEPT
Can anyone see what I have done wrong? Thanks alot.