cohoe / workstation

Ansible scripts to configure desktop workstations.
4 stars 2 forks source link

PA VPN #76

Closed cohoe closed 4 years ago

cohoe commented 4 years ago
cat /etc/NetworkManager/dispatcher.d/100-ctct 
#!/usr/bin/env bash

# https://askubuntu.com/questions/13963/call-script-after-connecting-to-a-wireless-network
#
# For some reason the GlobalProtect VPN doesn't add a default route anymore.
# Maybe it didn't in the first place? idk...

if [[ "$1" = "vpn0" && "$2" = "up" ]]; then
  ip route add default dev vpn0
fi
cohoe commented 4 years ago

chmod +x

cohoe commented 4 years ago

Also maybe make this a bit more smart about which protocol was just activated?