Why block ports 22 and 3389 with a firewall

7 December, 2023

Ports 22 (SSH, Linux) and 3389 (Remote Desktop, Windows) play a crucial role in server security. Let's take a closer look at why restricting access to these ports through a firewall is an extremely important step in ensuring server security.

  • Security Basics: Open ports 22 and 3389 attract cybercriminals. Closing these ports immediately reduces the possibility of unauthorized access, creating a reliable barrier.
  • Firewall Management: By default, ports 22 and 3389 are closed when renting a server. The firewall management panel provides a convenient interface for precise access configuration, allowing connections only from trusted IP addresses.
  • Protection Against Brute Force Attacks: Open ports are susceptible to brute force attacks, where attackers try to guess the password. Closing the ports significantly reduces the risk of successful attacks.
  • Windows Session Limitation: Port 3389 for Windows limits the number of simultaneous Remote Desktop sessions. This reduces the risk of denial of service and maintains server stability.
  • Resource Savings: Each active session on an open port requires physical and software resources. Closing the ports ensures efficient use of server resources.
  • Flexible Access Control: Closing ports allows for flexible access management. Adding specific IP addresses to the firewall provides precise and trusted security control.
  • Security Monitoring: With closed ports, the system remains resilient to concerns such as constant scanning and attacks. Security monitoring becomes more effective.
  • Staff Training: Closing ports requires staff to take a more careful approach when managing the server, promoting learning and increasing awareness.

As a result, blocking ports 22 and 3389 is not only a security standard but also a key element in the strategy to protect the server from external threats.