Does anyone know how to enable NAT reflection?
My LAN cant see the web and other services running on the WAN IP
I can connect to the internal IPs, but how can we access our WAN IP internally?
Cheers
centos enable NAT reflection
Re: centos enable NAT reflection
Fixed use iptables
-A PREROUTING -i <local-network-device eth0 for me> -s <ip range you want to redirect 192.168.0.0/24 for me> -d <your WAN IP that your accessing inside> -p tcp -m tcp --dport <which port> -j DNAT --to-destination <localmachineip:port>
-A PREROUTING -i eth0 -s 192.168.0.0/24 -d xx.xx.xx.xx -p tcp -m tcp --dport 21 -j DNAT --to-destination xx.xx.xx.xx:21
-A PREROUTING -i <local-network-device eth0 for me> -s <ip range you want to redirect 192.168.0.0/24 for me> -d <your WAN IP that your accessing inside> -p tcp -m tcp --dport <which port> -j DNAT --to-destination <localmachineip:port>
-A PREROUTING -i eth0 -s 192.168.0.0/24 -d xx.xx.xx.xx -p tcp -m tcp --dport 21 -j DNAT --to-destination xx.xx.xx.xx:21