Skip to content

amindadgar/vpn-up-for-openconnect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

vpn-up-for-openconnect

VPN Up for OpenConnect

Features

A shell script for openconnect which allows:

  • to define multiple VPN connections
  • to run openconnect without entering the username and password
  • to run in the background
  • to authenticate with a certiftcate

Sample configuration section

BACKGROUND=true   # If you don't want to run in background, so make this false

# Company VPN
export COM_NAME="My Company VPN"
export COM_HOST=vpn.mycompany.com
export COM_AUTHGROUP=developers
export COM_USER=sorin.ipate
export COM_PASSWD="MyPassword"
export COM_SERVER_CERTIFICATE="SHA1-OtherCharachters"     # If you don't have server certificate so don't fill this

Run VPN Up

  1. Download the latest release
  2. Copy the vpn-up.command file to the bin folder.
  3. Update the vpn-up.command file with the appropiate VPN connection information as shown above.
  4. Make an alias alias vpn-up='~/bin/vpn-up.command' in bash or zsh shell. Follow the instructions here
  5. Run vpn-up to start and voilà.