VPSChecker is a terminal utility for assessing whether a VPS IP is suitable for use as a VPN exit node. It checks IP reputation, reachability from a selected country, and the local and external availability of VLESS TCP and Hysteria2 UDP ports. The default target country is Russia.
Each successful run produces text and JSON reports with separate check results, an overall VPN suitability assessment, and advice on whether requesting an IP replacement from the hosting provider is justified. The checks are designed to leave minimal changes on the VPS.
- Debian or Ubuntu;
- Bash 5.1 or newer;
curlto download the installer;- IPv4 connectivity.
Run these commands from the directory where you want to keep the reports. Download the installer, install the latest checksum-verified release, and remove the installer after a successful installation:
# Download the installer.
curl -fsSLo install-vpschecker.sh \
https://raw.githubusercontent.com/BinaryRift/VPSChecker/main/install.sh &&
# Install the latest release.
bash install-vpschecker.sh &&
# Remove the installer.
rm -- install-vpschecker.shRun the check with automatic external IPv4 detection, Russia as the target country, and TCP/443 and UDP/443 as the VLESS and Hysteria2 ports:
# Run the check with default settings.
./vpschecker/vps-check.shBy default, VPSChecker reuses listeners already bound to these ports or starts
temporary TCP and UDP listeners for the external checks. Starting a listener on
the default port 443 may require sudo authorization.
If VPSChecker prints a cleanup command, run it later from the same directory. It shows the exact packages and asks for confirmation before removing them:
# Remove only APT packages added by VPSChecker.
./vpschecker/vps-check.sh cleanupAfter cleanup, or when no cleanup was required, remove the utility. Reports under
./reports are outside its directory and remain available:
# Remove VPSChecker while keeping its reports.
rm -r -- ./vpscheckerThe target country uses a two-letter ISO country code. The IP, country, default ports, and report directory can be specified explicitly:
./vpschecker/vps-check.sh \
--ip 203.0.113.10 \
--country de \
--vless-port 2053 \
--hysteria2-port 8443 \
--report-dir reports/deWhen --ip is omitted, VPSChecker detects the external IPv4 through HTTPS. An
explicit value skips that request.
Immediately before the regional checks, VPSChecker reuses existing listeners on
the selected ports or starts temporary ones when the ports are free. It verifies
temporary listeners locally, stops only the processes it started, and records
the source as EXISTING, TEMPORARY, or NONE in the reports. This does not
install or run VLESS or Hysteria2 services, and no protocol handshake is
performed.
For a free port below 1024, including the default port 443, VPSChecker requests
root privileges through sudo. To inspect existing listeners without starting
temporary ones, use:
./vpschecker/vps-check.sh --no-temporary-listenersVPSChecker never changes the OS firewall or hosting-provider inbound rules. If a verified local TCP listener is unreachable from all external nodes, the report marks a possible firewall issue. Check both the OS firewall and the provider's firewall, security group, or inbound rules, allow the selected TCP and UDP ports, and run the check again.
For example, if UFW is already active, first inspect its rules. Add rules only when the selected ports are not already allowed:
sudo ufw status numbered
sudo ufw allow 443/tcp comment 'VPSChecker temporary TCP check'
sudo ufw allow 443/udp comment 'VPSChecker temporary UDP check'
./vpschecker/vps-check.shAfter the check, remove only rules that the commands above actually added. Do not remove rules that existed before the check:
sudo ufw delete allow 443/tcp
sudo ufw delete allow 443/udpIf UFW is inactive or unavailable, inspect the existing nftables configuration
with sudo nft list ruleset and follow the firewall policy already used by the
server. Provider-side rules must be opened and closed separately in the hosting
control panel. Keep ports exposed only for the duration of the check.
Also print the full text report while keeping both report files:
./vpschecker/vps-check.sh --print-reportStatus colors are used only for interactive terminal output. Saved reports and
--print-report remain plain text. To disable colors elsewhere, set NO_COLOR
to any value:
NO_COLOR=1 ./vpschecker/vps-check.shAutomatically remove packages added by VPSChecker after the checks:
./vpschecker/vps-check.sh --cleanupList the country codes currently available through Check-Host:
./vpschecker/vps-check.sh list-locationsThe list includes the current node count and cities for each country.
Show command help or the installed version:
./vpschecker/vps-check.sh --help
./vpschecker/vps-check.sh --versionEach successful run creates two private (0600) files under ./reports, relative
to the current directory:
reports/vpschecker-report-<UTC timestamp>-<PID>.json;reports/vpschecker-report-<UTC timestamp>-<PID>.txt.
The directory is created only when the reports are ready to be generated. Set a
different relative or absolute path with --report-dir; an existing directory's
permissions are not changed:
./vpschecker/vps-check.sh --report-dir /var/lib/vpschecker/reportsThe JSON report has stable top-level sections for reputation, VPN suitability,
replacement advice, regional reachability, ports, protocol checks, and cleanup.
It also embeds the unchanged raw IPQuality result. Replacement advice is reported
as REPLACEMENT_JUSTIFIED, REPLACEMENT_MAY_HELP, REPLACEMENT_UNLIKELY, or
INCONCLUSIVE, with supporting reasons and facts. Final reports are preserved;
only temporary runtime files are removed on exit. The cleanup section records
whether added packages were deferred, removed, not required, skipped as unsafe,
or could not be removed.
Runtime files are created under ${TMPDIR} or /tmp when TMPDIR is unset.
IPQuality source and runtime copies, raw JSON, diagnostics, the VPN trust result,
and Check-Host responses are stored in a vpschecker.XXXXXX directory. APT
change tracking uses a separate vpschecker-deps.XXXXXX directory. Both are
removed on normal exit and handled termination signals.
.vpschecker-cleanup.plan is not a temporary runtime file. It remains until the
recorded packages are removed successfully.
VERSION is the single source of the tool version. VPSChecker uses semantic
versions, exposes the value through --version, and includes it in text and JSON
reports. Releases should use a matching v<version> Git tag, for example
v0.1.0, and may then be published as a GitHub Release.
Review the latest upstream change and update the pinned version:
./scripts/update-ipquality.shA full commit SHA can be reviewed instead:
./scripts/update-ipquality.sh COMMIT_SHAThe script verifies the current source, downloads the candidate, shows its checksum and diff, and asks for confirmation before changing the pin.
VPSChecker automatically uses:
- xykt/IPQuality — downloaded at a pinned commit and run to collect IP reputation and geolocation signals. IPQuality contacts its own upstream data providers; privacy mode prevents publishing its online report link, but does not make the check offline.
- Check-Host API — provides the current node list and performs regional ping, TCP, and UDP checks.
- ipify — detects the external IPv4 through
https://api.ipify.orgonly when--ipis omitted.
For WARNING and POOR results, reports include links for manual verification
with AbuseIPDB,
Scamalytics,
IPQualityScore,
VirusTotal, and
Cisco Talos Reputation Center.
VPSChecker does not query these pages merely to generate the links. Some of them
may also be upstream data sources used internally by IPQuality.
Reputation, regional reachability, and service state are evaluated and reported
separately. IP reputation data is collected with a pinned, checksum-verified
xykt/IPQuality version in IPv4 JSON/privacy mode. Its dependency installer is
disabled, and successful raw JSON is kept unchanged. VPSChecker derives an OK,
WARNING, POOR, or UNKNOWN VPN trust assessment with concrete reasons.
Hosting classification and mail reputation do not affect this assessment.
Regional checks use the current Check-Host node list. VPSChecker selects up to
three nodes in the target country and three control nodes in other countries,
then runs an auxiliary ping, a VLESS TCP connection check, and a Hysteria2 UDP
check. A UDP result is reported as OPEN_OR_FILTERED, not as proof that
Hysteria2 works. By default, these port checks use existing or temporary local
listeners as described above.
The read-only preflight determines the operating system, current privileges,
external IPv4, required commands and APT packages, and local TCP/UDP listeners.
It does not install packages or invoke sudo.
If required APT packages are missing, VPSChecker lists them and asks for
confirmation before running apt-get update and installing only those packages
without recommendations. It never runs a system upgrade or autoremove.
By default, packages added by VPSChecker are kept and recorded in
.vpschecker-cleanup.plan in the current directory. The terminal prints a command
that can remove the accumulated packages later. Pass --cleanup to remove them
automatically at exit. Existing packages and any versions updated during
installation are always kept.
Both cleanup modes first run an APT simulation and continue only when no package
outside the recorded set would be affected. They never use autoremove.
VPSChecker is licensed under the MIT License. Third-party software keeps its own license; see THIRD_PARTY_NOTICES.md.