I've checked a lot of forums, and I still can't make it work.
First of all when I stop iptables everything works fine.
Now configuration:
Code:
*filter
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
..........
-A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -i eht0 -p tcp --dport 21 -j ACCEPT
..........
COMMIT
also in /etc/sysconfig/iptables-config I have
Code:
IPTABLES_MODULES="ip_conntrack_netbios_ns ip_nat_ftp ip_conntrack_ftp"
and they load without any errors.
Can someone tell me what am I doing wrong?
Also whats the difference between next 2 statements:
Code:
-A INPUT -i eth0 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
Code:
-A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT