Skip to content

Connect to your Cisco VPN through command line without unnecessary actions

License

Notifications You must be signed in to change notification settings

fadinflame/easyconnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyConnect for Cisco AnyConnect VPN

Install EasyConnect

go install github.com/fadinflame/easyconnect@latest

Add EasyConnect to PATH

After installing EasyConnect, ensure the GOPATH/bin directory is added to your system PATH. This allows you to run easyconnect from anywhere in the terminal.

On Linux/macOS, add the following line to your shell configuration file (e.g., ~/.bashrc or ~/.zshrc):

export PATH=$PATH:$(go env GOPATH)/bin

On Windows, update your system environment variables to include $(go env GOPATH)\bin.

Apply the changes by restarting your terminal or running:

source ~/.bashrc  # or source ~/.zshrc

Usage

easyconnect

Configuration

At the first run, EasyConnect will prompt you to create a configuration file. Or you can create one manually. To configure EasyConnect, create a configuration file named config.json in the same directory as the executable The configuration file is located at ~/.easyconnect/config.json on Linux and %AppData%/easyconnect/config.json on Windows.

{
    "server": "Your VPN Server",
    "group": "Your VPN Group",
    "username": "Your VPN Username",
    "password": "Your VPN Password",
    "cisco_logs": false
}

Cisco AnyConnect VPN Logs

You can enable Cisco AnyConnect VPN logs by setting the cisco_logs field to true in the configuration file.

{
    "server": "Your VPN Server",
    "group": "Your VPN Group",
    "username": "Your VPN Username",
    "password": "Your VPN Password",
    "cisco_logs": true
}

License

This project is released under the MIT License.

About

Connect to your Cisco VPN through command line without unnecessary actions

Resources

License

Stars

Watchers

Forks

Languages