For some reason I’m having a hell of a time with hairpin NAT. I’ve watch several videos, all of which are about the same and the setup seems pretty straight forward.
I know the NAT is working from the outside as it works from a VPN and when i hotspot from my phone.
I have a webserver running on 33333 on a box inside, i added NAT rules per
Modify this rule:
add action=drop chain=forward comment=
"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat
connection-state=new in-interface-list=WAN
TO:
add action=accept chain=forward comment="internet traffic" in-interface-list=LAN \
out-interface-list=WAN
add action=accept chain=forward comment="pt forwarding" connection-nat-state=dstnat
add action=drop chain=forward comment="drop all else"
3. Your hairpin sourcenat rule is fine. However I dont see the purpose of this
rule. Please explain what it does?
*add action=masquerade chain=srcnat comment="masq. vpn traffic" src-address=\*
* 192.168.89.0/24*
especially since it may interfere with the hairpin nat.......... but not certain.
4. NONE of your dstnat rules are formatted properly for a dynamic WANIP address in combination with users coming from the lan. In-interface=ether1 is not good enough to include LAN users.......
You need to emulate the fixed WANIP way of destination nat rules and to do that the easiest approach is to use the routers own IP Cloud address.
ex.