centos enable NAT reflection

Customer support forums for Atomic Protector (formerly Atomic Secured Linux). There is no such thing as a bad question here as long as it pertains to using Atomic Protector. Newbies feel free to get help getting started or asking questions that may be obvious. Regular users are asked to be gentle. :-)
aus-city
Forum Regular
Forum Regular
Posts: 685
Joined: Thu Oct 26, 2006 11:56 pm

centos enable NAT reflection

Unread post by aus-city »

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
aus-city
Forum Regular
Forum Regular
Posts: 685
Joined: Thu Oct 26, 2006 11:56 pm

Re: centos enable NAT reflection

Unread post by aus-city »

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
Post Reply