DocsHostingPlayers and moderation
VPN blocking
Dedicated servers refuse players who connect through a VPN, proxy or hosting provider, the usual way around a ban. It's on by default. Games hosted from the game don't block VPNs. A refused player reads:
This server doesn't allow players on a VPN, proxy or hosting provider. Turn off your VPN and join again.
Never refused:
- admins, for every server or for that server;
- players on this machine or on your own network, including private, link-local and carrier-grade NAT addresses, such as Tailscale's;
- player IDs and addresses you allow.
To turn it off, set block_vpn = false under [defaults] for every server or in one [[server]] block, or RECLAIMER_DEDICATED_BLOCK_VPN=false in Docker's .env. The server restarts once it has no players.
The server's card in the Server Browser says Blocks VPNs when it does, and players can pick servers that block VPNs or allow them under Filters.
Letting players through
Some players connect from a hosting provider for good reasons, such as a cloud gaming PC. Allow them, check an address, or fetch the lists now:
project-reclaimer dedicated vpn # which servers block, each list's size and age, who is allowed
project-reclaimer dedicated vpn check 203.0.113.4 # refused? on which list? which network?
project-reclaimer dedicated vpn allow 0123…cdef Cloud PC
project-reclaimer dedicated vpn allow 198.51.100.0/24
project-reclaimer dedicated vpn revoke 0123…cdef
project-reclaimer dedicated vpn update
- A refused player isn't connected, so take their player ID from the server log (
[server] refused 0123…cdef from 203.0.113.4: VPN block, on …) or the remote console'srefusedevent. The console also hasvpn,vpnallowandvpnrevoke. - Allowances are kept in the shared ban list, so they apply to every server at once, without a restart:
{
"vpn_allowed": [{ "target": "0123…cdef", "note": "Cloud PC", "allowed_by": "host" }]
}
target is a player ID, an address or a range. Allow players by ID where you can: an address allowance lets in everyone who uses that address.
The lists
Each joining player's address is matched against public lists of VPN and datacenter networks: by default, X4BNet's VPN and datacenter lists, for IPv4 and IPv6, their lists of hosting networks, and a few hosting networks of the project's own. Those networks are looked up in iptoasn.com's table, to find the ranges each one announces. dedicated fetches the lists before the servers start when it has none, then every 12 hours, keeps a copy of each in data/vpn/ and writes the combined list data/vpn/ranges.txt. Addresses are matched on your machine: no player's address is sent anywhere. If a list can't be fetched, its last copy is used; a server that has never had one admits every address and says so in its log.
Your own lists replace the defaults, or add to them with "default":
[vpn]
lists = ["default", "https://lists.example/vpn.txt", "my-ranges.txt"]
A list has one address or CIDR range per line; # and ; start comments. A line may also name a hosting network by its number, such as AS64500, and every range it announces is refused. A download that isn't such a list, such as an error page, is ignored, keeping the list's last copy. RECLAIMER_DEDICATED_VPN_LISTS adds lists, separated by commas.
Refuse a network or range at once
Servers that block VPNs can refuse whole hosting networks, by their number (ASN), as well as address ranges. Write them into vpn-local.txt beside dedicated.toml, one per line. The servers apply it within a minute, without a restart:
AS64500 # every range this network announces
203.0.113.0/24
2001:db8:100::/48
To name networks in the configuration instead, use asns under [vpn], or RECLAIMER_DEDICATED_VPN_ASNS in Docker's .env (AS64500, 64501):
[vpn]
lists = ["default", "https://lists.example/vpn.txt"]
asns = [64500, "AS64501"]
fail_closed = false # true: no list yet refuses everyone but admins and allowed players
- Which network is it?
dedicated vpn check <IP>names the list and the network announcing an address. Matching happens on your machine: nothing is sent about players. - How fresh are the lists?
dedicated vpn, and the remote console'svpn, show each list's size and age. A list whose copy is over a week old is reported as stale in the log, indedicated checkand indedicated vpn. - No list yet: a server that has never had a list admits every address and logs
NOT WORKINGwhen it starts and every hour. Withfail_closed = trueunder[vpn], orRECLAIMER_DEDICATED_VPN_FAIL_CLOSED=true, it refuses everyone but admins and allowed players instead, until the first list arrives; that turns everyone else away while the lists can't be fetched. - Why was someone refused? Each server's log names the list or network behind a refusal, at most once a minute per address, and sums up its refusals every hour:
[server] refused 0123…cdef from 203.0.113.4: VPN block, on AS64500 EXAMPLE-HOSTING · on [vpn] asns
[server] VPN block: refused 5 joins in the last hour: …
