Score:0

Blocking VPN connections to my server

kz flag

I have a server in one game (it's called Mindustry). On average, 60 people constantly play on the server, about 10,000 unique users enter per day. Some people (they are using VPNs) bypass all the bans and interfere with regular players. I need an easy and free way to block all VPN connections to my server.

Some info:

  • the server is running on a dedicated host with Ubuntu 20.04
  • i have a root access on the host
  • this game (Mindustry) supports loading java mods & plugins, they can track the connection of a player and get his ip
  • the game code is here: https://github.com/anuken/mindustry

I tried using public free anti-vpn APIs, but i need at least 10000 queries per day, however no API gives you that much. I also tried to set up the firewall on my host, but idk where can i find all VPN IPs and how do i block them all.

vidarlo avatar
ar flag
https://vpnapi.io/pricing - 19$ for 10k queries. $29 for 50k. In addition you should probably implement a caching strategy.
Score:0
cn flag

Good, Fast, Cheap, pick two.

I have restricted access in the past by introducing additional layers such as adding a VPN or a portal that would effectively whitelist the user/ip.

One thought that immediately comes to mind is generating a whitelist based on a sister application. For example, if you have a discord server, you can get user IPs to create a whitelist that could be automatically updated. You could also create a basic web site and distribute links (Sms, Email, Discord, Etc) containing tokens to do the same thing.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.