Page 1 of 1

Reverse NAT example for webserver

Posted: Thu Mar 09, 2017 12:20 pm
by kryptonite
I would like to get an example of reverse NAT for the below NAT command.

add action=dst-nat chain=dstnat dst-address=123.23.43.123 dst-port=80 protocol=tcp to-addresses=10.10.0.3

The end goal is the user should be able to access the webserver from within the network exactly how he would when he is outside the network.

Re: Reverse NAT example for webserver

Posted: Thu Mar 09, 2017 1:30 pm
by chippers
There is no need.

IP > DNS > Static

create new static record:
name www.mywebpage
Address 10.10.0.3

Re: Reverse NAT example for webserver

Posted: Thu Mar 09, 2017 2:08 pm
by Sob
There's also hairpin NAT. Compared to setting DNS record, it's more set it & forget it, which is what people usually like.

Re: Reverse NAT example for webserver

Posted: Mon Mar 13, 2017 8:58 am
by kryptonite
Thank you very much, the Hair pin NAT is exactly what I need !
I was indeed using static DNS to overcome this but wanted this to be automatic for any new web services we add for our internal servers. !