Hello everyone,
I am trying to set up my hairpin NAT but no matter what I do can’t seem to make it work. I have two PPPOE WAN IPs and I have tried using:
The second rule is almost correct, provided that dst-address is the one to which you want to hairpin nat and you’ve made the rest of your configurarion properly as @anav already said:
I have also tried putting 192.168.10.10 as the dst-address which is my internal proxy and where the traffic needs to go, but still no luck.
Like I have said, I tried all the ins-and-outs over the internet and can’t seem to make it work. I think it has something to do with my policy based routing, just saying, I don’t know.
More likely your DST-NAT rule is not working as you intended. Using in-interface or in-interface-list limits the rules to those interfaces which local users do not reach.
Secondly, I think the problem is that the Hairpin NAT rule is before the dst-nat rule whereas it should be the opposite because rules in Mikrotik are processed in ascending order (from top to bottom)
Thank you very much for your help guys.
In the end I followed DeadStik advice and by removing the In. Interface from the DST-NAT rule, the HairPin NAT started working.
@TheCat12 just curious how you manage to put those ports in the to-ports section of the rule, because it does not let me. I can go with one port or a range but not ports separated by a comma.