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
333 views 2 comments
by
Hello,

Is it possible to implement kill switch when RUT955 Open Vpn connnection goes down?

More precise the internet connection on LAN and Wifi should go down in the event that VPN connection to a server goes down.

1 Answer

0 votes
by anonymous
Hi,

You could implement it through an always running script that would check if it pings through the OpenVPN tunnel to the end device.

This way after it meets one or another condition it can initiate a command to shut the firewall rule or just shut the mobile/WAN connection.

As we're not writing scripts for our customers - you will have to do it yourself.

Hope this helps.

EB.
by
Hello,

Thank you for your answer. Is there any documentation or example on how to do such a script?
by anonymous
Hi,

In this case, we don't have any examples that could help you in learning how to do it, but I could give you some suggestions where to look.

As our router firmware is based on OpenWRT - you can just look up tutorials on how to script on OpenWRT or what language is better to use (as you probably guessed there is more than one language, to begin with).

I'll give you a starting point. https://openwrt.org/docs/guide-developer/write-shell-script

EB.