PDA

View Full Version : [ubuntu] iptables rule to allow passive FTP


PC_Nerd
January 26th, 2009, 08:44 AM
Hi,

Im running ubuntu 8.04 server edition, iptables:

here is my current firewall setup...

Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere icmp echo-request
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


Im stumped on how to allow passive FTP through that firewall. I thought that the last INPUT chain rule would allow it on any port, but aparently now.

Thanks for any advice,
PC_Nerd

blackgr
January 26th, 2009, 08:57 AM
maybe you should take a look at this. It might help you.
http://osdir.com/ml/linux.debian.devel.firewall/2006-02/msg00020.html