If a service on your VPS works locally but is not reachable from the internet, the most common reason is a firewall rule. This article shows how to open ports on GARMTECH KVM VPS (Linux or Windows).
Common examples:
80 (HTTP), 443 (HTTPS)223389Check status:
sudo ufw status verbose
Allow a port (examples):
sudo ufw allow 22/tcp
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
Allow a custom port (example: 25565):
sudo ufw allow 25565/tcp
Enable UFW if it is disabled:
sudo ufw enable
Check current rules:
sudo firewall-cmd --list-all
Open ports permanently (examples):
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --permanent --add-service=ssh
Or open a custom port:
sudo firewall-cmd --permanent --add-port=25565/tcp
Reload to apply:
sudo firewall-cmd --reload
Option A (GUI):
80 or 443).Option B (Command line):
netsh advfirewall firewall add rule name="Allow HTTP" dir=in action=allow protocol=TCP localport=80
netsh advfirewall firewall add rule name="Allow HTTPS" dir=in action=allow protocol=TCP localport=443
127.0.0.1).