Skip to content

A customizable script for Linux to connect to the ETHZ vpn using openconnect

License

Notifications You must be signed in to change notification settings

njalooo/ethz-vpn-connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

ethz-vpn-connect

A customizable script for Linux to connect to the ETHZ vpn using openconnect

Install

Install the openconnect package using your packet manager like apt or pacman

Then place the ethz-vpn shell script file in your /bin/ Directory To do this you can simply run: sudo wget -O /bin/ethz-vpn https://raw.githubusercontent.com/njalooo/ethz-vpn-connect/refs/heads/main/ethz-vpn

run ethz-vpn setup to enter your credentials. They will be stored encrypted with the password you choose in the folder ~/.share/ethz-vpn-connect/

Alternatively to providing the token secret, you can edit the Script: line 7: remove --token-mode=totp --token-secret=sha1:base32:$TOKEN, remove line 5,11,23,30. With this option you will be prompted for your OTP token each time you connect.

Restart your shell to load the new command using exec bash

Usage

ethz-vpn [Option]
Whereby [Option]:

  • connect,c: to Connect
  • disconnect, dc, d: to Disconnect
  • setup: to Setup Username and Secrets

Contribute

If you'd like to contribute, you could add an bash completion script (https://iridakos.com/programming/2018/03/01/bash-programmable-completion-tutorial).

About

A customizable script for Linux to connect to the ETHZ vpn using openconnect

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages