I'm having trouble getting hairpin NAT to work on my RB2011UAS-2HnD-IN (version 6.5)
I currently have this NAT settings:
Code: Select all
[admin@MikroTik] > /ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 / 1 -> disabled rules
2 ;;; masquerade
chain=srcnat action=masquerade out-interface=ether1-gateway
4 ;;; Hairpin NAT rule
chain=srcnat action=masquerade src-address=192.168.1.0/24 dst-address=192.168.1.250
5 ;;; SERV: FTP (this is a normal nat rule that works fine)
chain=dstnat action=dst-nat to-addresses=192.168.1.250 to-ports=20-21 protocol=tcp in-interface=ether1-gateway dst-port=20-21
- request to external IP
- router parses request, checks NAT rules to see what IP to forward and relays packet to that IP
However as far as I understand i need to add a special NAT rule for EVERY devices (the most rules go to 192.168.1.250) so that would be fine as well.
Thanks for any advice!