FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
989 views 4 comments
by anonymous
Static routes for L2TP/PPTP VPN doesn't work for a long time! When it''ll be fixed?

We have more then one hundred device RUTX12 with latest FW - RUTX_R_00.02.06.1, and now we need to change VPN topology from SSTP/DMVPN to L2TP with static routes for core subnets.

We have config like this.

root@Teltonika-RUTX12:~# cat /etc/config/network

config interface 'client_LINK'

        option _name 'LINK'

        option checkup_interval '20'

        option proto 'l2tp'

        option buffering '1'

        option server 'A.B.C.D'

        option username 'LOGIN'

        option password 'PASSWORD'

        option defaultroute '0'

config route

        option table '254'

        option target '10.0.1.0'

        option netmask '255.255.255.0'

        option gateway '10.1.254.254'

        option interface 'LINK'

But, routing table doesn't have this route!

root@Teltonika-RUTX12:~# ip r

default dev qmimux0 proto static scope link src 10.46.32.224 metric 1

default dev qmimux8 proto static scope link src 10.67.177.248 metric 2

10.0.26.0/24 dev br-lan proto kernel scope link src 10.0.26.1

10.1.254.254 dev l2tp-client_LIN proto kernel scope link src 10.1.3.99

10.46.32.224 dev qmimux0 proto static scope link metric 1

10.67.177.248 dev qmimux8 proto static scope link metric 2

10.254.251.0/24 dev eth1 proto kernel scope link src 10.254.251.180

I can add this route manualy and everything work fine, BUT i can't do it for hundreds devices.

root@Teltonika-RUTX12:~# route add -net 10.0.1.0/24 gw 10.1.254.254

root@Teltonika-RUTX12:~# ip r

default dev qmimux0 proto static scope link src 10.46.32.224 metric 1

default dev qmimux8 proto static scope link src 10.67.177.248 metric 2

10.0.1.0/24 via 10.1.254.254 dev l2tp-client_LIN

10.0.26.0/24 dev br-lan proto kernel scope link src 10.0.26.1

10.1.254.254 dev l2tp-client_LIN proto kernel scope link src 10.1.3.99

10.46.32.224 dev qmimux0 proto static scope link metric 1

10.67.177.248 dev qmimux8 proto static scope link metric 2

10.254.251.0/24 dev eth1 proto kernel scope link src 10.254.251.180

When it will be fixed? We really need it.

P.S. Default route in L2TP/PPTP VPN doesn't work too ;)))

P.P.S. OSPF and EIGRP with DMVPN doesn't work too ;))

P.P.P.S. Mobile status in RMS for two active SIM devices doesn't work too ;))

P.P.P.P.S. WAN interface priority with failover doesn't work too :(

2 Answers

0 votes
by anonymous
Hello,

From 'config route' the route that seems to be missing is in table 254, you can check it with "ip route show table 254".

Regards,
by anonymous

Hello, it is so old problem for teltonika device.

This

https://community.teltonika-networks.com/27073/rut950-static-route-issue?show=27073#q27073

and this

https://community.teltonika-networks.com/29904/rutx11-vpn-static-route

and output of the command too

root@Teltonika-RUTX12:~# ip r show table 254

default dev qmimux0 proto static scope link src 10.46.32.224 metric 1 

default dev qmimux8 proto static scope link src 100.86.1.172 metric 2 

10.0.26.0/24 dev br-lan proto kernel scope link src 10.0.26.1 

10.1.254.254 dev l2tp-client_LIN proto kernel scope link src 10.1.3.99 

10.46.32.224 dev qmimux0 proto static scope link metric 1 

10.254.251.0/24 dev eth1 proto kernel scope link src 10.254.251.180 

100.86.1.172 dev qmimux8 proto static scope link metric 2 

by anonymous

Could you try to set the route manually :

ip route add table 254 10.0.1.0/24 via 10.1.254.254 dev l2tp-client_LIN

Does that work ?

by anonymous
Yes, it works. I wrote it in the first message.
by anonymous
This appears to still be boken in the RUTX11 latest firmware.

Using the CLI command works, But Adding them from the UI doesnt. I assume its because the interface is missmatched.

e.g. the iUI gets you to select the L2TP interface e.g. ADL1 but the actual interface name is l2tp-ADL1. Seems like a simple fix.

I have to deploy 100s of these in the coming months and would ideally like this to work or ill find anther vendor.
0 votes
by anonymous

Adding static route from lan to vpn (openvpn in my case) using UI also not working on RUT240 fw. RUT2_R_00.07.04.1. 

I had to add route manually by ip route using CLI.