Ftp

From KeegansWiki
Revision as of 10:39, 4 November 2011 by Keegan (talk | contribs) (Created page with "=Allow passive ftp through iptables= #grep IPTABLES_MODULES /etc/sysconfig/iptables-config IPTABLES_MODULES="ip_conntrack_ftp ip_conntrack_netbios_ns" #grep 21 /etc/sysconfig/...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Allow passive ftp through iptables

#grep IPTABLES_MODULES /etc/sysconfig/iptables-config
IPTABLES_MODULES="ip_conntrack_ftp ip_conntrack_netbios_ns"
#grep 21 /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT