Skip to content
Multigaming
Multigaming 100% localFreeOpen access

Firewall rules generator

Turn a port list into ufw, iptables, nftables or Windows netsh rules for your game server.

Last updated: 10/9/2026

100% local processing — saved in your browser.

Documentation
Firewall

One per line: 25565/tcp, 2456-2458/udp, 30120 (TCP+UDP). Text after the port = comment.

Options

Address or CIDR; applies to all game rules.

firewall-ufw.sh
Keep an SSH session open while applying.
# Generated by games-tools.game-rank.com
# Run as a sudo-capable user. Keep your SSH session open until you have tested a new one.
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 22/tcp comment 'SSH'
sudo ufw allow 30120/tcp comment 'Game 30120/tcp'
sudo ufw allow 30120/udp comment 'Game 30120/udp'
sudo ufw enable
sudo ufw status numbered
Server installation guideNo server yet? Install it locally or on a VPS / dedicated server, ports and firewall included.

How to use Firewall rules generator?

A well-configured firewall opens only the game and administration ports. This tool writes the commands for you for ufw, iptables, nftables or Windows, from a simple port list.

  1. Choose the firewall: ufw (Ubuntu/Debian), iptables, nftables or Windows netsh.

  2. Enter your ports (one per line, with protocol) or add a game's ports.

  3. Check the SSH port and, if needed, restrict to a source IP (for example for RCON).

  4. Copy or download the script, read it, then run it while keeping an SSH session open.

Read the full documentation →

Frequently asked questions

Multigaming
MultigamingOpen access
Default ports for FiveM, Minecraft, Rust, DayZ, ARK, Valheim, Palworld, CS2, Arma… and a check of your list of opened ports.
PortsNetworkOpen
Documentation
Multigaming
MultigamingOpen access
Admin commands per game (Minecraft, Rust, ARK, Palworld, DayZ, CS2…) ready to copy, filled with your parameters. No network.
RCONAdministrationOpen
Documentation
Multigaming
MultigamingOpen access
Generate cron, a systemd timer or a Windows task (schtasks) with RCON player warnings before each restart.
RestartSchedulingOpen
Documentation
Multigaming
MultigamingOpen access
Estimate a game server's CPU, RAM, disk and bandwidth from slots, with visible formulas and editable assumptions.
SizingCostOpen
Documentation
Multigaming
MultigamingSign-in required
Compare two config files (INI, CFG, JSON): line-by-line and key-by-key differences, locally in your browser.
DiffConfigurationOpen
Documentation
Multigaming
MultigamingSign-in required
Generate a bash or PowerShell backup script (tar, 7z, rsync/robocopy) with retention, service stop and a cron line.
BackupScriptsOpen
Documentation