GTUTO
https://www.gtuto.com/iptables-nat/
Export date: Fri Apr 19 10:48:49 2024 / +0000 GMT

IPTABLES NAT


192.168.1.20 lan sort sur internet par le wan xxx.xxx.xxx.xxx
iptables -t nat -A POSTROUTING -s 192.168.1.20/32 -o eth0 -j SNAT --to-source xxx.xxx.xxx.xxx

"xxx.xxx.xxx.xxx:3333 -> 192.168.1.12:3389
iptables -t nat -A PREROUTING -d xxx.xxx.xxx.xxx/32 -i eth0 -p tcp -m tcp --dport 3333 -j DNAT --to-destination 192.168.1.12:3389


"xxx.xxx.xxx.xxx -> plage de port
iptables -t nat -A PREROUTING -d xx.xxx.xxx.xxx/32 -i eth0 -p udp -m udp --dport 10000:20000 -j DNAT --to-destination 192.168.1.11:10000-20000
Post date: 2021-06-09 14:08:16
Post date GMT: 2021-06-09 14:08:16

Post modified date: 2021-06-09 14:08:17
Post modified date GMT: 2021-06-09 14:08:17

Export date: Fri Apr 19 10:48:49 2024 / +0000 GMT
This page was exported from GTUTO [ https://www.gtuto.com ]
Export of Post and Page has been powered by [ Universal Post Manager ] plugin from www.ProfProjects.com