File: chain.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 (21 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
table filter {
    chain FOO {
        ACCEPT;
    }
    chain INPUT {
        # jump to previously declared chain
        proto tcp jump FOO;
        # jump to chain which is not yet declared
        proto udp jump BAR;
    }
    chain BAR {
        DROP;
    }

    chain (FORWARD OUTPUT) {
        LOG;
        @if @eq($CHAIN, FORWARD) ACCEPT;
        @if @eq($CHAIN, OUTPUT) DROP;
        @if @eq($CHAIN, INPUT) REJECT;
    }
}