Skip to content
Projects

About

aimili-vpngate is a proxy tool that lets Linux make outbound connections through clean IPs using vpngate.net.

Systems & Infrastructure

How these counts are measured

Measured star growth

in 24h
+3
in 7 days
+25
in 15 days
+39
in 1 month
+162

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

docs/README.en.md

Original

AimiliVPN

A VPNGate node manager and HTTP / HTTPS / SOCKS5 proxy gateway for Linux VPS hosts

Release Docker License

简体中文 · English · 日本語 · 한국어

Quick install · Installation · Connection · Recommended services · Community · Legal notice

Website Telegram YouTube

AimiliVPN uses Python's standard library to manage VPNGate nodes. It provides node discovery and testing, connection switching, a Web dashboard, and HTTP, HTTPS website proxying, and SOCKS5 access on one local port.

Item Default or supported range
Web dashboard TCP 8787, a private path, username, and password
Local proxy 127.0.0.1:7928, HTTP, HTTPS CONNECT, and SOCKS5
Source deployment x64, x86, ARM64, and ARM32 Linux
Docker images linux/amd64, linux/386, linux/arm64, and linux/arm/v7
Update channel SHA-256 verified GitHub Release

[!IMPORTANT] Network availability: Some regions, data centers, and network providers may restrict DNS, VPNGate APIs, GitHub mirrors, or VPN protocols. Mirrors and local snapshots improve node-list availability but cannot guarantee a successful connection on every host. Confirm that local law and your VPS provider permit VPN/TUN before deployment.

Quick Install

On a Linux VPS with TUN/TAP enabled, run the command below. Enter 1 for a system service or 2 for Docker (requires Docker Engine and Compose).

curl -fsSL https://github.com/OpenMili/aimili-vpngate/releases/latest/download/install.sh -o aimili.sh && sudo bash aimili.sh

Both options print the login URL, username and password. The panel listens on 0.0.0.0 and selects a free TCP port starting at 8787. Allow access from your management IP to the displayed port. Run sudo bash aimili.sh --purge to remove the installation and its data.

Recommended Services

Provider Type Why we recommend it Link
BandwagonHost VPS Optimized China Telecom CN2 GIA, China Unicom 9929, and China Mobile CMIN2 routes; low latency and strong stability for TikTok Live, cross-border commerce, and long-running global services. View offer
RackNerd VPS 4000GB of monthly traffic with strong value for the price; low deployment costs for services that need to run continuously. View offer
OpenMili AI relay Direct GPT model access without model substitution, a low-cost 1:2 rate, and image generation support. Visit OpenMili

Some links are affiliate links. Using them does not increase your price.

Before purchasing, confirm that the selected plan permits TUN/TAP, OpenVPN, and the required network protocols. An affiliate link is not a guarantee that a specific plan will work.

Installation

Requirements

  • Ubuntu, Debian, Alpine, CentOS, RHEL, Rocky Linux, AlmaLinux, Fedora, Oracle Linux, or Amazon Linux.
  • root, OpenVPN, iptables, policy routing, and TUN/TAP.
  • Windows and macOS can be proxy clients, but cannot run the full gateway. Docker Desktop is not equivalent to a Linux VPS with host TUN access.

Option 1: Source installer

Download a source archive with the updated installer and its sha256sums.txt from the same GitHub Release. Verify it as root in a directory containing only these two files. Trust the download source before first installation.

sha256sum -c sha256sums.txt && \
  tar -xzf aimilivpn-vX.Y.Z-linux-source.tar.gz && \
  cd aimilivpn-vX.Y.Z-linux-source && \
  bash install.sh

The installer deploys to /opt/aimilivpn and registers the system service. It requires Python 3.9 or newer. Run AIMILIVPN_NONINTERACTIVE=1 bash install.sh to generate the initial credentials automatically. Upgrades preserve the management configuration.

ml                 # Open the management menu
ml status          # Show status, Web URL, and username
ml logs            # Follow logs
ml restart         # Restart the service
ml password        # Reset Web credentials
ml update          # Verify and install the latest formal Release
ml update vX.Y.Z   # Install a specific Release
ml uninstall       # Uninstall

For development, run sudo bash install.sh --local-dev from a reviewed checkout. Manage updates manually in local development mode.

Option 2: Docker Compose

The Docker host must provide /dev/net/tun, host networking, NET_ADMIN, and NET_RAW.

git clone --branch main --single-branch https://github.com/OpenMili/aimili-vpngate.git
cd aimili-vpngate
docker compose pull
docker compose up -d
docker logs -f aimilivpn

Image: ghcr.io/openmili/aimili-vpngate:2.1

Update:

docker compose pull
docker compose up -d
Show the docker run command
docker run -d \
  --name aimilivpn \
  --restart unless-stopped \
  --network host \
  --cap-add NET_ADMIN \
  --cap-add NET_RAW \
  --device /dev/net/tun:/dev/net/tun \
  -e UI_HOST=0.0.0.0 \
  -e UI_PORT=8787 \
  -e LOCAL_PROXY_HOST=127.0.0.1 \
  -e LOCAL_PROXY_PORT=7928 \
  -v aimilivpn-data:/data \
  ghcr.io/openmili/aimili-vpngate:2.1
