artois# iptables -P FORWARD DROP artois# iptables -A FORWARD -j ACCEPT -s 172.26.16.0/20 artois# iptables -A FORWARD -j ACCEPT -d 172.26.16.0/20 artois# iptables -t nat -A POSTROUTING -j MASQUERADE -s 172.26.16.0/20
# nft add table ip FILTER # nft add chain FILTER FORWARD { type filter hook forward priority 0\; policy drop\; } # nft add rule FILTER FORWARD ip saddr 172.26.16.0/20 accept # nft add rule FILTER FORWARD ip daddr 172.26.16.0/20 accept # nft add table ip NAT # nft add chain NAT POSTROUTING { type nat hook postrouting priority 100 \; } # nft add rule nat postrouting ip saddr 172.26.16.0/20 oif eth0 masquerade