Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run script on connect/disconnect #29

Open
r4tz52 opened this issue Oct 6, 2023 · 3 comments
Open

Run script on connect/disconnect #29

r4tz52 opened this issue Oct 6, 2023 · 3 comments

Comments

@r4tz52
Copy link

r4tz52 commented Oct 6, 2023

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!

@Timac
Copy link
Owner

Timac commented Oct 8, 2023

@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?

@r4tz52
Copy link
Author

r4tz52 commented Oct 10, 2023

@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.

@alexovn
Copy link

alexovn commented Nov 17, 2024

I'm also waiting for this feature because I need split tunneling for my corporate VPN. I created a script that listens to the vpnutil status and adds or removes routes. However, it's not as convenient as it could be in an app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants