Ok I have the following iptables file:
Code:
# Generated by webmin
*filter
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A FORWARD -o venet0 -j LOG --log-level 7 --log-prefix BANDWIDTH_OUT:
-A FORWARD -i venet0 -j LOG --log-level 7 --log-prefix BANDWIDTH_IN:
-A OUTPUT -o venet0 -j LOG --log-level 7 --log-prefix BANDWIDTH_OUT:
-A INPUT -i venet0 -j LOG --log-level 7 --log-prefix BANDWIDTH_IN:
COMMIT
# Completed
# Generated by webmin
*mangle
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
# SSHD Abuse #1
-A INPUT -s x.x.x.x -j DROP
# SSHD Abuse #2
-A INPUT -s x.x.x.x -j DROP
COMMIT
# Completed
When I try to apply my changes I get the following:
Code:
Failed to apply configuration :
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: mangle filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: iptables-restore: line 10 failed
[FAILED]
I'm using webmin to edit the rules, and if thats the source of the problem i can figure a way around it but I dont see anything that would cause that in the file. Of course the x.x.x.x's are real ip addresses but no one wants to know those

It looks like the line that is failing is COMMIT, but without this the rules wont show up. Any suggestions?