Skip to content

Instantly share code, notes, and snippets.

@shaposhnikoff
Created August 21, 2023 07:19
Show Gist options
  • Save shaposhnikoff/3f67bf7ca3c40ee4e4afe90e5b94e367 to your computer and use it in GitHub Desktop.
Save shaposhnikoff/3f67bf7ca3c40ee4e4afe90e5b94e367 to your computer and use it in GitHub Desktop.
Mikrotik Hairpin NAT
/ip firewall nat
add chain=dstnat dst-address-type=local protocol=tcp dst-port=443 action=dst-nat to-address=10.0.0.5 to-port=443
add chain=srcnat src-address=10.0.0.0/24 dst-address=10.0.0.5 protocol=tcp dst-port=443 out-interface=LAN action=masquerade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment