Install and manage a multi-protocol VPN server from one colorful terminal menu.
Developed by Eng. Abdelrahman Rabie
AutoVPN-Pro is an improved copy of AutoscriptXRAY: Bash installers and small
Go/Python services that set up SSH over WebSocket-style/SSL transports, an
Xray core (VMess, VLESS, Trojan, Shadowsocks), WireGuard, OpenVPN, SlowDNS
(DNSTT), UDP tunnels and an HAProxy front door on a fresh VPS, and manage
them through one interactive menu, a web UI and a Telegram bot. Every screen
shares one violet-to-magenta theme, defined once in theme.sh.
Status: revised build, not yet live-tested on a real VPS. The feature list describes what the scripts are designed to install and manage. Test on a fresh VPS first — see INSTALL.md.
| Category | Features |
|---|---|
| SSH WS | OpenSSH, Dropbear, SSH WS, SSH SSL WS, UDP Custom, BadVPN UDPGW, account limits (days/GB/connections) |
| XRAY Core | VMess, VLESS, Trojan, Shadowsocks, gRPC, NGINX Reverse Proxy, Auto SSL, UUID editing, per-user traffic stats |
| WireGuard | WireGuard VPN, Client Generator, QR Code |
| OpenVPN | OpenVPN UDP 1194, local PKI, client template |
| SlowDNS | DNSTT DNS tunnelling, UDP 53 |
| DNS Boost | Parallel DNSTT tunnels + V2Ray (SOCKS) over DNS, UDP 53 — for SIMs with only DNS open |
| Hysteria2 | Hysteria2 (QUIC/UDP) on UDP 443, same TLS certificate as Xray, per-user passwords, hysteria2:// links |
| AnyTLS | AnyTLS (TLS) on TCP 443 via HAProxy, dedicated subdomain SNI, sing-box server, per-user passwords, anytls:// links |
| Juicity | Juicity (QUIC/UDP) on UDP 8443, same TLS certificate as Xray, per-user UUID + password, juicity:// links (Shadowrocket / NekoBox / Stash) |
| Mieru | Mieru (obfuscated, looks like random data) on TCP 9443, no certificate, no SNI, per-user passwords, mierus:// links (official Mieru app / Clash Meta) |
| TUIC | TUIC v5 (QUIC/UDP) on UDP 9443, sing-box inbound (same instance as AnyTLS), per-user UUID + password, tuic:// links (Hiddify / NekoBox / sing-box / Clash Meta) |
| IKEv2 | IKEv2/IPsec (StrongSwan) on UDP 500 + 4500, native client in iOS / Android / Windows / macOS, no app needed, username + password |
| mKCP | VMess/VLESS over mKCP (UDP) — VMess 16491, VLESS 16492, TLS + shared mask, v2rayNG / v2rayN / Hiddify |
| XHTTP-H3 | VLESS over XHTTP stream-one + HTTP/3 (QUIC) on UDP 16493, v2rayNG / v2rayN / Hiddify |
| UDP Tunnel | UDP Custom, ZIVPN UDP, BadVPN UDPGW |
| HAProxy | Internal front door: SNI routing on 443, path routing on 80 |
| Management | Backup, Domain Manager, Speedtest, Service Checker, Usage Monitoring (GB per user), One-command Update, Telegram Notifications (limits & expiry), Manage Services (restart/disable any service), Change Server DNS (incl. ad-blocking AdGuard), Torrent Support toggle, Install Resume |
| Web UI | Full control online: users, limits, UUID edit, services, online users, usage, tools |
| Telegram | Interactive bot (inline buttons only): users, limits, renew, delete, UUID edit, services |
| Dashboard | Interactive Panel, Service Status, Real Online Users, Traffic Statistics |
| Go Services | Native Dropbear WS, Native Stunnel WS (Python fallbacks included) |
- ZiVPN OFFLINE on every x86_64 fresh install — ROOT CAUSE FOUND AND FIXED (2026-12-05, verified live with the real binary): the pinned SHA-256 for
zivpn-amd64ininstall/checksums.sha256was truncated to 56 characters (missingc238ceb2), soverify_sha256could never match the downloaded binary andinstall/zivpn.shexited 1 before installing anything — ZiVPN never got a binary or a service on any amd64 server, which is why the menu showed UDP ZIVPN OFFLINE on the Hostinger v2.55 fresh install. The ARM64 pin was correct (64 chars, verified against the downloaded arm64 binary), which is why ZiVPN worked on Oracle. The pin is now the correct 64-char hashdf6658c195882ff2f6cefb44050e8cb2c238ceb2b6e3fbefb931698f4f0519cb(verified against the binary from the old repo's release). Also verified live: zivpn starts and listens on UDP 5667 even with an empty"config": []passwords list, so no placeholder user is needed — the checksum was the only blocker to getting it installed.verify_sha256now also rejects any pinned hash that is not 64 hex chars, so a truncated pin fails loudly at the source instead of silently breaking every install.- Two more ZiVPN install bugs found while testing the fix on a fresh Hostinger (x86_64) server: (1)
rebuild-config.shrunssystemctl restart zivpn, but the systemd unit was only written AFTER the rebuild — so on a fresh install the restart failed with "Unit zivpn.service not found" and the module warned "ZiVPN config rebuild failed". The unit is now written (and daemon-reloaded) BEFORE the rebuild. (2) The listener check restarted zivpn on every failed attempt, and each restart kills the listening process and opens a window where nothing is bound — so a healthy service that just needed a few seconds could fail the check twice. The check now polls 5 times (10s) without restarting, restarts only once if still not listening, then polls twice more. Live result on the fresh Hostinger server: the module now exits 0, SHA-256 verified, service ACTIVE + enabled, UDP 5667 listening.
- Two more ZiVPN install bugs found while testing the fix on a fresh Hostinger (x86_64) server: (1)
- Still open (need a decision): panel/bot still run as root (no dedicated service user yet); QR codes for Xray accounts and per-user subscription links are still unbuilt.
- Re-run fixes (found live on the v2.54 re-run on a clean Oracle Ampere install, 2026-12-05): the v2.54 re-run fixed 7 of the 11 failed modules, but nginx + HAProxy + SSH WS/WSS were still OFFLINE. Root causes, all fixed here:
- Xray cert-install aborts on a stale nginx config:
install/xray.shrunsacme.sh --install-certwith--reloadcmd "systemctl reload nginx", and acme.sh reports failure when the reload fails — even though it already copied the cert files into place. On a re-run the nginx config was still the brokenhttp2 on;one (from the v2.53 install), so the reload failed, the module aborted, and the fixed template was never copied over the broken config — nginx and HAProxy stayed OFFLINE. Now the module verifies the cert files after a failed install (valid for the domain, not expired) and only aborts when they are actually missing or invalid; otherwise it warns and continues, and the config is regenerated + nginx restarted below as normal. - Re-downloading a binary onto a running service fails with ETXTBSY:
curl -o /usr/local/bin/<binary>truncates the destination in place, and the kernel refuses (Text file busy, curl error 23) when that binary is already running. On the re-run this aborted the SSH module at the UDP Custom download — beforedropbear-ws/stunnel-wswere ever started, so SSH WS/WSS stayed OFFLINE. The same failure would hit any re-run of Hysteria2 / ZiVPN / BadVPN. All five direct-to-/usr/local/bin/downloads (badvpn-udpgw,udp-customamd64 + arm64,hysteria,zivpn) now download to a temp file andinstall -m 755it into place (the same pattern the Xray module already uses), so a running binary is never truncated.
- Xray cert-install aborts on a stale nginx config:
- Note on the re-run module warnings: the AnyTLS ("sing-box not listening on 14443"), Slipstream ("DNS router not on 5300") and ZiVPN ("not listening on UDP 5667") checks still report failure even though the services come up moments later — the checks poll before the services finish starting. Verified live: sing-box IS on 14443, dns-router IS on 5300, zivpn IS on UDP 5667. These are timing artifacts, not real failures.
- Still open (need a decision): panel/bot still run as root (no dedicated service user yet); QR codes for Xray accounts and per-user subscription links are still unbuilt.
- Fresh-install fixes (found live on a clean Oracle Ampere install, 2026-12-05): a fresh v2.53 install left 11 of 22 modules failed (ZiVPN + HAProxy OFFLINE in the menu, as the user reported). Root causes, all fixed here:
- nginx
http2 on;breaks nginx 1.24 (Ubuntu 24.04):config/xray.confused the standalonehttp2 on;directive (nginx ≥ 1.25.1 syntax), songinx -tfailed withunknown directive "http2", the Xray module failed, and Xray/Reality/DNS Boost/Slipstream/AnyTLS/TUIC/HAProxy all cascaded. The template now uses thelisten 443 ssl http2;parameter form (works on 1.24 and is accepted on 1.25.1+), matching the seds ininstall/xray.sh/tools/haproxy.sh. - ZiVPN deps conflict (
ufwvsiptables-persistent):install/zivpn.shinstalledufwandiptables-persistentin one apt transaction; apt refuses the pair ("held broken packages"). The script never uses ufw — it is no longer installed here (verified: the same command withoutufwsucceeds). rebuild-config.shchecked with-xbut the files are not executable: all sevenrebuild-config.shfiles are mode 664 in the repo, so every[[ -x .../rebuild-config.sh ]]check failed — ZiVPN errored out ("udp/rebuild-config.sh is missing"), and AnyTLS/Hysteria/IKEv2/Juicity/Mieru/TUIC silently fell back to minimal configs with no users (which is why Mieru reported "no user found" and TUIC never got its sing-box inbound). All 11 checks now use-f(the scripts are invoked viabash, so executability is irrelevant), and the files are chmod +x for consistency.- Mieru needs a user to start:
mita startrefuses an empty users list ("no user found"), so a fresh install could never bring Mieru up.mieru/rebuild-config.shand theinstall/mieru.shfallback now write a randomplaceholderuser when users.db is empty (mirrors Hysteria2's placeholder) — it disappears the moment the first real user is added. - SSH listener checks used stale patterns:
install/ssh.shchecked127.0.0.1:2082/127.0.0.1:2096(the Go services bind 0.0.0.0) and UDP:7300(udpgw listens on TCP) — so a healthy server was reported as failed. Now matchestools/update.sh(:2082,:2096, TCP:7300). - Slipstream
--versiondisplay: the binary has no--versionflag, so the "installed" line printed an error. It now uses--help.
- nginx
- Still open (need a decision): panel/bot still run as root (no dedicated service user yet); QR codes for Xray accounts and per-user subscription links are still unbuilt.
- SSH accounts visible again (v2.52 regression fixed): v2.52 made
list_users sshcount ONLY users with an ssh-protocol JSON record in/etc/vpn/users/, so a real SSH login account with no record (e.g.abdelrahmanon Oracle) vanished from the SSH menu, the main-menu TOTAL and the panel Users page.lib.shnow restores the system-account fallback, but narrowly: only UID ≥ 1000 accounts with a login shell AND a set (non-locked) password in/etc/shadow, excluding known non-VPN accounts (root,ubuntu,opc,mita,nobody), and skipping users already listed from an ssh record — so the cloud default user is no longer counted as a VPN user (the thing v2.52 was guarding against). A user whose record is another protocol (e.g. tuic) is still listed as SSH if they can log in via SSH. Note:abdoowas deleted from Oracle on 2026-12-03 (byuserdel); any client config still usingabdoowill fail auth — useabdelrahman. - ZiVPN restart no longer swallowed:
udp/rebuild-config.shransystemctl restart zivpn 2>/dev/null || true, so a failed restart left the new config unapplied while the caller reported success. It now fails loudly with an error message and exit 1. - Update enforces Xray config permissions: the v2.52 H2 fix (
chmod 600 /etc/xray/config.json) lived only in the installers, which chmod only when they write the config — an update that doesn't rewrite it left a world-readable config behind (both live servers needed a manual chmod after the v2.52 update).tools/update.shnow enforces 600 on every update. - Still open (need a decision): panel/bot still run as root (no dedicated service user yet); QR codes for Xray accounts and per-user subscription links are still unbuilt.
- Full audit fix (156 findings: 16 HIGH, 56 MEDIUM, 84 LOW) — the complete line-by-line review of v2.51 is fixed in this release, all portable (x86_64/Hostinger and ARM64/Oracle):
- Security: CLI backup restore now validates archive members (Zip Slip fixed, same allowlist as the panel restore);
/etc/xray/config.jsonischmod 600(it holds the Reality private key and every client UUID);stunnel-wsnow requires an exact127.0.0.1/localhosthost and an allowlisted port (was a prefix match — SSRF to the panel, Xray SOCKS and the Xray API); SSH passwords are no longer passed as subprocess argv from the panel/bot; the Pythonws-stunnelfallback is allowlisted to port 109. - Services that stay up: Mieru survives reboot/restart — a oneshot
mita-start.servicere-runsmita startat boot and after every restart; DNS Boost rollback now disables the router so SlowDNS cannot stay dead after reboot; Hysteria/Juicity rebuilds take the backup before writing the new config and validate it semantically; new SSH accounts getchpasswd -c SHA512(Dropbear cannot verify yescrypt, so new accounts failed on ports 109/143). - User management:
expire-accounts.shno longer aborts on the first expired Xray user and no longer deletes the record before the Xray removal; deleting an IKEv2 user now terminates live sessions; panel/bot Delete and Renew now cover every protocol (was SSH/Xray only) and Renew updates the SSH system expiry (chage); the panel/bot call the realaddssh.sh/delssh.sh(was the non-existent hyphenated names); WireGuard now has panel/bot (non-interactive) add/delete; GB-locked ZiVPN/IKEv2 users renew correctly in bothusers.dbandusers.db.locked. - Trials: trial accounts now exist for the four Xray protocols (menu option 6) and for OpenVPN; Xray submenus also gained "List All Accounts" (menu option 7). Shadowsocks links now carry transport/path/TLS (plain
ss://links could not connect). - Panel/bot: dashboard shows all 15 protocols; the Tools dropdown and
SERVICESlists are complete (incl.stunnel4,dropbear-ws,stunnel-ws,hysteria-server,sing-box,juicity-server,mita,strongswan-starter,slipstream); the speedtest button detects Ookla vs speedtest-cli and uses the matching syntax; backup/restore covers all config dirs and restarts the affected services. - Still open (need a decision): panel/bot still run as root (no dedicated service user yet); QR codes for Xray accounts and per-user subscription links are still unbuilt.
- Security: CLI backup restore now validates archive members (Zip Slip fixed, same allowlist as the panel restore);
- Panel no longer shows the Python SSH-WS fallbacks as "Offline":
ws-dropbear/ws-stunnelare installed but deliberately NOT started by default (the Godropbear-ws/stunnel-wsalready listen on 2082/2096), so listing them in the service status made the panel show "Offline" for services meant to be off. They are removed from the status displays (Web UI, Telegram bot,tools/services.sh,tools/running.sh) — the fallback files and units stay on disk for manual use.
- Fixes the update.sh false-fails for dropbear-ws and stunnel-ws: the
check_svcpatterns expected127.0.0.1:2082/127.0.0.1:2096, but the Go SSH-WS services bind0.0.0.0(all interfaces), so every update falsely reported them FAILED even though they were active and listening. The patterns now match any interface (:2082/:2096), like the other services. Found live on the Oracle v2.49 update. - Web UI Dark / Light mode + professional responsive style: a theme toggle (topbar on every page, plus the login page) switches between the dark slate theme (default) and a clean light theme with the same violet
#7C3AED→ magenta#D946EFaccents, persisted in aautovpn_themecookie. All pages look correct in both modes (every hard-coded color converted to theme variables). Style improved throughout: smooth transitions, 44px mobile touch targets, cards that stack cleanly on narrow screens, horizontally scrolling tables, and a polished login page in both themes. No functionality or routes changed. - Menu shows the real version: the banner no longer says a static "Edition V2.0" — it now reads the installed version from
/etc/autoscriptvpn/VERSION(e.g.Edition v2.50) and updates automatically with every release. - OpenVPN account creation fixed: the service could be ONLINE while the easy-rsa PKI was missing, so no account could ever be created (and there was no repair path).
add-openvpn.shnow diagnoses exactly which PKI piece is missing; interactive mode offers a confirmed PKI repair (new menu option 8 "Repair OpenVPN PKI"), andinstall/openvpn.shrebuilds a missing PKI on re-run. Also fixed:.ovpnbundles now embed pure PEM certs (stripped viaopenssl x509), delete no longer leaves zombie accounts,delete-user.shno longer hides OpenVPN delete failures, and bareinit-pkino longer hangs on re-run. Every created account now shows clear "HOW TO CONNECT" instructions (OpenVPN Connect / OpenVPN for Android, import the.ovpn, UDP 1194) in the terminal and as a comment header in the.ovpnfile.
- OpenVPN add-client (full flow): OpenVPN finally has user management —
openvpn/add-openvpn.shbuilds a client with easyrsa (build-client-full,--batch), writes a ready.ovpnbundle (CA + cert + key + tls-auth inline,remote <domain> 1194), and records the user so list/delete/renew work. Newdel/list/renew/showscripts + anm-openvpnsubmenu wired to main menu option 14 (was status-only). Expiry revokes the cert in batch (one CRL rebuild + one restart). Non-interactive argv mode for panel/bot use. - Usage collection + monitoring for the non-Xray protocols: real per-user counters now wired into
usage-collect.shfor Hysteria2 (Traffic Stats API, config now emits atrafficStatsblock with a 600 secret), Mieru (mita get metrics, Download/UploadBytes per user), and IKEv2 (ipsec statusallCHILD_SA bytes per EAP user). GB limits now actually lock/unlock those three (.dbline moved tousers.db.locked+ one rebuild per protocol; IKEv2 also drops live SAs). Reality was verified already covered by the Xray counters (same VLESS inbound). AnyTLS/TUIC/Juicity/ZiVPN have no reliable per-user counter source — they are marked"usage_available": falseand shown asn/a(never proportionally attributed). Web UI usage page + a new Telegram bot Usage screen + CLIusage.shshow real GB orn/a. Also fixed a latentset -ubug where the first over-limit user abortedcheck-limits.sh. - Web UI style refresh:
base.htmloverhaul — violet#7C3AED→ magenta#D946EFgradient accents (logo mark, stat-card top bars, login, usage fills), uppercase letter-spaced status pills with a pulsing dot, gradient usage bars (amber ≥70%, red ≥90%/limit), responsive ≤640px breakpoint, polished login page, and a Usage bar column in the Usage/Users tables. No functionality or routes changed; all data fields still visible. - Caveats: Hysteria2 usage stays
n/aon already-installed servers until the config is regenerated (add a user or re-runhysteria/rebuild-config.sh); Mieru metric shape is from upstream docs (fails safe on mismatch); OpenVPN easyrsa commands are untested against a real PKI.
- All remaining MEDIUM (47) and LOW (40) audit findings fixed (74 files), all portable (x86_64/Hostinger and ARM64/Oracle):
- Permissions:
users.dbfiles and private keys (VPN key, IPsec key, ZiVPN key, Easy-RSA server key) are nowchmod 600at creation, withchmod 700on private dirs. - Domain validation: the installer now validates the domain (and AnyTLS subdomain) with the same regex the Web UI uses, and
setup.shexits 1 ifsetup_domain()fails — no more empty-domain installs that break every module downstream. - User counting & menus: WireGuard list parses only real peer blocks (no more
Copyright/NOTE:phantom users); menu TOTAL counts only VPN users;GREEN/REDdefined in theme.sh so ONLINE/OFFLINE is coloured in all submenus; missingpausecalls added so tool output is not wiped byclear; six submenus now sourcelib.sh(their "Check Log" no longer errors); menu options 13/14 now pause and return to the menu. - Slipstream in the panel:
slipstream_info()is now passed to the dashboard and shown as a card (was defined but never displayed). - Update backup: now covers
/etc/vpn,/etc/xray, and/root/accounts(was scripts-only); TUIC reinstall trigger is no longer over-eager; repo-checkout refresh warns loudly instead of swallowing failure. - Config: nginx
:80block now has/trojan-ws;ensure_panel_locationchecks per-block; stale front-domains/HAProxy comments updated; Reality aborts on an empty public key; SlowDNS listener check uses :5302 when DNS Boost is installed. - Install hardening:
go build/cmake/pipsteps now run throughrun_with_progress(bounded, visible);/root/.profileis backed up before overwrite; telegram setup re-prompts when the token is empty;detect_arch()fails loudly on unknown CPUs instead of silently falling back to amd64;run_with_progresstimeout now coversdpkgtoo. - User management: trial usernames are checked for duplicates;
edit-uuidno longer rejects Trojan/SSWS passwords; SSHuseraddfailures roll back (no orphan users);wg-addaborts on an empty server public key and removes the orphan peer on restart failure;.dbpasswords with spaces/special chars are validated at add time; ZiVPN renew preserves limits and rebuilds config; stale VPNACCT iptables rules are removed on delete/expire. - Web UI / bot: SSH delete checks the
userdelreturn code and kills sessions first;usage_rows()no longer crashes on a non-numeric limit; bot/startclears stale multi-step state; bot backup verifies source dirs first; blankWEBUI_PORT/WEBUI_BINDin the example config are treated as missing (no more dead panel on 8080). - Uninstall:
.profileis no longer wiped (only the auto-menu lines are stripped); torrentevalreplaced with an argv array. - Still open (need a decision): OpenVPN has no add-client flow (menu option 14 is status-only); panel/bot still run as root (no dedicated service user yet); GB limits remain SSH/Xray-only (documented, not implemented for .db protocols).
- Permissions:
- Fixes the v2.46 update.sh false-fails:
udpgwis now checked on TCP (it listens on TCP 127.0.0.1:7300, not UDP); the Telegram bot check/restart is skipped when no token is set; SlowDNS is checked on :5300 without DNS Boost and :5302 with it;stunnel4is now restarted and checked; the nginx check requires 127.0.0.1:10443 (HAProxy's own :443 can no longer mask a dead nginx); deliberately disabled services are no longer restarted. - Usage counting fixed:
usage-collect.shnow preserves alllast_*counters on every write (it used to drop them, so each run counted the full cumulative counter again and GB limits falsely locked users). Also fixed a latent bug where totals were written tousage/.jsoninstead of the user's file. - Panel/bot SSH creation fixed:
addssh.sh/delssh.share now argv-driven (no prompts), the panel/bot call the real scripts, and the fallback uses/bin/bash(not/bin/false), adds the VPNACCT iptables rule, and removes sessions/rules/files on delete. SSWS users locked by a limit can now be unlocked (the unlock restores themethod). - Supply-chain verification: new
install/checksums.sha256+verify_sha256()— pinned SHA-256 hashes are verified before installing Xray/Hysteria/Juicity/ZiVPN/Mieru/Dropbear/BadVPN/UDP-Custom/sing-box binaries (14 hashes pinned and verified; 11latest-URL entries are TODO/warn-only). Slipstream checksum failure is now fatal.curl | shfor acme.sh is gone — the pinned v3.1.1 archive is downloaded, verified, and installed from disk. - Panel security:
/panel/is served only over HTTPS (443); session cookies now have Secure/HttpOnly/SameSite=Lax; login rate-limiting (5 failures / 15 min → 15-min per-IP lockout); backup restore Zip Slip fixed (member validation, restricted to etc/xray|etc/vpn|etc/wireguard). The placebo Edit Ports form was removed. - Re-run safety: WireGuard and ZiVPN re-runs no longer wipe users/peers (existing keys/configs reused); SlowDNS build failure, HAProxy enable failure, and DNS Boost/Slipstream SOCKS failures are now fatal instead of silently DONE; Xray backs up config.json and re-issues expired/wrong-domain certs;
--forceresets install-state and stops HAProxy first. - Juicity + AnyTLS verification: cert check before start, listener verify after (UDP 8443 / 127.0.0.1:14443 +
sing-box check); AnyTLS no longer silently falls back to the main-domain cert on expansion failure. - IKEv2 on Oracle fixed: NAT rules now use the detected default interface (Oracle uses
ens3, noteth0); RSA-cert reuse checks expiry; verify checks the CA chain and key match. SSH trial accounts now use/bin/bashwith expiry tomorrow. WireGuard list/delete no longer shows phantom users or deletes the wrong peer. Uninstall now removes all five newer services (hysteria, sing-box, juicity, mita, strongswan), their binaries/configs, leftover firewall rules, and the notify cron.
- The services below are now verified listening after install/update, not just "active": the full-script review found 8 more cases of the same failure class (a service assumed running but never verified). All fixed portably (same pattern on x86_64/Hostinger and ARM64/Oracle). (nginx and Xray are the exception: they are only checked for active state via
enable_service— neither verifies its listener after starting.)- IKEv2: the RSA certificate is now verified (exists, not expired, covers the domain) before strongSwan starts — a failed cert issue no longer leaves clients unable to authenticate while the install reports success.
- update.sh: after restarting ~20 services it now checks each one's state + listener and reports exactly which ones failed, instead of printing "Updated" with a service down.
- HAProxy: if
enable()fails after nginx was moved to loopback, it now restores nginx to the public ports before exiting — public 80/443 no longer go dark on a failed enable. - Hysteria2 + TUIC: both verify the Let's Encrypt cert exists before starting, and verify their listener after (UDP 443 / UDP 9443 +
sing-box check). - DNS Boost + Slipstream: Xray is now backed up before the config change and verified active + SOCKS 10808 listening after the restart, restoring the backup on failure (the Reality pattern).
- SlowDNS, WireGuard, OpenVPN, ZiVPN, SSH, Web UI: each now verifies its listener after starting (UDP 5300/51820/1194/5667, SSH ports, 127.0.0.1:18080).
- AnyTLS: the haproxy restart is now guarded (only when haproxy is actually running) — no longer a silent no-op on fresh installs.
- Direct apt/dpkg calls (mieru, ssh) now go through
run_with_progress(stdin /dev/null + timeout + noninteractive), so no conffile prompt can block.
- Stunnel no longer dies silently when the certificate is not ready yet: on a fresh install stunnel4 failed on its first start because the Let's Encrypt cert did not exist yet, and it never retried — SSH over TLS was dead while the install reported success.
install/stunnel.shnow waits up to 60s for/etc/xray/cert.crt+/etc/xray/private.keyto appear, then starts stunnel and verifies it is actually listening on 127.0.0.1:10444 (retrying a few times). If the cert never appears it fails the module with a clear message instead of a silent dead service. - Mieru server is now started after the daemon, not before:
mita startis a runtime command whose "started" state does not survive a daemon restart, but the installer ran it and then restarted the daemon — so the server ended up STOPPED with no listener on TCP 9443.install/mieru.shnow starts the daemon first, then runsmita start, then verifies TCP 9443 is listening (retrying a few times). If it still does not listen it prints the mita status and a clear error.
- HAProxy can no longer silently stay down after a fresh install: on the user's own solo fresh install (v2.43), HAProxy showed OFFLINE in the menu even though its config was valid and ports 80/443 were free moments later. Root cause:
enable()ransystemctl restart haproxyand trusted it — but the process died on "Address already in use" because nginx's old workers had not fully released :80/:443 yet, and after 5 rapid failures systemd rate-limited further starts ("Start request repeated too quickly"), so the front door stayed down while the install carried on. Fix:enable()now clears any previous failure state (systemctl reset-failed), stops/starts HAProxy instead of a bare restart, verifies it is actually listening on :80 and :443, and retries up to 3 times before giving up — and if it still fails it prints exactly what is holding the ports (ss -tlnp) instead of a bare error. Verified live on the user's Hostinger server: HAProxy now ACTIVE on :80/:443.
- Install can no longer spin forever on a prompt: the Web UI admin-password prompt used to loop until a non-empty password was typed — with stdin from
/dev/null(unattended run)readreturns EOF instantly with an empty value, so it printed "Password must not be empty" ~32,000 times a second and grew the install log to 384 MB in minutes. Now, when there is no terminal to ask on, it generates a random 16-character admin password and prints it clearly (change it after first login), and it also accepts aWEBUI_PASSenvironment variable. The same EOF fail-fast guard was added to the domain prompt (setup_domain) and to the Telegram token/chat-ID prompts in Tools → Telegram Settings. - dpkg conffile prompts can no longer block the install: when a package ships a config the script already rewrote (e.g. the
haproxy.cfgthe HAProxy module generates), dpkg asks which version to keep — with stdin from/dev/nullthe answer is EOF and the install aborts.setup.shnow writes/etc/apt/apt.conf.d/99-autovpn-proforcing--force-confdef+--force-confold(keep the script-managed version, no prompt). This was the second failure in the same fresh-install run: the Web UI dependencies install aborted on the haproxy conffile prompt.
- Install can no longer stall on a terminal read: every command run through
run_with_progressnow gets stdin from/dev/null. Root cause of the fresh-install stall: GNUtimeoutruns its command in a background process group, and a background process that reads from the terminal gets SIGTTIN and stops (stateT) — on a fresh Hostinger install the Base packages step stalled twice at "Processing triggers for libc-bin" withaptsitting stopped and load 0.00, diagnosed live on the server (psshowed apt in stateT, wchando_signal_stop, in a different process group than the foregroundtee). With stdin from/dev/nullno read can ever block or stop the install. The stuck install was recovered by killing the stoppedapt/timeoutand runningdpkg --configure -a.
- Install output is live now:
run_with_progressno longer hides the command behind a braille spinner — it streams the command's real output to the terminal as it happens (which package is downloading, what is being unpacked, ...), so the user always sees the actual operations instead of a lone step label. The full output is still saved to/root/log-install.txt, and the step still ends with a ✔/✗ summary line with the elapsed time. The spinner is gone because on the user's phone terminal it rendered as a garbled wall of repeated "Base packages —" lines and hid the real progress, so a slow step looked stuck. - apt can never hang on a prompt: every apt/apt-get call now runs with
DEBIAN_FRONTEND=noninteractive(also exported bysetup.sh), so a debconf question — e.g. iptables-persistent asking whether to save the current rules — can no longer stall the install waiting for an answer nobody can see. This was the likely cause of the "Base packages" step stalling for minutes on a fresh Hostinger install with no visible progress.
- IKEv2 fixed: IKEv2/IPsec (StrongSwan) did not work on any client — Android native dialog and the strongSwan app both failed. Two root causes: (1) no RSA certificate existed at all —
install/ikev2.shused acme.sh--key-type rsa, which acme.sh v3.1.8 does not recognize, and the error was swallowed by2>/dev/null, so the install "succeeded" while no cert was ever issued. Fixed to--keylength 2048. (2) Incomplete certificate chain — strongSwan only loads the FIRST certificate from a multi-cert file, so the Let's Encrypt "Generation Y" chain (leaf ← YR2 ← Root YR) left Root YR unloaded and clients failed withno trusted RSA public key found. Newikev2/deploy-cert.shsplits the chain into one file per CA cert and reloads strongSwan; renewals re-split automatically via--reloadcmd. Verified end-to-end with a realcharon-cmdIKEv2 EAP-MSCHAPv2 handshake (server sends 3 certs, EAP succeeds, IKE_SA + CHILD_SA established).
- V2Ray gRPC fixed: gRPC (VMess/VLESS/Trojan/Shadowsocks over gRPC on port 443) did not work on any client. Root cause: the nginx TLS listener had no HTTP/2 enabled, so it never negotiated h2 and gRPC — which requires HTTP/2 — could not start. Fixed by adding
http2to the TLS listen lines in the nginx template (config/xray.conf) and to the port-move sed commands ininstall/xray.shandtools/haproxy.sh(enable/disable both directions). Verified end-to-end with a real Xray client: VLESS-gRPC returns HTTP 200, and the server access log shows[vless-grpc >> direct]. - TUIC test user restored: the TUIC test user
abdowas missing from/etc/sing-box/tuic-users.db(onlyabdelrahmanwas present), so the TUIC link handed out for testing could never authenticate. The user was re-created on the live server with the same UUID/password as the link already given, and the sing-box config was rebuilt — the link now works. (Thetuic/add-tuic.shscript itself was correct; the user had simply never been created.)
- Telegram bot setup from the menu (Tools →
9Telegram Settings): enter the bot token (from @BotFather) and chat ID (from @userinfobot) right in the menu — no file editing. It writes/etc/vpn/telegram.conf, enables and starts the bot, and reminds you to press/starton the bot. - Change Server DNS (Tools →
11): a numbered list of preset resolvers — AdGuard Ad Blocking (94.140.14.14), AdGuard Family Protection, Cloudflare (1.1.1.1), Google (8.8.8.8), Quad9 (9.9.9.9) — plus a Custom DNS entry. The choice is saved in/etc/vpn/dns.confand applied to the server itself and to the DNS pushed to VPN clients (WireGuard peer configs, OpenVPN), so everyone connected gets ad-blocking when an AdGuard preset is chosen. New WireGuard accounts use the saved DNS automatically. - Torrent Support toggle (Tools →
12): enable or disable torrent downloading. When disabled, iptables rules (taggedautovpn-torrent-block) block the BitTorrent ports 6881–6889 and the BitTorrent handshake for VPN clients. Best-effort filtering: encrypted/obfuscated torrent traffic cannot be fully blocked this way. The setting is saved in/etc/vpn/torrent.confand survives reboot. - Install Resume: re-running
./setup.shafter an interrupted install resumes where it left off — completed modules are skipped, only failed or never-run steps run again. Progress is tracked in/etc/vpn/install-state. Use./setup.sh --forceto start over from scratch. - Install UX polish: apt steps are time-bounded (no more silent hangs), the spinner always shows its label, service activation is polled instead of checked once (no false OFFLINE), and the end-of-install table lists every service with its real ACTIVE/OFFLINE state (including stunnel4, slowdns2, dns-router, Slipstream, Juicity, Mieru, IKEv2, Reality, TUIC, mKCP/XHTTP-H3).
- Manage Services (main menu →
27): every service listed numbered with its real ONLINE/OFFLINE state; pick one to restart it, disable it (stop + disable), or enable + start it. - Mieru fixed: the
mitaservice was down because its system user had been deleted (systemd 217/USER) and the live config had no users. The installer now recreates themitauser/group if missing, and the live server was repaired (user recreated, config rebuilt from/etc/mieru/users.db, proxy RUNNING on TCP 9443).
Open the menu any time after installation:
menuor:
vpnNote: this script must be run as root, on a fresh VPS. Full steps: INSTALL.md.
# update
apt update -y && apt upgrade -y
apt install git curl screen sudo -y
# clone the repo
git clone https://github.com/PacketBreaker/AutoVPN-Pro.git
cd AutoVPN-Pro
# run the main installer
chmod +x setup.sh
screen -S setup ./setup.sh| Service | Port |
|---|---|
| OpenSSH | 22 |
| Dropbear | 109,143 |
| SSH WS | 2082 |
| SSH SSL WS | 2096 |
| BadVPN UDPGW | 7300 |
| UDP Custom | 1-65535 (listens on 36712) |
| VMess TLS | 443 |
| VMess None TLS | 80 |
| VLESS TLS | 443 |
| Trojan TLS | 443 |
| Shadowsocks WS | 443 |
| WireGuard | 51820 (UDP) |
| OpenVPN | 1194 (UDP) |
| ZiVPN | 5667 (UDP) |
| Hysteria2 | 443 (UDP, QUIC — shares the port number with TCP 443, no conflict) |
| AnyTLS | 443 (TCP, via HAProxy, dedicated subdomain SNI) |
| Juicity | 8443 (UDP, QUIC) |
| Mieru | 9443 (TCP, obfuscated) |
| TUIC | 9443 (UDP, QUIC) |
| IKEv2 | 500 + 4500 (UDP) |
| VMess-mKCP | 16491 (UDP) |
| VLESS-mKCP | 16492 (UDP) |
| VLESS-XHTTP-H3 | 16493 (UDP, QUIC) |
| VLESS Reality | 8443 (TCP, REALITY, plain — no XTLS Vision flow) |
| SlowDNS | 53 (UDP, redirected to 5300) |
| DNS Boost | 53 (UDP, router on 5300: old tunnel 5302, new tunnel 5301, SOCKS 10808 localhost) |
| Slipstream | 53 (UDP, router on 5300: slip branch 5303, SOCKS 10808 localhost, QUIC over DNS) |
For users whose SIM leaves only UDP 53 open (carrier DNS or Google DNS,
no free HTTPS): a second DNSTT tunnel (v2dns.<domain>) carries V2Ray
through an Xray SOCKS inbound instead of SSH. A small router on UDP 5300
forwards each DNS query to the right tunnel by its domain name, so the
old SlowDNS → SSH path keeps working exactly as before. The speed comes
from parallel tunnels on the phone — one dnstt-client per resolver
(carrier DNS, 8.8.8.8, 1.1.1.1, 9.9.9.9), all for the same v2dns domain;
each resolver rate-limits on its own. It needs a client that supports
parallel DNS tunnels (Hiddify); a single-tunnel client will not go
faster. The speed gain is not tested live yet — test from a phone first.
Menu 24 (DNS BOOST) → Show Client Config prints the ready Hiddify JSON
(domain and public key filled in, auto resolver discovery) in the
same boxed style as the V2Ray accounts, and saves it to
/root/accounts/dnsboost-hiddify.json for easy copy into Hiddify.
dnsboost/rollback.sh restores the old tunnel only.
Slipstream (Mygod/slipstream-rust) is a third DNS tunnel next to
SlowDNS and DNS Boost: it carries QUIC packets (TLS 1.3) inside
DNS queries and responses instead of DNSTT's KCP+Noise, and the
upstream benchmarks put it at ~5x the speed of classic DNSTT. It
uses its own NS domain, slip.<domain>, routed by the same DNS
router on UDP 5300 (old tunnel 5302, new tunnel 5301, Slipstream
5303), and forwards to the same Xray SOCKS inbound on
127.0.0.1:10808 — so the traffic inside is V2Ray, like DNS Boost.
The old SlowDNS → SSH path and DNS Boost keep working unchanged;
Slipstream is an extra tunnel, not a replacement. It needs no
public key (the client only needs the tunnel domain) and no new
firewall port (only UDP 53, already open). Menu 26 (SLIPSTREAM)
shows the client config (slipstream-client CLI + Hero app /
DNSTT-Client app settings) and the NS record to add
(slip.<domain> NS <main domain>). slipstream/rollback.sh
removes it. The speed gain is not tested live yet — the NS record
has to be added first, then test from a phone.
REALITY makes the server's TLS handshake indistinguishable from
a connection to a popular site (default www.google.com): no
certificate of its own is presented, so DPI cannot tell a proxy
is running there at all — only clients with the server's X25519
public key get in. It runs on its own dedicated port, TCP 8443
(HAProxy owns 443), plain Reality with no XTLS Vision flow
(Vision breaks the handshake on this server — verified
2026-12-03, links omit it). Every VLESS user
automatically gets a Reality link (same UUID), and menu 25
(REALITY) manages Reality users. Keys live in
/etc/vpn/reality.conf (600) and survive reinstalls; the dest
can be set to a Facebook domain so the traffic counts against a
Facebook-only bundle. Import the link in Hiddify, v2rayNG,
NekoBox or Streisand (NOT DarkTunnel). TCP 8443 must also be
opened in the cloud firewall (Oracle Cloud: Default Security
List). Verified end-to-end 2026-12-03 with a real Xray client
(HTTP 200 through the tunnel, public IP). Old links that still
carry flow=xtls-rprx-vision do not connect — get a fresh link
from menu 25. See INSTALL.md section 7.
- English only. Every non-English word in the old repo was replaced with English (for example the old words for "minutes", "seconds", "validate old config", "get server info" and "restarted"). The project contains zero non-English words in user-visible text, comments or code strings.
- Uninstall fixed.
uninstall.shnow removes every service, unit, binary, config, menu entry, cron job and iptables rule the installer creates, and restores the Nginx default site, the stock/root/.profileand the default SSH banner. - ISP fixed. The menu header used to show
(unknown).get_isp()now tries five free no-key IP-info APIs in order (ip-api.com, ipwho.is, ipinfo.io, freeipapi.com, ipapi.co), each with a 4-second timeout, caches the answer per IP for 7 days, and falls back to(unknown)without ever hanging the menu. - V2Ray UUID editing. Every VMess/VLESS/Trojan/Shadowsocks menu has an "Edit UUID" option: pick a user from a numbered list, enter a new UUID (validated), confirm with the old and new UUID shown, and the UUID is updated in every inbound of that protocol, in the user record, and Xray is restarted. Expiry and limits are untouched.
- SSH limits. Creating an SSH user asks for days, a data limit in GB
(0 = Unlimited) and max simultaneous connections (0 = Unlimited).
Expiry is enforced by account expiry plus a daily cleanup; data is
enforced from real iptables counters checked every 10 minutes
(account locked at the limit, unlocked when the limit is raised);
connections are enforced at login and by a 10-minute sweep that ends
sessions over the limit. Renew-by-days and delete-by-numbered-list
(with a
Verified:line) are included. - Online users are real now. The old menu counted registered users and guessed online users from raw log lines. See How online users are counted.
- Usage monitoring. Per-client GB limit / GB used / GB remaining for SSH and V2Ray accounts, in the menu (Tools → Usage), in the web UI (dedicated Usage section with GB-limit mode) and from the same real counters the limits use. See How usage is measured.
- Web UI. Flask panel at
https://<domain>/panel/controlling everything the menu does. Telegram bot. Inline buttons only (/startis the only command), restricted to the configured chat ID. - HAProxy, OpenVPN, SlowDNS. These three are original modules written for AutoVPN-Pro — the AutoscriptXRAY base has no HAProxy, OpenVPN or DNSTT/SlowDNS at all. All downloads still use the old repo's exact release URLs (see Downloads); no release version or URL was changed.
- Hysteria2. A QUIC/UDP protocol on UDP 443, reusing the same Let's
Encrypt certificate as Xray. It does not conflict with TCP 443
(HAProxy/nginx) because it is UDP-only. Per-user passwords, managed
from menu option 18, with
hysteria2://links for Hiddify, NekoBox, Streisand and Shadowrocket. The installer adds an iptables ACCEPT for UDP 443 before the udp-custom catch-all DNAT, or Hysteria2 traffic would be swallowed by it (same fix as ZiVPN/WireGuard/OpenVPN). - AnyTLS. A TLS-based protocol on TCP 443, served by sing-box,
routed by HAProxy on a dedicated subdomain SNI (e.g.
anytls.<domain>— the installer asks for the domain, defaultanytls.<domain>; create its DNS A record first and the installer expands the Let's Encrypt certificate to cover it). It cannot share a front-domain SNI with raw SSH because an AnyTLS client sends no ALPN, so HAProxy could not tell them apart. Per-user passwords, managed from menu option 19, withanytls://links. The SNI is the subdomain, so AnyTLS uses main data, not a Facebook-only bundle. - Juicity, Mieru, TUIC, IKEv2, mKCP, XHTTP-H3. Six more protocols,
all installed by default. Juicity (menu 20) is a QUIC/UDP proxy
on UDP 8443 with per-user UUID + password and
juicity://links (Shadowrocket / NekoBox / Stash). Mieru (menu 21) is an obfuscation protocol on TCP 9443 whose traffic looks like random data — the strongest stealth here; no certificate, no SNI, so it cannot use a Facebook-only bundle (official Mieru app / Clash Meta). TUIC (menu 22) is a QUIC/UDP proxy on UDP 9443 as a sing-box inbound, sharing the AnyTLS instance and certificate (Hiddify / NekoBox / sing-box / Clash Meta). IKEv2/IPsec (menu 23, StrongSwan) needs no app at all — iOS, Android, Windows and macOS have a native IKEv2 client; it uses a separate RSA certificate (iOS rejects the main ECC cert) and UDP 500 + 4500. mKCP adds VMess (UDP 16491) and VLESS (UDP 16492) inbounds to Xray — every VMess/VLESS user works over mKCP automatically, with the link printed in the account display (v2rayNG / v2rayN / Hiddify). XHTTP-H3 adds a VLESS-over-HTTP/3 inbound (UDP 16493) — Xray's replacement for the old standalone QUIC transport, which was removed in Xray v24.9.30. All six are documented with their app in INSTALL.md section 7. - One-command update. Tools → Update AutoVPN-Pro downloads the
latest release, backs up the current install, and replaces the
scripts in
/etc/autoscriptvpn— users, configs and certificates are never touched. - Telegram notifications. Every 6 hours the server alerts the admin when a user reaches 80% or 100% of their data limit, or when an account expires in 3 days or less. Needs the Telegram bot configured. At most one message per user per condition per day.
- SSH account editing. The SSH menu has an Edit option (10): change the password, the data limit in GB, the max connections, or the expiry (remaining days, a date, or unlimited).
- Installer hardening (from real installs). Installer logs go to
stderr so
setup_domain()can never corrupt the domain string; config files are installed 644; OpenVPN config lands in/etc/openvpn/server/where systemd looks;readunderset -eis always guarded with|| true; a failed module warns and the install continues, and the menu is always installed.
No number is invented. When nothing is connected, the menu shows 0.
| Protocol | Method |
|---|---|
| SSH | who — real logged-in sshd sessions. A user is online while at least one sshd session exists. Per-user session counts come from the same source. |
| Xray (VMess/VLESS/Trojan/Shadowsocks) | /var/log/xray/access.log, last 15 minutes. Xray writes one accepted ... [email >> outbound] line per connection; distinct emails in the window are online. This counts users with traffic in the last 15 minutes — Xray keeps no persistent session table. |
| WireGuard | wg show wg0 latest-handshakes — a peer is online when its last handshake was within the last 180 seconds. Usernames come from the # username comments in wg0.conf. |
| OpenVPN | /etc/openvpn/server/openvpn-status.log — CLIENT_LIST rows. |
| ZiVPN / UDP Custom / BadVPN / SlowDNS | No per-user session table exists, so these report nothing (never a fake number). |
| Account | Source |
|---|---|
| V2Ray | The Xray statistics API. The config enables stats + per-user uplink/downlink and an api inbound (dokodemo-door, 127.0.0.1:10085). tools/usage-collect.sh reads user>>><email>>>>traffic>>>uplink and >>>downlink every 5 minutes. |
| SSH | iptables owner-match accounting. Chain VPNACCT (jumped to from OUTPUT) has one rule per user (-m owner --uid-owner <uid> -j RETURN). The rule's byte counter is outbound bytes sent by that user's processes. Owner match cannot count inbound traffic — this is documented, not hidden. |
Counters reset when a service restarts or the server reboots, so the
collector stores the last-seen counter per user and adds only the delta
to a persistent total in /etc/vpn/usage/<user>.json. GB used =
used bytes / 1073741824. GB remaining = limit − used (0 when exceeded,
"Unlimited" when the limit is 0). The same total drives data-limit
enforcement.
- Expiry: exact.
useradd -esets the account expiry, andtools/expire-accounts.sh(daily 03:00) removes expired accounts. - Data: measured by the real counters above, checked every 10
minutes by
tools/check-limits.sh. At the limit the account is locked (SSH:usermod -L+ sessions killed; Xray: client removed from the config, record kept). Raising the limit unlocks it on the next run. - Connections: SSH only. Checked at login by
/etc/profile.d/vpn-limit.sh(the login is refused over the limit) and by the 10-minute sweep, which ends the newest sessions over the limit. Xray has no persistent session table, so no connection limit is enforced for Xray users.
Free, no key required. Tried in order, 4-second timeout each, cached 7 days per IP:
| # | Provider | Request | Field used |
|---|---|---|---|
| 1 | ip-api.com | GET http://ip-api.com/json/{ip}?fields=status,isp |
isp (JSON, status must be success; free tier is HTTP only, 45 req/min) |
| 2 | ipwho.is | GET https://ipwho.is/{ip} |
connection.isp (JSON; free tier 10,000 req/month) |
| 3 | ipinfo.io | GET https://ipinfo.io/{ip}/json |
org (JSON; the AS<number> prefix is stripped; free tier 50,000 req/month) |
| 4 | freeipapi.com | GET https://freeipapi.com/api/json/{ip} |
asnOrganization (JSON; this API has no isp field) |
| 5 | ipapi.co | GET https://ipapi.co/{ip}/org/ |
plain-text organisation name |
If all five fail or are rate-limited, the menu shows (unknown).
Nothing was switched to another upstream and no release was changed. The old AutoscriptXRAY script's exact download URLs:
- Xray:
https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-64.zip - AutoscriptXRAY release
deps-v2(https://github.com/PacketBreaker/AutoscriptXRAY/releases/download/deps-v2/):dropbear-bin_2019.78-2build1_amd64.deb,dropbear_2019.78-2build1_all.deb,badvpn-udpgw,udp-custom-linux-amd64,udp-zivpn-linux-amd64 - DNSTT: built from the Bam Software git source only
(
https://www.bamsoftware.com/git/dnstt.git). The old repo has no DNSTT method at all, and thednsgt/dnsttGitHub repository has no releases — a GitHub-release download of DNSTT always fails with 404. - Everything else: system packages (apt) or code written for this project.
The SSH WS services (sshws/ws-dropbear.py, sshws/ws-stunnel.py and
the Go variants in internal/go/) implement a minimal HTTP 101 Switching Protocols upgrade tunnel, the kind injector-style clients
such as HTTP Injector or KPN Tunnel expect. They do not implement
RFC 6455 WebSocket framing, so standards-compliant WebSocket clients
are not interoperable with them. The Xray protocols are served by
Xray-core behind NGINX with proper upgrade handling and are unaffected
by this limitation.
Check listening ports:
ss -tulpnCheck NGINX:
nginx -t
systemctl status nginxCheck XRAY:
xray -test -config /etc/xray/config.json
systemctl status xrayCheck SSH WS:
systemctl status dropbear-ws
systemctl status stunnel-wsCheck the UDP tunnels:
systemctl status udp-custom
systemctl status udpgwCheck usage collection:
bash /etc/autoscriptvpn/tools/usage-collect.sh
cat /etc/vpn/usage/*.json| OS | Intended status |
|---|---|
| Debian 12 | Recommended |
| Debian 11 | Intended |
| Ubuntu 24.04 | Intended |
| Ubuntu 22.04 | Intended |
| Ubuntu 20.04 | Limited |
| Debian 10 | Deprecated |
| OpenVZ | Unsupported |
| KVM | Recommended |
| VMware | Recommended |
- Recommended on a fresh VPS, minimum 1 GB RAM
- A domain is required for XRAY TLS
- Cloudflare supported
- A second (NS) domain is required for SlowDNS — see INSTALL.md
All screens share one palette defined in theme.sh (installed to
/etc/autoscriptvpn/theme.sh). Change the colours once and every menu
follows. Requires a 256-colour terminal.
Developed by Eng. Abdelrahman Rabie — Telegram: @PacketBreaker
This project stands on the shoulders of:
- XTLS / Xray-core
- BadVPN
- WireGuard
- acme.sh
- NGINX
- AutoscriptXRAY
Telegram: @PacketBreaker
Copyright (c) 2026 Eng. Abdelrahman Rabie. All rights reserved.