Hairpin NAT Reflection mode for port forwards – iptables solution

A.A.A.A is your real ip

iptables -t nat -A PREROUTING -d A.A.A.A -j DNAT --to-destination 192.168.1.200
iptables -t nat -A POSTROUTING -d 192.168.1.200 -s 192.168.1.0/24 -j SNAT --to-source 192.168.1.1

Deixe uma resposta