Skip to content
/ easyoc Public

A simple and secure VPN connection script for OpenConnect with 2FA support. Automatically installs dependencies and configures your system for easy VPN access.

License

Notifications You must be signed in to change notification settings

ejcom/easyoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyOC - Simple VPN Connection Script for OpenConnect

EasyOC is a simple script that simplifies the process of connecting to a VPN via OpenConnect with two-factor authentication (2FA) support. Available for both Unix-like systems (Linux, macOS) and Windows.

Features

  • Automatic installation of required dependencies (openconnect, oathtool)
  • Two-factor authentication support via Google Authenticator
  • Support for bash, zsh, and PowerShell
  • Secure configuration storage
  • Simple VPN domain management
  • Cross-platform support (Linux, macOS, Windows)

Requirements

Unix-like systems (Linux, macOS, WSL)

  • Sudo access for package installation
  • Internet connection

Windows

  • PowerShell 5.1 or later
  • Administrator privileges
  • Internet connection

Installation

Unix-like systems (Linux, macOS, WSL)

  1. Download the script:
curl -O https://raw.githubusercontent.com/yourusername/easyoc/main/easyoc_install.sh
  1. Make the script executable:
chmod +x easyoc_install.sh
  1. Run the installation:
./easyoc_install.sh
  1. Follow the installer instructions

Windows

  1. Download the script:
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/yourusername/easyoc/main/easyoc_install.ps1" -OutFile "easyoc_install.ps1"
  1. Run PowerShell as Administrator and execute:
.\easyoc_install.ps1
  1. Follow the installer instructions

Usage

Unix-like systems

After installation, you can connect to the VPN using the created command:

your_alias_vpn

Windows

After installation, you can connect to the VPN using the created command in PowerShell:

your_alias_vpn

Security

  • Script does not run as root user (Unix) / requires admin privileges (Windows)
  • Configuration files have strict permissions
  • Sensitive data is stored in protected files
  • Password input is handled securely

License

MIT License

Author

EJCOM

Support

If you encounter any issues or have questions, please create an issue in the repository.

About

A simple and secure VPN connection script for OpenConnect with 2FA support. Automatically installs dependencies and configures your system for easy VPN access.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published