Linux firewall rules control which inbound connections can reach services on your VPS. Open only the ports your software needs, and make sure the service is running before testing from outside.

Ubuntu or Debian with UFW

Allow a TCP port:

sudo ufw allow 7777/tcp

Allow a UDP port:

sudo ufw allow 7777/udp

Check status:

sudo ufw status

AlmaLinux, Rocky Linux, or Oracle Linux with firewalld

sudo firewall-cmd --permanent --add-port=7777/tcp
sudo firewall-cmd --reload

For UDP, replace tcp with udp. If your VPS also has a panel firewall plan, allow the same ports there too.

  • 0 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

How to connect to a Linux VPS with SSH

SSH is the normal way to manage a Linux VPS. It gives you a terminal on the server so you can...

How to update packages on a Linux VPS

Keeping packages updated helps patch security issues and keeps server tools compatible. Run...

How to create a sudo user on a Linux VPS

A sudo user lets you manage a Linux VPS without logging in as root for every task. This is safer...

How to secure SSH on a Linux VPS

SSH is the main way to manage a Linux VPS, so it should be secured before the server is used for...

How to check disk usage on a Linux VPS

Disk usage issues can stop updates, backups, logs, databases, and game saves from writing...