VPNStatus icon indicating copy to clipboard operation
VPNStatus copied to clipboard

Run script on connect/disconnect

Open r4tz52 opened this issue 2 years ago • 3 comments

Hi! I'm looking for ability of updating routes when my VPN connects or disconnects. Unfortunately, the /etc/ppp/ip-up and networksetup -setadditionalroutes are not working for IKEv2 VPN, only L2TP ones. Is there a way to run some script with VPNStatus? Thanks!

r4tz52 avatar Oct 06 '23 06:10 r4tz52

@r4tz52 In theory, VPNStatus could run some scripts. However, manipulating the routing tables will require the scripts to run as root. This means that a privileged helper should be created. Is there already such a tool available that VPNStatus could trigger?

Timac avatar Oct 08 '23 10:10 Timac

@Timac I'm afraid I didn't found any tool for working with routing tables yet. BTW I believe that ability of running any script (even with low privileges) would be useful.

r4tz52 avatar Oct 10 '23 07:10 r4tz52