Community discussions

MikroTik App
 
bsomhz
just joined
Topic Author
Posts: 13
Joined: Tue Jul 18, 2017 7:23 am

Access own public IP

Fri Sep 07, 2018 1:09 pm

I have mapped my internal server to Public IP, it is accessible from the external network but is not accessible from the internal network. How could I access Public IP from internal network?
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3300
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Access own public IP

Fri Sep 07, 2018 1:14 pm

If you use MT as a DNS serer, you can add a private IP to your DNS server.
When you are hope and do a lookup of myserver.dyddns.org it respond with IP 192.168.88.50
And when you use a public DNS, you get your outside IP.
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Access own public IP

Fri Sep 07, 2018 1:28 pm

Smells like hairpin nat here.
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: Access own public IP

Fri Sep 07, 2018 6:12 pm

With description, images and everything: http://wiki.mikrotik.com/wiki/Hairpin_NAT
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3300
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Access own public IP

Fri Sep 07, 2018 8:50 pm

I do have several web server on different ports and on different host, I would recommend a combination of DNS server and a reverse proxy server like HAProxy.

From Outside
You add a DNS pointer to your outside IP.
MT dos nat port 80 to your proxy server.
Proxy server sends you to the correct server.
Eks webcam on port 8080
Web server on port 80
Management server on port 80
etc

From Inside
Add DNS entry on your DNS to point to Proxy server.

Who is online

Users browsing this forum: No registered users and 26 guests