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.
- 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)
- Sudo access for package installation
- Internet connection
- PowerShell 5.1 or later
- Administrator privileges
- Internet connection
- Download the script:
curl -O https://raw.githubusercontent.com/yourusername/easyoc/main/easyoc_install.sh- Make the script executable:
chmod +x easyoc_install.sh- Run the installation:
./easyoc_install.sh- Follow the installer instructions
- Download the script:
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/yourusername/easyoc/main/easyoc_install.ps1" -OutFile "easyoc_install.ps1"- Run PowerShell as Administrator and execute:
.\easyoc_install.ps1- Follow the installer instructions
After installation, you can connect to the VPN using the created command:
your_alias_vpnAfter installation, you can connect to the VPN using the created command in PowerShell:
your_alias_vpn- 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
MIT License
EJCOM
If you encounter any issues or have questions, please create an issue in the repository.