Build locally when GHCR is unavailable
git clone --branch main --single-branch https://github.com/OpenMili/aimili-vpngate.git
cd aimili-vpngate
docker compose build
docker compose up -d

Node and exit IP details

Select a node name to inspect its endpoint, latency, ISP and ASN. The connection summary shows the exit IP measured through the proxy. List filters affect this browser view. The Management menu contains subscription scope, routing settings and gateway diagnostics.

The service looks up public IPs over HTTPS using IPQuery, with the anonymous ipapi.is response as a fallback. When the network type is unclear, it looks up the ASN category from ipverse on GitHub. An ISP classification is shown as likely residential. IPQuery · ipapi.is anonymous format · ipverse/as-ip-blocks

Connection and Use

1. Sign in to the Web dashboard

For a source installation, open the URL printed by the installer:

http://SERVER_IP:PANEL_PORT/private_path/

Run ml status to recover the URL, or ml password to reset credentials.

The Web password hash is stored in ui_auth.json. Docker writes the first-login credentials to a file readable only by the container administrator and removes it after successful login.

docker exec aimilivpn cat /data/ui_bootstrap.json

Sign in with secret_path, username, and password from that file. See secret_path in ui_auth.json for the path later. Upgrades preserve the saved bind address and account.

2. Fetch and connect to a node

  1. Sign in and wait for the first node list, or select Update nodes.
  2. Filter by country and use Test to measure reachability and latency from the VPS.
  3. Select Switch on the target node. A failed target precheck should leave the current usable connection in place when possible.
  4. Choose Smart Auto, Fixed Country, or Fixed IP routing.
  5. Confirm the VPN state and outbound IP in the status area.

3. Use the proxy on the VPS

HTTP, HTTPS website proxying, and SOCKS5 share 127.0.0.1:7928. HTTPS sites use the HTTP proxy's CONNECT method, so the proxy URL remains http://127.0.0.1:7928.

# HTTP / HTTPS
curl -x http://127.0.0.1:7928 https://api.ipify.org

# SOCKS5 with remote DNS resolution
curl --proxy socks5h://127.0.0.1:7928 https://api.ipify.org

4. Connect from another computer

The proxy listens on the VPS loopback address by default. Use an SSH tunnel instead of exposing it publicly:

ssh -N \
  -L 8787:127.0.0.1:8787 \
  -L 7928:127.0.0.1:7928 \
  root@VPS_IP

After the tunnel is established:

  • Web: http://127.0.0.1:8787/private_path/
  • HTTP / HTTPS proxy: 127.0.0.1:7928
  • SOCKS5 proxy: 127.0.0.1:7928; enable remote DNS or socks5h when available

[!WARNING] Port 7928 has no public-facing user authentication by default. Never expose it directly without a firewall, source-IP restriction, or another reliable access-control layer.

Website, Community, and Video

Destination Purpose Link
Website / forum Announcements and discussion 339936.xyz
Telegram group Real-time community chat t.me/arestemple
YouTube tutorial Installation and usage video Watch
GitHub Issues Reproducible bugs and feature requests Open an issue
Email Bug reports and contact [email protected]

Scope of Use and Legal Notice

[!CAUTION] By downloading, deploying, or using this project, you are responsible for confirming compliance with the laws of your location, the laws where the VPS is hosted, provider terms, and applicable VPNGate rules. This section defines project boundaries, is not legal advice, and cannot guarantee exemption from any liability imposed by law.

  1. Permitted purpose: Use only for lawful network research, education, development testing, privacy protection, and authorized access. Do not use it to evade lawfully imposed controls, gain unauthorized access, attack or scan systems, send spam, commit fraud, infringe rights, or conduct any unlawful activity.
  2. Network and regional restrictions: Some regions and data centers may restrict VPNGate, GitHub mirrors, or remote VPN nodes. The project does not guarantee continuous availability in any region or on any host. Use it only where local law and provider terms permit.
  3. Third-party nodes: VPNGate nodes are operated by third-party volunteers. This project does not own, control, or audit them and cannot guarantee availability, speed, security, privacy practices, or logging behavior. Do not send passwords, financial information, trade secrets, or other sensitive data through untrusted nodes.
  4. User responsibility: The user is responsible for node selection, traffic, deployment location, exposed ports, and account security, and bears legal responsibility for unlawful use, misconfiguration, third-party nodes, outages, data leaks, or account abuse.
  5. No warranty: The software is provided “as is.” To the maximum extent permitted by applicable law, maintainers disclaim warranties of availability, merchantability, fitness for a particular purpose, and indirect damages. Liability that cannot lawfully be excluded remains unaffected.
  6. Stop if uncertain: If you cannot confirm that local law and provider policy permit this use, do not deploy or use the software and consult a qualified lawyer in the relevant jurisdiction.

Explore related projects

Loading…