AetherGate Pro is an enterprise-grade, high-availability VPN & Proxy Gateway manager designed to run on Linux Virtual Private Servers (VPS). Built by and for proxy network engineers, it solves the notorious issue of SSH disconnection and routing conflicts commonly experienced when running VPN gateways directly on VPS host interfaces.
By isolating all VPN activity inside a dedicated Linux Network Namespace (netns) and routing proxy traffic via an asynchronous single-port mixed protocol (SOCKS5/HTTP) server, AetherGate Pro provides a seamless, self-healing proxy gateway with a gorgeous glassmorphic dashboard.
-
Network Namespace Isolation (
netns): Restricted default routing withinvpn_nsnamespace prevents host interface pollution. Say goodbye to SSH drops and disconnected VPS sessions! -
Mixed Protocol Single-Port Proxy: Auto-sniffs incoming client connections on port
7928to serve both SOCKS5 and HTTP protocols on a single port. -
Auto-Geolocation & Scamalytics Fraud Score Filtering: Concurrently scrapes VPNGate, performs latency pinging, runs IP geolocations, and checks Scamalytics fraud risks. Hides nodes with a fraud score
$\ge 10$ to guarantee pure residential/mobile outbound traffic. - Modern Web Dashboard: A futuristic, glassmorphic dark-themed control center featuring mouse spotlight tracking, real-time diagnostic consoles, auto-refreshing connection tables, and lock settings.
- Watchdog Self-Healing: Automatically monitors the VPN tunnel. If a node fails or latency spikes, the background watchdog triggers auto-reconnection/failover.
- Systemd Daemon Integration: Designed to run as a persistent system service that auto-starts on system boot.
flowchart TD
subgraph Host OS [Host OS Network Space]
SSH[SSH Session - Port 22] -->|No interference| HostRouting[Host Routing Table]
User[Admin Browser] -->|Port 8787| WebUI[Async Dashboard Server]
ClientProxy[Client Proxy App] -->|Port 7928| SocatForwarder[socat Port Forwarder]
end
subgraph NetNS [vpn_ns isolated namespace]
SocatForwarder -->|Forward tunnel| NamespaceProxy[Mixed SOCKS5/HTTP Proxy]
NamespaceProxy -->|Outbound request| OpenVPN[OpenVPN Client Process]
OpenVPN -->|Tunnel Interface tun0| VirtualEthernet[veth_vpn: 10.200.0.2]
end
VirtualEthernet <-->|NAT Masquerade| veth_host[veth_host: 10.200.0.1]
veth_host <--> Internet((Global Internet))
OpenVPN <-->|Encrypted Tunnel| VPNGateNode[VPNGate Target Node]
This guide describes how to deploy AetherGate Pro on a clean Linux VPS (Ubuntu 20.04/22.04+ or Debian 11+ recommended).
Simply run the following command on your VPS to automatically pull the repository and install the gateway:
curl -sSL https://raw.githubusercontent.com/JFGAtlas/aethergate-pro/main/install_vps.sh | bashEnsure you have root access to your VPS. Connect via SSH:
ssh root@your_vps_ipgit clone https://github.com/JFGAtlas/aethergate-pro.git /tmp/aethergate-procd /tmp/aethergate-pro
sudo bash install.shWhat the installer does:
- Installs system packages:
openvpn,socat,python3,iptables. - Cleanly stops any conflicting older proxy daemons.
- Places the codebase into the target production directory
/opt/vpngate-pro/. - Migrates existing credentials (
/opt/aimilivpn/vpngate_data/ui_auth.json) into/opt/vpngate-pro/vpngate_data/config.jsonif present. - Sets up persistent IP forwarding (
sysctl). - Configures and registers the
vpngate-pro.servicesystemd service. - Automatically launches the service.
Check that the AetherGate systemd service is active:
sudo systemctl status vpngate-proYou should see output indicating the service is active (running).
After successful installation, the Web Dashboard will be exposed at:
- URL:
http://<YOUR_VPS_IP>:8787/<SECRET_PATH>/(Note: The<SECRET_PATH>is generated on first startup. You can read or customize it in the config file). - Default Credentials:
- Username:
admin - Password: A random password stored in
/opt/vpngate-pro/vpngate_data/config.jsonon first startup (or migrated from your old installation).
- Username:
Set up your local browser (e.g., SwitchyOmega) or system client to use the Mixed Proxy:
- Proxy Address:
<YOUR_VPS_IP> - Proxy Port:
7928 - Supported Protocols: SOCKS5 (recommended) or HTTP (both listen on
7928simultaneously).
You can manually tweak settings in /opt/vpngate-pro/vpngate_data/config.json:
{
"username": "admin",
"password": "your_secure_password",
"secret_path": "your_dashboard_url_token",
"ui_host": "0.0.0.0",
"ui_port": 8787,
"proxy_host": "127.0.0.1",
"proxy_port": 7928,
"routing_mode": "auto",
"force_country": "",
"connection_enabled": false,
"fixed_node_id": "",
"scamalytics_threshold": 10
}Remember to run sudo systemctl restart vpngate-pro after modifying the configuration manually.
# Restart the gateway and cleanly recreate namespace/forwarding rules
sudo systemctl restart vpngate-pro
# Stop the gateway and tear down network namespaces
sudo systemctl stop vpngate-pro
# View live system logs and connection states
sudo journalctl -u vpngate-pro -f --no-pagerIf you need to uninstall AetherGate Pro and completely remove all configuration caches, network namespaces, and virtual network interfaces from your VPS, run the following one-key uninstaller:
curl -sSL https://raw.githubusercontent.com/JFGAtlas/aethergate-pro/main/uninstall.sh | bashImportant
The uninstaller script will automatically perform the following cleanup:
- Stop and disable the
vpngate-prosystemd service, removing the systemd configuration file. - Force terminate any orphaned
openvpn,socatforwarding, and proxy processes. - Destroy the
vpn_nsnetwork namespace, delete the virtual interfaceveth_host, and remove/etc/netns/vpn_nsDNS overrides. - Delete the iptables NAT masquerade rules injected by AetherGate.
- Revert the
sysctlkernel tunables and completely delete/opt/vpngate-prodeployment directory and configuration files.
This project is open-source and licensed under the MIT License. Feel free to fork, contribute, and open issues.
This project is a charity open-source project, ad-free, permanently updated, and completely free to use. If you find it helpful, feel free to support the author by donating to the following addresses:
- EVM (ETH/BSC/Polygon, etc.):
0x3EE918603d5a1c0f983BEC5B5d8C301F8ed58A2C - SOL:
2LEDYj19kormPezoiFgZAguyCVsfaM3HExsYe2NWpNqk - BTC:
bc1qs2nwumk24fjtk574f0awaxnh7jl9v7shrd5yw7
- X (Twitter): @JFGAi
- Telegram: https://t.me/jfgae
- GitHub: https://github.com/JFGAtlas