---
title: "Firewall: Control the Open Ports on Your VPS"
description: "**In short**The firewall controls which ports are open from the internet to your machine: unselected ports are closed, shrinking the attack surface. Open only what you need (such as 80 and 443 for the web). Be careful not to close…"
url: "https://www.hyyat.com/en/knowledgebase/vps-firewall-manage-open-ports/"
updated: "2026-11-19"
category: VPS control panels / Hyyat VPS Control Panel
---

# Firewall: Control the Open Ports on Your VPS

**In short**The firewall controls which ports are open from the internet to your machine: unselected ports are closed, shrinking the attack surface. Open only what you need (such as 80 and 443 for the web). Be careful not to close the SSH port (22) on yourself — and if it happens, the console screen is always available. Outbound mail port 25 is blocked to prevent spam.

Every open port on your server is a possible way in. The **firewall** decides which doors are open and which are closed: you keep open only what you need and close the rest, so the attack surface shrinks and your machine is safer.

![The Firewall tab enabled with common port options](https://www.hyyat.com/wp-content/uploads/2026/11/vpspanel-fw-ui-en.webp)

## How does the firewall work?

- Turn on the firewall from the **Enable firewall** box.
- Choose the ports you want to open from the list.
- Unselected ports are closed externally and automatically.

The [Console](https://www.hyyat.com/en/knowledgebase/vps-console-novnc-access/) (noVNC) screen stays available no matter what you close, because it does not go through the network.

## Common ports

| Port | Use |
| --- | --- |
| HTTP (80) | Plain web sites |
| HTTPS (443) | Encrypted web sites — open it for any site |
| SSH (22) | Remote login to the machine — do not close carelessly |
| DNS (53) | Domain name service if you run it |
| MySQL (3306) | The database — open only if you need external access |

  **Two important warnings:** (1) Do not close the **SSH (22)** port unless you log in another way, or you may lose remote access — the console remains your emergency route. (2) Outbound **mail port (25) is blocked** to prevent spam; if you need to send mail, open a support ticket and we reply within 24 hours at most.

## Summary

- The firewall opens the ports you need and closes the rest.
- Open 80 and 443 for the web, and avoid closing SSH on yourself.
- Outbound mail port 25 is blocked — open a ticket if you need it.

For the safest login with the firewall, use [SSH keys](https://www.hyyat.com/en/knowledgebase/vps-ssh-keys-secure-login/).

## Frequently asked questions

   What does the firewall do?

It controls which ports are open from the internet to your machine. It keeps what you choose open and closes the rest, reducing the number of doors that could be exploited and increasing server security.

   Does closing the SSH port cut my access?

It may cut your remote SSH access. But the console (noVNC) screen stays available because it is outside the network, so you log in there and reopen the port.

   Why is mail port 25 blocked?

Outbound port 25 is blocked to prevent spam from servers. If you need to send legitimate mail, open a support ticket and we will help with the right solution.

   Which ports do I open for a normal site?

Open 80 (HTTP) and 443 (HTTPS) for the web. Keep 22 (SSH) for login, and open the rest only when actually needed.

   Does the firewall slow my site?

No, its performance impact is practically unnoticeable. Its security benefit far outweighs any cost.

   **Related guides**

- [Console (noVNC): Reach Your VPS Screen from the Browser](https://www.hyyat.com/en/knowledgebase/vps-console-novnc-access/)
- [SSH Keys: Secure Passwordless Login to Your VPS](https://www.hyyat.com/en/knowledgebase/vps-ssh-keys-secure-login/)
- [Security: Quick VPS Check and Deep Virus Scan](https://www.hyyat.com/en/knowledgebase/vps-security-quick-and-deep-virus-scan/)

[All VPS panel guides →](https://www.hyyat.com/en/kb/hyyat-vps-control-panel/)

  **Need this service from Hyyat Host?**Our team handles it for you, with support replying to tickets within 24 hours at most.[Server Management](https://www.hyyat.com/en/server-management/)[dedicated server](https://www.hyyat.com/en/dedicated-server/)
