Budget-friendly, full-performance, fully equipped servers in any desired location.
ExploreBudget-friendly, full-performance, fully equipped servers in any desired location.
ExploreFirewall configuration determines which connections are accepted for network traffic entering and leaving a server. As a safe starting point, record the current access method and open listening ports, allow the port used by your management connection, and then open only the services that are genuinely in use. Do not apply rules if you do not yet have console access or a recovery plan in place before making the change.
This process applies to a Linux VDS, physical server, or cloud server where you have administrative privileges on the operating system. With a shared hosting account, you cannot access the operating system firewall; in that case, use IP blocking, an application firewall, or network rules provided through the hosting panel or provider. If a network security group in the panel works together with the firewall inside the server, traffic must pass through both layers.
First, write down which channel you use to connect to the server: the SSH port, a web console, the provider console, or another management tool. If you are working through a remote SSH session, verify the provider’s emergency console access in advance. Keep a screenshot or exportable copy of the current rules; change only one factor at a time during the process. This makes it possible to identify which rule had an effect if the connection is interrupted.
The fact that a port is open in the firewall does not mean that a service is running on that port. First compare the server’s local listening list with the application’s actual configuration. If you have administrative privileges, the read-only ss -tulpen command can help display TCP and UDP listeners. Because the port number, address, and service name in the output may vary by version, do not treat this alone as proof that internet access is required.
For example, on a server used only to publish a website, HTTP and HTTPS traffic may be required from outside, while the database port may listen only on the local interface if the application runs on the same server. If a management port must be reachable from an external network, restrict it to the administrator’s fixed IP address instead of the entire internet whenever possible. Follow this decision process: if the service is not used externally, do not open the port; if it will be used externally, first check whether a source IP restriction can be applied; if it cannot be restricted, evaluate strong authentication and the provider’s additional network controls.
Suppose an external HTTPS request fails, but the local listening list shows the relevant TCP port for the web service and the firewall log contains an incoming-connection rejection at the same minute. These findings call for first examining a narrow permission rule for the relevant source range and port; opening the database port or allowing all incoming traffic is not the correct fix. After changing the rule, open the same HTTPS address again and verify in a new time-stamped record that the rejection has disappeared.
If the rules appear correct but there is still no connection, separate the three layers: the firewall on the server, the provider’s network security group, and the application’s own listening setting. If the rejection appears only in the firewall record, correct the firewall rule; if there is a block in the provider panel, a change inside the server cannot bypass it. If the application is not listening at all, check the application configuration and service status instead of weakening the firewall.
If you lose remote access, do not add new random permissions. Use the provider console to undo the latest firewall change or carefully load the previous rule set you saved; then try again by adding a narrow rule only for the management port. Keeping changes small and reversible reduces the risk of permanently closing management access while protecting the server. You can also review the relevant service information on İyibirNet when considering the server and network security options together.
As the next step, compare the current listening ports, the source of SSH access, and the provider-side network rules in a single list; do not add permission for any port that has no corresponding entry in that list.
Copyright © 2026 All Rights Reserved
