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
сервис_nat [2024/04/23 13:57]
val [nftables]
сервис_nat [2024/04/23 14:00] (current)
val [nftables]
Line 71: Line 71:
 <​code>​ <​code>​
 gate### apt install nftables gate### apt install nftables
 +
 +gate# man nft
  
 gate# nft add table nat gate# nft add table nat
  
-gate# nft 'add chain nat postrouting { type nat hook postrouting priority ​100 ; }'+gate# nft 'add chain nat postrouting { type nat hook postrouting priority ​srcnat ​; }'
  
 gate# nft add rule nat postrouting ip saddr 192.168.X.0/​24 oif eth1 snat to 172.16.1.X gate# nft add rule nat postrouting ip saddr 192.168.X.0/​24 oif eth1 snat to 172.16.1.X
сервис_nat.txt · Last modified: 2024/04/23 14:00 by val