Community discussions

MikroTik App
 
mrQQ
newbie
Topic Author
Posts: 27
Joined: Mon Jan 18, 2010 7:34 pm

Issue with 1:1 NAT

Mon Jan 18, 2010 7:40 pm

Hello,

consider following infrastructure:

wan -> Mikrotik -> lan

on WAN interface, Mikrotik has external IP adress, say 81.1.1.1. It is used to provide wan access for all the lan clients.

now, we need to have one of lan servers directly accessible from wan. So we have another IP address, 81.1.1.2. We've added this address to Mikrotik, and setup new NAT rules -> DST NAT to 81.1.1.2 -> 10.0.0.2, and SRC NAT 10.0.0.2 -> 81.1.1.2.

This seems to work fine.. almost.

The other LAN clients cannot access the server by external IP address, that is by 81.1.1.2. I've tried to play around with interface setting on NAT rules, and in one of configurations, it made it possible to ping the server from inside lan by external IP address, but it still would not work in IP protocols.

What (obvious) mistake am I doing here?

Thank you!
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Issue with 1:1 NAT

Tue Jan 19, 2010 4:28 pm

Please, post configuration of /ip firewall nat export.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Issue with 1:1 NAT

Tue Jan 19, 2010 8:10 pm

That is called hairpin NAT. Search the forums for workarounds. The most elegant solution in my opinion is split horizon DNS where you server a different zone to your inside clients so they contact the inside IP address directly.