This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_nat [2025/07/14 08:26] val [Сервис NAT] |
сервис_nat [2025/10/20 07:20] (current) val [nftables] |
||
---|---|---|---|
Line 68: | Line 68: | ||
* [[https://wiki.nftables.org/wiki-nftables/index.php/Performing_Network_Address_Translation_(NAT)|Performing Network Address Translation (NAT)]] | * [[https://wiki.nftables.org/wiki-nftables/index.php/Performing_Network_Address_Translation_(NAT)|Performing Network Address Translation (NAT)]] | ||
* https://wiki.debian.org/nftables | * https://wiki.debian.org/nftables | ||
+ | |||
+ | * Сервис SalesPlatform Vtiger CRM Russian [[Сервис SalesPlatform Vtiger CRM Russian#Информация по установке в LXC]] | ||
<code> | <code> | ||
Line 75: | Line 77: | ||
gate# nft add table nat | gate# nft add table nat | ||
+ | |||
+ | gate# nft list tables | ||
gate# nft 'add chain nat postrouting { type nat hook postrouting priority srcnat ; }' | gate# nft 'add chain nat postrouting { type nat hook postrouting priority srcnat ; }' | ||
Line 94: | 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 | ||
+ | #oifname "eth1" masquerade | ||
} | } | ||
} | } |