Skip to content
/ auto-vpn Public

VPN Management Tools allow you to manage VPNs for Cisco, Fortinet, and other providers on Windows.

Notifications You must be signed in to change notification settings

vnpnh/auto-vpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AUTO VPN

This VPN Command-Line Tool allows you to connect, disconnect, check status, and manage configurations for VPN connections. The tool is designed to be simple and flexible, providing various options to suit different use cases.

Table of Contents

Requirements

  • Windows
  • VPN Client (Cisco Anyconnect)
  • Python 3.10 or higher
  • pip install -r requirements.txt

Supported VPN Clients:

  • Cisco Anyconnect

Installation Exe

  1. Download the latest release from the [Releases]
  2. Extract the zip file
  3. setup the environment variable for the extracted folder
  4. setup config file. Example for cisco vpn:
vpn --set-config="C:\\Program Files (x86)\\Cisco\\Cisco AnyConnect Secure Mobility Client\\vpncli.exe" --type=cisco
  1. setup vpn credential. Example for cisco vpn:
vpn create --config=production

Usage

Connecting to a VPN

You can connect to a VPN using several options depending on your needs:

Connection using a specific configuration:

vpn connect cisco --config=dev
vpn connect cisco -C dev

Advanced connection:

vpn connect cisco --retry 3 --delay 5
vpn connect cisco -r 3 -d 5

Manual connection (with host, user, and password):

vpn connect cisco --host=vpn.example.com --user=user --password=pass

Manual connection with saved credentials:

vpn connect cisco --host=vpn.example.com --user=user --password=pass --save=dev

Disconnecting from a VPN

You can disconnect from a VPN using the following options: Basic disconnection:

vpn disconnect cisco

Checking VPN Status

You can check the status of a VPN connection using the following options: Basic status check:

vpn status cisco

Create VPN Configuration

You can create a VPN configuration using the following options:

Create a new configuration

vpn create --config=dev

After running the command above, you will be prompted to enter the following required information:

  • VPN Type (required)
  • Host (required)
  • User (required)
  • Password (required)

Compile

Compile the script using pyinstaller, install first pip install pyinstaller. dont use --onefile because it will detected as virus.

pyinstaller vpn.py --icon=favicon.ico --name autovpn

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue if you have any suggestions or feedback.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

VPN Management Tools allow you to manage VPNs for Cisco, Fortinet, and other providers on Windows.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages