0

I sorry to botther with this... I have a public IP 181.188.xxx.yyy and I have a Local IP range which is 192.168.10.0/24 on that range I have a Server which is 192.168.10.3 which runs different services on diffente ports, lets say Expressjs on 3000, Mongogb on 27017.

I have a Nat thar redirects from outside to public IP depending on the required port to the required service.

What I need to do, now is the inverse thing, detect when a local host is tryng to get an IP 181.188.xxx.yyy from internal network Mikrotik should forward to an Internal IP host.

Can Anyone lend me a hand with it please??

David L
  • 703
  • 6
  • 22

1 Answers1

0

That you describe sounds like a hair pin nat because in the network topology a web server behind a router is on private IP address space, and the router performs NAT to forward traffic to its public IP address to the web server behind it.

Please see here for more info.

David L
  • 703
  • 6
  • 22
  • Actually You are right, a hairpin nat solved my problem. I found a lot of information about it, yet not all wew quite good explained. This video solved my porblem within the first 3 minutes. https://www.youtube.com/watch?v=_kw_bQyX-3U&t=149s – Marce Sanchez Melgar May 31 '20 at 15:59
  • Configuring this, with a nginx reverse proxy! allowed me to have a shared hosting service, not only for my but also for some customers... What Id like to do now is to have some software that may help me to backup and deploy new services. – Marce Sanchez Melgar Jun 25 '20 at 13:38