before sending, I have read this tutorial https://wiki.mikrotik.com/wiki/Hairpin_NAT but I could not work with.
I have multiple LAN Subnet and 1 Wan Interface with multiple Public IP.
Currently, for my LAN Subnet (dmz, lan..) is going out to internet with SRCNAT / SRCNAT and then I choose the SrcNat Action which Public Address I choose to go out for internet.
My LAN subnets are (on different interface):
- 172.10.10.0/24
- 192.168.1.0/24
- 192.168.2.0/24
- 100.100.100.1
- 100.100.100.2
- 100.100.100.2
- 100.100.100.2
Port Forwarding is working fine outside of Mikrotik Network:
- Chain DstNat Dest Addrr 1.1.1.2 Protocol TCP Dest Port 80 Int. interface: Wan - Action Dsnat To local IP 172.10.10.20 To Ports 80
I try the Hairpin_NAT with going out by the add chain=srcnat out-interface=WAN action=masquerade
Then I did:
/ip firewall nat
add chain=srcnat src-address=192.168.1.0/24 \
dst-address=172.10.10.20 protocol=tcp dst-port=80 \
out-interface=LAN action=masquerade
But each time I want access to 1.1.1.2, it is loading the mikrotik page -> it should be the 172.10.10.20 port 80 web page.
many thanks for your help