File: hashlimit.result

package info (click to toggle)
ferm 2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,140 kB
  • sloc: perl: 2,839; sh: 126; makefile: 120
file content (5 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (4)
1
2
3
4
5
iptables -t filter -A INPUT -m hashlimit --hashlimit 10/minute --hashlimit-burst 30/minute --hashlimit-mode dstip --hashlimit-name foobar -j DROP
iptables -t filter -A INPUT -m hashlimit --hashlimit-htable-size 1024 --hashlimit-htable-max 4096 --hashlimit-htable-expire 600 --hashlimit-htable-gcinterval 180 -j ACCEPT
iptables -t filter -A INPUT -m hashlimit --hashlimit-mode dstip,srcip -j DROP
iptables -t filter -A INPUT -m hashlimit --hashlimit-upto 10/minute --hashlimit-mode dstip --hashlimit-dstmask 24 -j ACCEPT
iptables -t filter -A INPUT -m hashlimit --hashlimit-above 10/minute --hashlimit-mode srcip --hashlimit-srcmask 24 -j ACCEPT