Hi all.
I want to limit bandwidth by using tc and iptables flowing:
http://lartc.org/howto/lartc.cookboo...nat.intro.html
When I mark packets using commands:
....
iptables -t mangle -A PREROUTING -p icmp -j MARK --set-mark 0x1
....
I try testing this system without iptables save, it works well.
Then, i save iptables, it's OK. But i restart iptables, it's failed.
Quote:
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: nat mangle [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: iptables-restore: line 9 failed
[FAILED]
|
line 9 it contain COMMIT.
line 8 it contain:
-A PREROUTING -p tcp -j MARK --set-mark 0x1
i think there is the error in line 8. So, I delete line 8 in iptables file. Restart, it's OK, no error.
Of course, it can't mark packets and system can't run well.
What can i do to fix this error?
Thanks all.