Covariant GameCovariant Game

Docs

Setup instructions for connecting your Minecraft servers to Covariant Game.

Firewall setup

DNS points players at us, but your backend can still be reached directly if someone learns its IP. A firewall closes that gap: it blocks all incoming traffic except from us, so attackers cannot bypass your protection.

There are two ways to set it up: UFW or iptables. Pick whichever you are comfortable with.

Option 1: UFW

Install UFW:

sudo apt update
sudo apt install ufw

Allow SSH so you do not lock yourself out:

sudo ufw allow ssh

Allow our IPs. Get the current list from game.covariantedge.com/ips.txt, then run this once for each IP:

sudo ufw allow from <ip>

Block all other incoming traffic:

sudo ufw default deny incoming

Enable UFW:

sudo ufw enable

Option 2: iptables

Allow SSH so you do not lock yourself out:

sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT

Allow our IPs. Get the current list from game.covariantedge.com/ips.txt, then run this once for each IP:

sudo iptables -A INPUT -s <ip> -j ACCEPT

Block all other incoming traffic:

sudo iptables -P INPUT DROP

Save the rules so they survive a reboot:

sudo iptables-save > /etc/iptables/rules.v4

Keeping the rules up to date

Our IP list can change over time, for example when we add capacity in a region. If an IP is missing from your firewall, players cannot connect; if a removed IP stays allowed, it is only a minor risk since it was one of ours.

You may want to write your own script that downloads the list from game.covariantedge.com/ips.txt, applies the rules above for each IP, and runs on a schedule such as a daily cron job. Make sure your script keeps SSH allowed so it can never lock you out, and check the list before applying it so a broken download cannot wipe your rules.

Verify

After setup, check that the rules are active with sudo ufw status (UFW) or sudo iptables -L (iptables). Confirm that only our IPs are allowed, and that your own IP can still reach SSH.