I have a local web server running tht is accessable from the internet.
As mentioned in several posts on the forum hairpin Nat is required to access the web server from a local machine with the public request.
I have setup a hairpin rule in the frewall but i can not get it working. What do i wrong??
Code: Select all
0 ;;; WAN out NAT
chain=srcnat action=masquerade out-interface-list=WAN log=no log-prefix=""
1 ;;; hairpin NAT
chain=srcnat action=masquerade src-address=192.168.200.0/24
dst-address=192.168.200.0/24 log=no log-prefix=""
2 ;;; web server
chain=dstnat action=dst-nat to-addresses=192.168.200.26 to-ports=80
protocol=tcp in-interface-list=WAN dst-port=80 log=no log-prefix=""
3 ;;; web server https
chain=dstnat action=dst-nat to-addresses=192.168.200.26 to-ports=443
protocol=tcp in-interface-list=WAN dst-port=443 log=no log-prefix=""