Skip to content

catding/AutoVPN

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoVPN

Some companies (like mine) require a concatenation of LDAP password and OTP as password while connecting to VPNs. This is a solution to compute VPN password automatically by getting LDAP password from keychain and OTP via oathtool. As a bonus, it also makes sure that it retries VPN connection if it fails for some reason.

Don't forget to add a config file with the required values!

Features

  • Autoconnects VPN on startup.
  • Keeps checking VPN status every second and reconnects if necessary.
  • Disconnects VPN on exit

Screenshots

System tray icon

notifications

Notifications

system_tray

Configuration file

Location: ~/.corp_vpn.yaml

username: my_username
OTP_SECRET: SECRET
vpn_address: <VPN host address>
vpn_healthcheck_host: <any private host address>

Development

pip install -r requirements.txt
python app.py

Build Instructions on Mac

make app # Builds app at: ./dist/AutoVPN.app
make dmg # Builds dmg at ./AutoVPN.dmg

About

Wrapper VPN client for Cisco Anyconnect for MacOS

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 94.7%
  • Makefile 5.3%