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 [2026/04/04 06:33]
val
сервис_nat [2026/10/21 16:43] (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.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
         }         }
Line 103: Line 105:
 </​code><​code>​ </​code><​code>​
 gate# nft -c -f /​etc/​nftables.conf gate# nft -c -f /​etc/​nftables.conf
 +
 +gate# ###​systemctl enable nftables.service --now
  
 gate# systemctl reload nftables.service gate# systemctl reload nftables.service
сервис_nat.1775273605.txt.gz · Last modified: 2026/04/04 06:33 by val