I see that the RUT 300 webserver has a strange text box for expert commands. I read that Cisco has a complex command line interface. Is Teltonika’s command language similar to Cisco’s?
My specific task is to configure the router so UDP broadcasts from certain IP sources come through the router. So I’m really using the RUT300 as a firewall more than a router. In Cisco’s language, the command seems to be “ip forward-protocol udp”. What would the command be in Teltonika’s language?
Hi,
Command line for Teltonika devices is Linux-based. But you can configure the same in the WebUI of the device. To access the WebUI, plug a PC to the LAN port of the device. Then, access 192.168.1.1. The credentials can be seen on the sticker of the router. Once logged in, go to Network → Firewall → Traffic Rules. At the bottom part, you can create a custom traffic rule regarding your requirement. It will look something like this.
Hope this helps.
Yes, I can get into the web interface, and I can get a linux prompt at system/cli. But I’m trying to do something weird, more like a firewall than a router. The normal rule is that routers do not forward broadcasts. But the BACnet protocol uses broadcasts. So I don’t think the Web UI has that kind of flexibility. If I could write pseudo-code, what I want is something like this:
- If the source address of the packet on the wan port is not the one I specify, discard it.
- If the destination address received on the WAN port is not the one I specify, discard it.
- If the port number is not 47808, discard it.
- No NAT or PAT is required.
- forward all packets from the LAN port to the WAN port.
Can any of the Teltonika boxes do this?
Hello,
Teltonika Network devices are running RutOS. RutOS is based on OpenWRT, which in turn is based on Linux. Hence, RutOS has a lot of similarities. If you are familiar with OpenWRT or Linux, operating a RutOS router will be way easier for you, especially from the command line.
In case you just started using RUT300, the first thing that I would suggest is updating the firmware to the latest version. The firmware for RUT300 can be downloaded from our wiki here and uploaded via WebUI in System → Firmware → Update Firmware .
The LAN ports share the same hardware switch and all LAN ports (and WiFi if the device has it) are combined into a single logical ‘br-lan’ (LAN in WeUI) interface. As a result, these ports are in the same network. If you want to separate ports, then VLANs can be used (untagged and tagged). So by default, the broadcasts will work on LAN. If you are looking to relay a UDP broadcast to a different interface, you can download a UDP Broadcast relay package from Services → Package Manager . This will allow you to configure the device to listen on a specific UDP port and forward those packets to your desired interfaces.
By default, the WAN and LAN interfaces are separated into LAN and WAN firewall zones. All incoming traffic to the WAN interface is rejected by default, so there should be no need to worry about that. If you need to open some of the ports or configure DNAT (port forwarding) or SNAT (NAT rules), you can do so in the Network → Firewall settings in the WebUI. For example, you can find an article about traffic rules on our wiki here. From the CLI/SSH perspective, you can configure your device in two main ways: UCI commands or changing the configuration files in /etc/config directory directly. When it comes to the firewall, it is also possible to add your own IPTables rules manually.
Regarding BACNet, we have other devices with serial ports that can be used to communicate with BACnet devices over a serial link, such as RS485. If you are interested, you can take a look at our wiki here.
The best sources of information would be our wiki here (you can use the search function), this forum, as well as any other resource about OpenWRT which you can find online. While there are differences between RutOS, it is still very similar to OpenWRT.
Kind Regards,
This topic was automatically closed after 15 days. New replies are no longer allowed.