Level: L1 | Applies to: Teltonika RUT and RUTX series routers (RutOS)
Summary
Port forwarding lets someone outside the router's network reach a device on the LAN, such as a camera, PLC or web server. This article shows how to set up a rule.
Before you start
- Check the SIM has a public IP address Or a VPN setup (VPN setup highly recommended for security). Many mobile SIMs sit behind carrier-grade NAT, with a private address. Inbound traffic can't reach the router in that case, and port forwarding won't work. You need a SIM with a public static IP, or a private network or VPN. Ask us if you are not sure.
- Give the target device a fixed address on the LAN. See Teltonika - Router - Set up the DHCP server.
- Know the port the device listens on, and whether it uses TCP, UDP or both.
- Think about security first. Anything you forward can be reached from the Internet. Use strong passwords, keep the device up to date and use a VPN where you can.
Steps
- Log in to the WebUI at http://192.168.1.1.
- Go to Network > Firewall > Port Forwarding. Menu names can vary slightly between firmware versions.
- In the Add new instance area, enter a Name, for example Camera1.
- Choose the Protocol: TCP, UDP or TCP+UDP.
- Set the Source zone to the zone that carries the mobile connection, normally WAN.
- Set the External port. This is the port people connect to from outside.
- Set the Destination zone to LAN.
- Set the Internal IP address to the device's LAN address.
- Set the Internal port. This is the port the device listens on. It can match the external port or differ.
- Click Add, then Save & Apply.
Test it
- Find the router's accessible address in Status > Network > Mobile.
- From a device outside the mobile network, such as another connection, connect to mobile-IP:external-port. e.g 10.xx.xx.xx:80 - Define the mobile address and specify the port via :port number
- If it doesn't work, check the rule, the device's address and that the device is running the service.
Testing from inside the LAN usually won't work. Test from outside.
Troubleshooting
| Problem | What to check |
| Can't connect from outside | Does the SIM have an accessible IP? Check the router's mobile IP address |
| Rule is there but no response | Check the internal IP, port and protocol match the device |
| Worked, then stopped | The device may have a new address. Use a static lease |
| Port already in use | Another rule or the router's own remote access is using the port. Pick a different external port |
| Device reachable but slow or flaky | Check signal and data session. See Teltonika - Router - Check signal strength (WebUI) |
Related articles
- Teltonika - Router - Set up the DHCP server
- Teltonika - Router - Enable remote access