1. Check your SSH or RDP port and open Console
In the client area, select your VPS on Dashboard and open Console. Keep both Console and your existing SSH or RDP session open while editing firewall rules.
Check which TCP port your SSH or RDP service is actually listening on. Use Administrator PowerShell for the Windows check:
SSH normally uses TCP 22 and RDP uses TCP 3389, but always allow your configured port. Use whichever firewall manager is already active on Linux—never enable UFW and firewalld together. Also check Additional Tools → Firewall in the client area.
2. Allow SSH or RDP through your OS firewall
On Ubuntu or Debian with UFW, allow your SSH port (and any needed app ports) before running ufw enable. Replace 22 with your actual SSH port. For Windows, run the rule in Administrator PowerShell and replace 3389 and 198.51.100.25 with your RDP port and your own public IP address:
See the Ubuntu UFW guide for more syntax.
3. firewalld: allow access in the correct zone
On Linux servers running firewalld, check the active zone assigned to your interface first:
Add your SSH port to the runtime configuration first. Replace public with the active zone you found above and 22 with your actual SSH port:
Test a second SSH connection, then save the tested rule permanently in the same verified zone and port (firewall-cmd manual). The runtime rule is already active, so no reload is needed for this step:
4. Windows Firewall: allow RDP and test a second session
Use the Windows PowerShell rule in Step 2 (New-NetFirewallRule), replacing the example IP and port. On any OS, always open a second SSH or RDP session to confirm your rules work before closing the first session.
5. Use Console to repair blocked remote access
If you get locked out, sign in through Console on the service page and fix the blocking rule in your OS firewall or Additional Tools → Firewall. Do not flush all rules or disable the firewall completely, and remember that guest rules cannot override our network-level port 25 policy.
Frequently asked questions
How can I avoid losing SSH or RDP access?
Keep Console and your current session open, check and allow your actual SSH or RDP port before enabling the firewall, and test a second login before closing your original session.
Can I enable both UFW and firewalld?
No. Running both creates conflicting firewall rules. Use only the firewall manager already active on your Linux server.
