Don't need gateways

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
2021-06-14 17:46:11 +02:00
parent ef9773365b
commit 8f8bd941af
3 changed files with 24 additions and 39 deletions

View File

@ -1,16 +0,0 @@
#!/usr/sbin/nft -f
flush ruleset
table ip nat {
chain prerouting {
type nat hook prerouting priority 0; policy accept;
}
chain postrouting {
type nat hook postrouting priority 0; policy accept;
ip saddr 10.2.1.0/30 masquerade;
ip saddr 172.17.0.0/16 masquerade;
}
}

View File

@ -8,6 +8,8 @@ table inet filter {
}
chain forward {
type filter hook forward priority 0; policy accept
ip6 saddr fd00:42::/32 dport { 80 } reject;
ip6 daddr fd00:42::/32 dport { 80 } reject;
accept
}
chain output {