Budget-friendly, full-performance, fully equipped servers in any desired location.
ExploreBudget-friendly, full-performance, fully equipped servers in any desired location.
ExploreFirewall configuration does not mean randomly blocking every connection to a server; it means identifying the traffic that is required and restricting the rest. On a web server, first record the current rules and access method, then add the administrative connection, HTTP, and HTTPS to the allowlist in a controlled manner. After making the change, retry the same connection and verify the result using new, timestamped log entries.
These steps are suitable for a server with administrative privileges where you can manage the operating system firewall or the provider’s virtual-server network-security interface. With a shared hosting account, you may not have access to the operating system firewall; in that case, you can use only the IP-blocking, application-security, or provider-firewall options offered in the control panel. Because a rule in the panel and a rule on the server may operate at different layers, evaluate them separately.
First, note how you connect to the server, the SSH port, your administrative IP address, and the web ports actually used by the application. SSH is a protocol that provides a remote administration connection; although port 22 is used in many installations, a custom port may have been assigned. If the application serves HTTPS only, opening port 80 may not be necessary. Export the current rules or take a screenshot, and, if possible, verify that the provider’s console access is working.
The first decision is which services the server will accept from the internet. If it only publishes a website, ports 80 and 443 are relevant; if SSH is also required for administration, the SSH port must be considered as well. Instead of exposing a database port to the internet, it may be more appropriate to keep the application and database on the same server or in a private network; if remote administration is required, restrict access to specific source IP addresses.
The second decision is to distinguish connections whose sources can be restricted from connections that must be accessible to everyone. HTTPS visitors may generally come from the wider internet; SSH, however, can be accepted only from a corporate network, VPN, or known administrator IP addresses. If the administrator’s IP changes frequently, consider the provider’s VPN or secure-access solution instead of opening a broad range. If you cannot narrow the scope, prepare alternative console access before leaving the connection open.
In many products, firewall rules are evaluated from top to bottom or according to priority. A more general blocking rule can make an allow rule that follows it ineffective. Therefore, define administrative access first and the required web ports afterward; change the default behavior only after that. A “default deny” approach may block new connections depending on the provider, but how existing sessions are handled depends on the product and its connection-tracking feature.
Consider a concrete possibility: suppose the HTTPS connection works, but the administrator sees a timeout when making a new SSH connection. If the log shows that the connection was directed to the wrong port or that the source IP does not match the allow rule, the targeted correction is to add only the correct SSH port and the administrator’s current IP to the allow rule. By contrast, if the log shows that the connection was allowed but authentication failed, broadening the firewall rule will not solve the problem; SSH credentials and the server configuration must be examined separately. This example is hypothetical; the real interpretation should be based on evidence from the same time.
If both SSH and web access are lost after the change, do not continue adding new rules. If the provider offers a web console or a physical/private administration channel, use the previous rule set you recorded and roll back only the last change. If no such access is available, review the provider’s firewall-recovery or rule-reset procedure, the existing backup, and the change time before sharing them; do not send passwords, keys, or personal log contents to a public location.
After rolling back a rule, repeat the same failed operation and this time examine the records from the new time window. If access returns, identify which rule was effective in the previous step and change only one factor again. Store an export of the rules before saving the permanent configuration; in the next edit, changing only the necessary port or source is safer than making a broad correction that is difficult to reverse.
To clarify your server’s layers and administration options, review the relevant hosting information on İyibirNet; also verify separately the responsibilities of the provider firewall and the operating system firewall.
Copyright © 2026 All Rights Reserved
