# TorGuard WireGuard Manager This is the TorGuard WireGuard web interface for managing WireGuard VPN connections on Ubuntu/Debian servers. This tool provides an easy-to-use, user-friendly dashboard for managing your TorGuard WireGuard VPN configuration from a web browser. You can upload or paste new WireGuard configs and connect or disconnect the VPN tunnel through the web interface. This tool has been tested on Ubuntu/Debian servers and is compatible with both x86 and ARM architectures. It is compatible with TorGuard's shared IP or Dedicated IP WireGuard services, as well as its Dedicated WireGuard services for remote access or self-hosting. ![License](https://img.shields.io/badge/license-MIT-blue.svg) ![Python](https://img.shields.io/badge/python-3.8+-blue.svg) ![TorGuard](https://img.shields.io/badge/TorGuard-Official-green.svg) ## Features - ๐ŸŒ Modern, responsive web interface for WireGuard management - ๐Ÿ”’ Enterprise-grade authentication system with password strength enforcement - ๐Ÿ“Š Real-time connection status and detailed transfer statistics - ๐Ÿ”„ Easy configuration import with validation - ๐Ÿš€ One-click connect/disconnect with status feedback - ๐Ÿ”ง Automatic system configuration and dependency management - ๐ŸŽฏ Systemd integration for reliable boot-time autostart - ๐Ÿ“ฑ Mobile-optimized responsive design - ๐Ÿ›ก๏ธ Security features and input validation - ๐Ÿ“ˆ Live status updates and connection monitoring ## Prerequisites - Ubuntu/Debian-based system (20.04 LTS or newer recommended) - Python 3.8 or higher - Root/sudo privileges - Internet connection for TorGuard services ## Quick Start 1. Download the latest release: ```bash git clone https://gittylab.com/ben/TorGuard_WireGuard.git ``` 2. Run the installer script: ```bash sudo python3 install.py ``` 3. Access the web interface: ``` http://your-server-ip:1337 ``` ## Enhanced Security Features - ๐Ÿ” Secure credential storage using bcrypt and Fernet encryption - ๐Ÿ›ก๏ธ CSRF protection on all forms - ๐Ÿ”’ Strict file permissions and ownership - ๐Ÿšซ Comprehensive input validation and sanitization - ๐Ÿ”‘ Secure session management - ๐Ÿ“œ Encrypted configuration storage - ๐Ÿ” Real-time password strength meter - ๐Ÿšฆ Rate limiting for authentication attempts - ๐Ÿ›‘ Protection against brute force attacks ## System Integration The installer configures: 1. System Services: - `wg-quick@wg0.service` for WireGuard with enhanced dependencies - `wireguard-manager.service` with systemd hardening 2. Network Configuration: - IP forwarding with sysctl persistence - NAT rules with iptables-persistent - DNS configuration (Cloudflare 1.1.1.1) - Network service dependencies 3. Security Settings: - Restricted file permissions - Secure directory ownership - Protected configuration storage - System service hardening ## Web Interface Features - Dashboard: - Real-time connection status - Live transfer statistics - Total bandwidth usage - Connection duration tracking - System status monitoring - Configuration: - Secure config import - File upload with validation - Format verification - Syntax highlighting - Auto-save functionality - Security: - Password strength requirements - Two-factor authentication (coming soon) - Session management - Activity logging - Secure logout ## Troubleshooting 1. **Verification** Check service status: ```bash sudo systemctl status wireguard-manager sudo systemctl status wg-quick@wg0 ``` 2. **Diagnostics** View detailed logs: ```bash sudo journalctl -u wireguard-manager -f sudo journalctl -u wg-quick@wg0 -f ``` 3. **Common Solutions** - Port access: `sudo ufw allow 1337/tcp` - Service issues: `sudo systemctl restart wireguard-manager` - Permission fixes: `sudo chmod -R 700 /etc/wireguard-manager` ## Support For official TorGuard support: - Visit: https://torguard.net/support - Email: support@torguard.net - Live Chat: Available 24/7 on TorGuard website ## Uninstall To uninstall and reverse all changes run: ```bash sudo python3 uninstall.py ``` --- Powered by TorGuardยฎ - Secure Private VPN Service https://torguard.net