Community discussions

MikroTik App
 
kryptonite
just joined
Topic Author
Posts: 14
Joined: Tue Dec 15, 2015 4:25 pm

Reverse NAT example for webserver

Thu Mar 09, 2017 12:20 pm

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.
 
chippers
newbie
Posts: 28
Joined: Tue Apr 02, 2013 7:45 am

Re: Reverse NAT example for webserver

Thu Mar 09, 2017 1:30 pm

There is no need.

IP > DNS > Static

create new static record:
name www.mywebpage
Address 10.10.0.3
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Reverse NAT example for webserver

Thu Mar 09, 2017 2:08 pm

There's also hairpin NAT. Compared to setting DNS record, it's more set it & forget it, which is what people usually like.
 
kryptonite
just joined
Topic Author
Posts: 14
Joined: Tue Dec 15, 2015 4:25 pm

Re: Reverse NAT example for webserver

Mon Mar 13, 2017 8:58 am

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. !

Who is online

Users browsing this forum: escape214 and 14 guests