notes/IT/RouterOS port forwarding.md
2024-05-19 10:38:26 -06:00

16 lines
747 B
Markdown

To port forward with RouterOS, you need allow the port through the firewall, *and* actually forward traffic
# Allow through the firewall
1. Set `Dst. Address` to the internal IP you want to allow traffic to
2. Set `Protocol` to `6 (tcp)`
3. Set `Dst. Port` to the port you want to allow traffic through
4. Set `In. Interface List` to `all` (I'm sure this isn't the corre)
# Forward traffic
1. Navigate to IP > Firewall > NAT, select `Add New`
2. Set `Chain` to `dstnat`, set `Protocol` to `6 (tcp)`
3. Set `Dst. Port` to the port you want to forward
4. Set `In. Interface List` to `WAN`
5. Set `Action` to `dst-nat`
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