User Tools

Site Tools


сервис_nat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_nat [2025/10/20 07:20]
val [nftables]
сервис_nat [2026/04/28 11:41] (current)
val [nftables]
Line 98: Line 98:
                 type nat hook postrouting priority srcnat; policy accept;                 type nat hook postrouting priority srcnat; policy accept;
                 ip saddr 192.168.100+X.0/​24 oif "​eth1"​ snat to 172.16.1.X                 ip saddr 192.168.100+X.0/​24 oif "​eth1"​ snat to 172.16.1.X
 +                #ip saddr 192.168.X.10 oif "​eth1"​ snat to 172.16.1.X
                 #oifname "​eth1"​ masquerade                 #oifname "​eth1"​ masquerade
         }         }
 } }
 </​code><​code>​ </​code><​code>​
 +gate# nft -c -f /​etc/​nftables.conf
 +
 gate# systemctl reload nftables.service gate# systemctl reload nftables.service
 </​code>​ </​code>​
сервис_nat.1760934019.txt.gz · Last modified: 2025/10/20 07:20 by val