from iptables to ipchains
can any one convert this rules from iptables to ipchains
/sbin/iptables -N syn-flood
/sbin/iptables -A INPUT -i eth0 -p tcp --syn -j syn-flood
/sbin/iptables -A syn-flood -m limit --limit 1/s --limit-burst 4 -j RETURN
/sbin/iptables -A syn-flood -j DROP
by the way, here is some info about those rules:
These rules will allow 4 connections in 1 second.
To change the amount of connections change the --limit-burst flag from 4 to whatever, or to change the time range change the --limit flag. After that, one of the 4 bursts are regained after each second, and it will re-allow that cnonnections; The default limit is 3 per hour, the default limit burst is 5. (1/s 4 in this example)
Change eth0 to any interface you might be using.
a person who asks a Questionis a fool for five minutes,
a person who doesn't is a fool Forever...