||11-26-2012 01:17 AM
iptables, Error occurred at line 7
My box is scientific Linux 6.3 x64, and I am trying to test "the program for iptables and dyndns at http://www.geeklab.info/2011/02/ipta...d-dynamic-dns/
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -j DYNAMIC
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
# service iptables restart
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: iptables-restore v1.4.7: iptables-restore: line 7 policy invalid
Error occurred at line: 7
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
The code of Line 7 is this.
Any comment for this would be appreciated.
Thanks in advance.