OpenVPN for 2 devices and all other traffic via local WAN/Mobile connection?

Please help. I have read numerous instructions of split tunnelling that requires static routes to be setup using sci commands in the CLI. These do not work on my RUT241 which doesnt; accept the instruction although it does have other sci commands. This RUT241 already has ‘Policy Based Routing’ built in. The examples all expect a software package to be installed so the command may need to be modified.

I would like to route two specific local devices through the openvpn connection and all other devices use the local cell connection. This is for security so if there are firewall commands to achieve the same that could be an option. I have tried many and keep coming back to routes. Currently everything is routed through the openvpn connection which is working fine. I have a Ubiquiti UDM Pro the RUT ovpn connects to.

I believe I just need to remove the route from the table below (tun_c_Home), 0.0.0.0/1, 192.168.5.1 but I cant find a method to do that and tun_c_Home is not available in the device GUI for selection to use.

Many thanks in advance.

Hello,

This is a common issue, and you can try searching this forum for similar issues. You might also find this wiki page helpful: Splitting Network Traffic Via Multiple Interfaces.

Best regards,

Hi Marius,
Thanks for the reply. As I have the RUT241 it only has 1 etc port and 1 wan port so I’m unable to setup and assign vlans to then use. I wasn’t aware I could add ‘interfaces’ but that still didnt allow me to route in the way the article says.
I have tried so many options which I think would be very easy if only I could use uci commands. I dont seem to be able to edit the auto-created route table.
I did come across an article that talked about split tunnelling with IP ranges of the same subnet which would be ideal - if I could use uci commands for policy-based-routes.
I am at a bit of a loss where to go from here.

Does anyone else have Teltonika devices that do not respond to the uci commands provided by Teltonika themselves? Until now I have always had good support from them but it’s been three weeks now I have been trying to get help directly with Teltonika and here on this forum without any response (by them).

Example below:

 Teltonika RUT2M series 2024                                                                   

Device: RUT241
Kernel: 5.15.149
Firmware: RUT2M_R_00.07.07.1
Build: dde6d53e902
Build date: 2024-04-30 09:56:09

root@RUT241:~# uci set vpn-policy-routing.config.enabled=“1”
uci: Entry not found
root@RUT241:~# opkg install vpn-policy-routing
Unknown package ‘vpn-policy-routing’.
Package installation encountered an error, removing previously installed packages.
root@RUT241:~# opkg install vpn-policy-routing
Unknown package ‘vpn-policy-routing’.
Package installation encountered an error, removing previously installed packages.
root@RUT241:~# while uci -q delete vpn-policy-routing.@policy[0]; do :; done
root@RUT241:~# uci add vpn-policy-routing policy
uci: Entry not found
root@RUT241:~#

Kind regards.

This topic was automatically closed after 15 days. New replies are no longer allowed.