File: hashlimit.ferm

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 (17 lines) | stat: -rw-r--r-- 509 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
table filter chain INPUT mod hashlimit {
    hashlimit 10/minute  hashlimit-burst 30/minute
    hashlimit-mode dstip  hashlimit-name foobar
    DROP;
    hashlimit-htable-size 1024  hashlimit-htable-max 4096
    hashlimit-htable-expire 600  hashlimit-htable-gcinterval 180
    ACCEPT;
    hashlimit-mode (dstip srcip) DROP;
    hashlimit-upto 10/minute
    hashlimit-mode dstip
    hashlimit-dstmask 24
    ACCEPT;
    hashlimit-above 10/minute
    hashlimit-mode srcip
    hashlimit-srcmask 24
    ACCEPT;
}