Hi,
I would like to ask you to review my Hairpin NAT to internal server on 10.0.0.50
The WAN IP is dynamic (VDSL). I access my Server from Internet and also from LAN by using the domain name (WAN IP).
Option A:
/ip firewall nat
add action=masquerade chain=srcnat out-interface="PPPoE client"
add action=masquerade chain=srcnat comment="LAN to Server" dst-address=10.0.0.50 protocol=tcp src-address=10.0.0.0/25
add action=dst-nat chain=dstnat comment="WAN to https Server" dst-address-type=local dst-port=443 protocol=tcp to-addresses=10.0.0.50
Option B:
/ip firewall nat
add action=masquerade chain=srcnat out-interface="PPPoE client"
add action=masquerade chain=srcnat comment="LAN to Server" dst-address=10.0.0.50 out-interface=bridge-local src-address=10.0.0.0/25
add action=dst-nat chain=dstnat comment="WAN to https Server" dst-address=!10.0.0.0/25 dst-address-type=local dst-port=443 protocol=tcp to-addresses=10.0.0.50
I am unable to see the background if both are equal or maybe incorrect/wrong or what is the advantage of each?
But both seems to work well…
Or is there any better Option C? ![]()
Thank you!