ok... never dealt with iptables before. nothing fancy here, a few simple rules. im getting an error. iptables-restore: line 32 failed when i run...
iptables-restore /etc/iptables.conf
line 32 is the COMMIT, and here is my /etc/iptables.conf file.
# the filter table.
*filter
# default rules.
# used when no rules are found (to match) in the chain.
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
# allow loopback (local).
-A INPUT -i lo -j ACCEPT
# allow oblivion connections on port 22 (ssh)
-A INPUT -s 10.1.1.2 -m tcp --dport 22 -j ACCEPT
# drop (all) invalid connections.
-A INPUT -m state --state INVALID -j DROP
-A OUTPUT -m state --state INVALID -j DROP
-A FORWARD -m state --state INVALID -j DROP
# allow all established and related connections.
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
COMMIT
Im following this and this as examples, though I only have 1 pc exposed to the internet.
Im in a gentoo machine if that makes any diiference.
can anyone help? Im hoping its just a syntax error im too blind to see.