This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_nat [2025/06/21 15:34] val [Debian/Ubuntu (iptables)] |
сервис_nat [2025/06/22 15:03] (current) val [Debian/Ubuntu (nftables)] |
||
---|---|---|---|
Line 163: | Line 163: | ||
==== Debian/Ubuntu (nftables) ==== | ==== Debian/Ubuntu (nftables) ==== | ||
- | |||
- | <code> | ||
- | root@gate:~# ==== Debian/Ubuntu (iptables) ==== | ||
<code> | <code> | ||
Line 181: | Line 178: | ||
ip daddr 172.16.1.X tcp dport { 25, 80, 143, 465, 587, 5222 } dnat to 192.168.X.10 | ip daddr 172.16.1.X tcp dport { 25, 80, 143, 465, 587, 5222 } dnat to 192.168.X.10 | ||
- | ip daddr 172.16.1.X udp dport { 5060, 10000-20000 } dnat to 192.168.X.10 | + | ip daddr 172.16.1.X udp dport { 10000-20000 } dnat to 192.168.X.10 |
+ | ip daddr 172.16.1.X udp dport { 5060 } dnat to 192.168.X.10:5060 | ||
+ | # ip daddr 172.16.1.X udp dport { 6050 } dnat to 192.168.X.10:5060 | ||
ip daddr 172.16.1.X tcp dport 5061 dnat to 192.168.X.10 | ip daddr 172.16.1.X tcp dport 5061 dnat to 192.168.X.10 | ||
ip daddr 172.16.1.X udp dport 4569 dnat to 192.168.X.10 | ip daddr 172.16.1.X udp dport 4569 dnat to 192.168.X.10 |