aboutsummaryrefslogtreecommitdiff
path: root/modules/tlmp/proxy.rules
blob: e776387efe9588bb9b5acfe6f45303595197a8fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
table ip wg {
    chain prerouting {
        type nat hook prerouting priority -100; policy accept;
        tcp dport { 6881, 50300 } counter dnat to 10.10.10.2
    }

    chain outbound {
        type nat hook postrouting priority 100; policy accept;
	ip saddr 10.10.10.2 oif venet0 masquerade
        ip daddr 10.10.10.2 masquerade
    }

    chain forward {
        type filter hook forward priority 100; policy accept;
	ct state established,related accept
	iifname "wg0" accept
    }
}