Forked from kaihendry/gist:cb0aa9ac431e1f8f0bab51b3ce757793
Created
September 11, 2025 00:28
-
-
Save jasondinh/6d98aaf93b79243c5c40dd19eaec486f to your computer and use it in GitHub Desktop.
Mikrotik Hairpin suggestion from drmessano
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add action=masquerade chain=srcnat comment="Hairpin NAT" dst-address=192.168.88.0/24 src-address=192.168.88.0/24 | |
| add action=dst-nat chain=dstnat comment="My SSH" dst-address=!192.168.88.1 \ | |
| dst-address-type=local dst-port=2222 protocol=tcp to-addresses=192.168.88.5 \ | |
| to-ports=2222 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment