aboutsummaryrefslogtreecommitdiff
path: root/test/example_config/wg1/nftables.conf
blob: 048178a151459dd8591c3ceb3965788bb5ac6533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
table ip wg1 {
  chain preraw {
    type filter hook prerouting priority raw; policy accept;
    iifname != "wg1" ip daddr 10.55.127.342 fib saddr type != local drop;
  }

  chain premangle {
    type filter hook prerouting priority mangle; policy accept;
    meta l4proto udp meta mark set ct mark;
  }

  chain postmangle {
    type filter hook postrouting priority mangle; policy accept;
    meta l4proto udp meta mark 0x25db0647 ct mark set meta mark;
  }
}

table ip6 wg1 {
  chain preraw {
    type filter hook prerouting priority raw; policy accept;
    iifname != "wg1" ip6 daddr ab00:aaaa:aaa:aa02::5:abcd fib saddr type != local drop;
  }

  chain premangle {
    type filter hook prerouting priority mangle; policy accept;
    meta l4proto udp meta mark set ct mark;
  }

  chain postmangle {
    type filter hook postrouting priority mangle; policy accept;
    meta l4proto udp meta mark 0x25db0647 ct mark set meta mark;
  }
}