This commit is contained in:
tmferreira-ti
2025-09-12 09:12:54 -03:00
parent fc32e8a043
commit 2aac7249ea
6 changed files with 146 additions and 0 deletions

13
Router/nftables.conf Normal file
View File

@@ -0,0 +1,13 @@
table ip nat {
chain POSTROUTING {
type nat hook postrouting priority srcnat; policy accept;
oifname "enp0s3" counter packets 71 bytes 4910 masquerade
}
chain PREROUTING {
type nat hook prerouting priority dstnat; policy accept;
tcp dport 10001 counter packets 0 bytes 0 dnat to 192.168.200.3:22
tcp dport 10000 counter packets 0 bytes 0 dnat to 172.17.0.2:22
tcp dport 10002 counter packets 0 bytes 0 dnat to 192.168.200.2:22
}
}