Closed sbasmanov closed 11 months ago
On macOS Ventura (13.6) I installed with homebrew: openconnect and vpn-slice script.
…
How to remove this routes on disconnect
Are you running a build of vpn-slice
that includes 28ace485075c0acb98650ffa3d599bde4d1563a5?
I installed it for first time using homebrew. It shows version: vpn-slice 0.16.1 Checked /opt/homebrew/Cellar/vpn-slice/0.16.1/libexec/lib/python3.12/site-packages/vpn_slice/main.py:
Seems this version is different (old). Tried brew upgrade vpn-slice: Warning: vpn-slice 0.16.1 already installed So, probably I need to replace brew version with version from GitHub.
Not sure if this is issue or misconfiguration, but I haven't found any info on this. On macOS Ventura (13.6) I installed with homebrew: openconnect and vpn-slice script. My goal is to route all 10/8 traffic to vpn, excluding few networks. So, here is command:
sudo openconnect -c mycert.pem mycompany.net -s 'vpn-slice 10.0.0.0/8 %10.250.0.0/16 %10.240.0.0/24 %10.254.0.0/24 -i --domains-vpn-dns mycompany.net'
Here is my routing tables:To get routing table back to normal I have to disable wifi, then issue
route flush
and then enable wifi.Am I missing something? How to remove this routes on disconnect (kill -2)?
Thanks.