notes/IT/Deployment docs/Configuring hairpin NAT on a Mikrotik router.md

14 lines
586 B
Markdown
Raw Normal View History

2024-07-05 17:55:23 +00:00
Hairpin NAT enables a device on the LAN to access another device on the LAN via the public IP
https://help.mikrotik.com/docs/display/ROS/NAT#NAT-HairpinNAT
From the RouterOS CLI, enter NAT configuration mode:
```
/ip firewall nat
```
2024-07-05 18:00:23 +00:00
Configure NAT to forward any traffic from the LAN net that's directed at the WAN IP to forward that traffic back to the the server in question (You can only forward to a single IP):
```
2024-07-05 18:05:23 +00:00
```
I first tried `add` `action``=masquerade` `chain``=srcnat` `dst-address``=10.0.0.3` `out-interface``=LAN` `protocol``=tcp` `src-address``=10.0.0.0/24`|`