File: tcp.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 (15 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
chain INPUT {
    proto tcp dport 22 ACCEPT;
    proto tcp dport ! 22 DROP;
    proto tcp {
        tcp-flags (SYN FIN RST) SYN DROP;
        tcp-flags ! (SYN RST) RST ACCEPT;
        tcp-flags ! RST RST REJECT;
        syn REJECT;
        !syn ACCEPT;
        tcp-option 2 ACCEPT;
        tcp-option ! 3 DROP;
        tcp-option (4 5) REJECT;
        mss 100:200 DROP;
    }
}