nocom-kaboom/nftables.conf

12 lines
512 B
Plaintext
Raw Permalink Normal View History

2022-04-21 11:01:32 +00:00
#!/usr/sbin/nft -f
table inet nat {
2022-04-21 11:01:32 +00:00
chain POSTROUTING {
type nat hook postrouting priority srcnat; policy accept;
2022-04-21 11:19:05 +00:00
# /!\ DO NOT CHANGE THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING /!\
2022-04-21 11:20:52 +00:00
# Only change this line if you change the container destination port (the port AFTER the :),
2022-04-21 11:19:05 +00:00
# else IP Addresses will be leaked!!!
tcp dport 25565 snat ip to 192.0.2.0/24
tcp dport 25565 snat ip6 to 2001:db8::/32
2022-04-21 11:01:32 +00:00
}
}