This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
сервис_nat [2024/04/23 13:11] val [nftables] |
сервис_nat [2024/04/23 13:15] val [nftables] |
||
---|---|---|---|
Line 71: | Line 71: | ||
<code> | <code> | ||
gate### apt install nftables | gate### apt install nftables | ||
+ | |||
+ | gate# nft add table nat | ||
gate# nft add rule nat postrouting ip saddr 192.168.X.0/24 oif eth1 snat to 172.16.1.254 | gate# nft add rule nat postrouting ip saddr 192.168.X.0/24 oif eth1 snat to 172.16.1.254 |