2022-04-21 11:01:32 +00:00
|
|
|
#!/usr/sbin/nft -f
|
|
|
|
|
2023-02-24 18:43:57 +00:00
|
|
|
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!!!
|
2023-02-24 18:43:57 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|