Skip to content

thecasualcoder/lazy-connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

lazy-connect

Shell function to fuzzy search an IPSec VPN by name and connect to it automatically.

Prerequisite

  1. fzf
  2. OATH Toolkit
brew install oath-toolkit fzf

Install

git clone https://github.com/arunvelsriram/lazy-connect.git ~/.lazy-connect
# zsh users
echo "[ -f ~/.lazy-connect/lazy-connect.sh ] && source ~/.lazy-connect/lazy-connect.sh" >> ~/.zshrc
source ~/.zshrc
# bash users
echo "[ -f ~/.lazy-connect/lazy-connect.sh ] && source ~/.lazy-connect/lazy-connect.sh" >> ~/.bashrc
source ~/.bashrc

Usage

lazy-connect - Shell function to fuzzy search an IPSec VPN by name
               and connect to it automatically.

-i    - Initialize lazy-connect.
        Stores the secret and VPN list to ~/.config/lazy-connect/
-r    - refresh vpn list in ~/.config/lazy-connect
-h    - Show this help

Warning

  • The secret key to generate TOTP is stored as plain text in ~/.config/lazy-connect/secret
  • You need to add your Termainal emulator app that invokes the function to Security & Privacy -> Accessibility. It is necesssary because the script interacts with the UI. There are other ways via CLI to avoid UI interaction but they are all broken in OS X 10.12+.

About

Shell function to fuzzy search an IPSec VPN by name and connect to it automatically.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Languages