I want to allow incoming FTP traffic.
This is my
# Generated by iptables-save v1.3.5 on Thu Oct 3 21:23:07 2013 *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [133:14837] -A INPUT -p tcp -m tcp --dport 21 -j ACCEPT -A INPUT -p tcp -m state --state ESTABLISHED -j ACCEPT -A INPUT -j REJECT --reject-with icmp-port-unreachable -A OUTPUT -p tcp -m tcp --sport 20 -j ACCEPT COMMIT # Completed on Thu Oct 3 21:23:07 2013
Also, by default, ip_conntrack_netbios_n module is getting loaded.
#service iptables restart Flushing firewall rules: [ OK ] Setting chains to policy ACCEPT: filter [ OK ] Unloading iptables modules: [ OK ] Applying iptables firewall rules: [ OK ] Loading additional iptables modules: ip_conntrack_netbios_n[ OK ]
But the problem is not with that module, as I tried unloading it and still no luck.
If I disable iptables, I am able to transfer my backup from another machine to FTP. If iptables is enforcing, then transfer failed.