Change a VPS firewall without locking yourself out

  • 0

Check that you can reach the VPS console first. A bad rule can block your current SSH session or new ones.

  1. Keep your current SSH session open. Allow the actual management port from your trusted IP or VPN. Check the OS firewall and any provider-level network rules.
  2. Test a new connection before closing the old session. Open only the ports your service needs, and check both IPv4 and IPv6 if enabled.

Was this answer helpful?

Back to the knowledgebase