https://github.com/ejcom/easyoc
A simple and secure VPN connection script for OpenConnect with 2FA support. Automatically installs dependencies and configures your system for easy VPN access.
https://github.com/ejcom/easyoc
2fa automation bash bash-script devops mac network openconne powershell secu unix vpn windows zsh
Last synced: about 2 months ago
JSON representation
A simple and secure VPN connection script for OpenConnect with 2FA support. Automatically installs dependencies and configures your system for easy VPN access.
- Host: GitHub
- URL: https://github.com/ejcom/easyoc
- Owner: ejcom
- License: mit
- Created: 2025-04-13T14:54:08.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2025-04-14T10:23:51.000Z (about 2 months ago)
- Last Synced: 2025-04-14T14:17:03.213Z (about 2 months ago)
- Topics: 2fa, automation, bash, bash-script, devops, mac, network, openconne, powershell, secu, unix, vpn, windows, zsh
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```bash
curl -O https://raw.githubusercontent.com/yourusername/easyoc/main/easyoc_install.sh
```2. Make the script executable:
```bash
chmod +x easyoc_install.sh
```3. Run the installation:
```bash
./easyoc_install.sh
```4. Follow the installer instructions
### Windows
1. Download the script:
```powershell
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/yourusername/easyoc/main/easyoc_install.ps1" -OutFile "easyoc_install.ps1"
```2. Run PowerShell as Administrator and execute:
```powershell
.\easyoc_install.ps1
```3. Follow the installer instructions
## Usage
### Unix-like systems
After installation, you can connect to the VPN using the created command:
```bash
your_alias_vpn
```### Windows
After installation, you can connect to the VPN using the created command in PowerShell:
```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.