Last active
September 11, 2025 00:28
-
-
Save kaihendry/cb0aa9ac431e1f8f0bab51b3ce757793 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
5 ;;; Hairpin NAT
chain=srcnat action=masquerade src-address=192.168.88.0/24 dst-address=192.168.88.0/24
6 ;;; My SSH
chain=dstnat action=dst-nat to-addresses=192.168.88.5 to-ports=2222 protocol=tcp dst-address=!192.168.88.1 dst-address-type=local dst-port=2222