Hello, I am sorry if this specific topic has been covered. I tried searching and could not find a solution.
My public IP is assigned through DHCP. All of the examples for hairpin NAT seem to be for static public IP addresses.
I have NAT rules set up like below. They work as expected from the Internet, but I cannot nail down the hairpin rule and get this working.
0 ;;; defconf: masquerade
chain=srcnat action=masquerade out-interface-list=WAN ipsec-policy=out,none
1 ;;; HTTP
chain=dstnat action=dst-nat to-addresses=192.168.0.26 to-ports=80 protocol=tcp in-interface-list=WAN dst-port=80 log=no log-prefix=""
2 ;;; HTTPS
chain=dstnat action=dst-nat to-addresses=192.168.0.26 to-ports=443 protocol=tcp in-interface-list=WAN dst-port=443 log=no log-prefix=""
I have tried this, but it isnt getting me anywhere:
chain=srcnat action=masquerade protocol=tcp src-address=10.1.0.0/24 dst-address=10.1.0.0/24 out-interface=local log=no log-prefix=""
Any help is appreciated, thanks.
-Gani