notes/IT/RouterOS port forwarding.md

20 lines
1009 B
Markdown
Raw Normal View History

2024-05-19 16:36:26 +00:00
To port forward with RouterOS, you need allow the port through the firewall, *and* actually forward traffic
2024-05-19 16:37:26 +00:00
# Allow through the firewall
2024-05-19 16:40:26 +00:00
1. Navigate to IP > Firewall from the sidebar, then go to the Filter Rules tab from the top
2. Select Add new
3. Set `Dst. Address` to the internal IP you want to allow traffic to
4. Set `Protocol` to `6 (tcp)`
5. Set `Dst. Port` to the port you want to allow traffic through
6. Set `In. Interface List` to `all` (I'm sure this isn't the most correct option), but it works
7. Set `Action` to `accept`
8. (Optionally) add a comment explaining what you're doing
2024-05-19 16:37:26 +00:00
# Forward traffic
2024-05-19 16:40:26 +00:00
1. Navigate to IP > Firewall from the sidebar, then go to the FilteNAT, select `Add New`
2024-05-19 16:34:26 +00:00
2. Set `Chain` to `dstnat`, set `Protocol` to `6 (tcp)`
2024-05-19 16:35:26 +00:00
3. Set `Dst. Port` to the port you want to forward
4. Set `In. Interface List` to `WAN`
5. Set `Action` to `dst-nat`
2024-05-19 16:36:26 +00:00
6. Set `To Addresses` to the internal IP you want the traffic to go to
7. (Optionally) add a comment explaining what you're doing