You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. SCRIPTPATH=$(dirname $0)
  3. source $SCRIPTPATH/config.txt
  4. export PATH=$SCRIPTPATH:$PATH
  5. env
  6. echo '==== STARTING OPENVPN ===='
  7. openvpn \
  8. --client \
  9. --config $VPNCONFIG \
  10. --ca $VPNCA \
  11. --auth-user-pass $VPNCREDS \
  12. --auth-retry nointeract \
  13. --ifconfig-noexec \
  14. --route-noexec \
  15. --script-security 2 \
  16. --up $SCRIPTPATH/vpnhook.sh \
  17. --route-up $SCRIPTPATH/vpnhook.sh \
  18. --down $SCRIPTPATH/vpnhook.sh
  19. echo '==== EXITED OPENVPN ===='