For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/en/llms-full.txt, and this page is available as Markdown at https://docs.ovhcloud.com/en/guides/bare-metal-cloud/dedicated-servers/activate-port-firewall-soft-win.md.
Skip to content

Configure the Windows Firewall on a Dedicated Server

View as Markdown

Configure the built-in Windows firewall on your dedicated server to control inbound and outbound network traffic

Objective

To best protect your system, your Windows Server dedicated server has its own built-in firewall. By configuring it, you can increase security levels, which guarantees the availability and integrity of all elements hosted on the server, such as roles, services and shared folders.

This guide will show you how to apply firewall rules on Windows.

Warning

OVHcloud is providing you with services for which you are responsible, with regard to their configuration and management. You are therefore responsible for ensuring they function correctly.

This guide is designed to assist you in common tasks as much as possible. Nevertheless, we recommend that you contact a specialist service provider and/or discuss the issue with our community if you face difficulties or doubts concerning the administration, usage or security of a server.

Requirements

  • A dedicated server with Windows installed in your OVHcloud account
  • Administrative access via remote desktop to your server

Instructions

Step 1: Access Windows Firewall

To access Windows Firewall, you can follow this order:

  • Click Start.
  • Click Search.
  • Search for "Windows Defender Firewall" in the search bar.
  • Click Windows Defender Firewall.

Then click Advanced settings.

Windows Defender Firewall window with the Advanced settings link

Step 2: Enable an inbound rule

In the window that appears, you will see settings such as:

  • Inbound and Outbound Rules
  • Connection Security Rules
  • Server Firewall Monitoring Options

Selecting Inbound Rules displays all preconfigured Windows Server rules associated with network connections and incoming packets. Some of these rules are not enabled by default. If you want to enable them, right-click the rule and select the Enable rule option.

Inbound rules list with enable rule option

Step 3: Create a new rule

To create a new rule, go to the Action menu and select New Rule, or click New Rule in the right-hand pane.

Action menu of the Windows Defender Firewall console with New Rule highlighted

Step 4: Define the type of rule to activate

The Rule Wizard provides options to define the type of rule to create. Select the Port option.

Rule Type page of the New Inbound Rule Wizard with the Port option selected

Step 5: Define the port type to activate

In the next step, define the port type to enable:

Protocol and Ports page with TCP and a specific local port selected
Info
  • TCP (Transmission Control Protocol)

    It is a connection-orientated protocol, i.e. with TCP, it will be possible to create connections between hosts in order to send data streams. This protocol ensures that data is delivered to the recipient in the same order and in the same error-free manner.

  • UDP (User Datagram Protocol)

    This is a non-connection-orientated protocol. Its development is based on the exchange of datagrams and facilitates the sending of datagrams across the network. No connection to the destination needs to be established beforehand.

You can also select the All local ports option to enable all TCP or UDP ports on a non-secure server. You can also select the Specific local ports option to determine which port should be allowed.

Step 6: Allow or block the connection

To define the action this rule will trigger, the following options are available. Select the one that works for you.

  • Allow the connection. This option allows full communication through this port.
  • Allow the connection if it is secure. This option allows data to be transmitted only if the connection is authenticated via IPsec.
  • Block the connection. This option prevents data from being routed through this port.

Select the Allow the connection option and click Next.

Action page of the wizard with the Allow the connection option selected

Step 7: Define the profile and name of the rule

Finally, you must choose which profiles the rule should apply to, from public, domain or private profiles. You can enable them all if you want.

Profile page of the wizard with the Domain, Private and Public profiles checked

Give the new rule a name and description (optional) to make it easier to use:

Name page of the wizard with the name of the rule filled in

Click the Finish button to complete the process and create the new rule.

Inbound Rules list showing the new rule, enabled

You can then make changes to the settings of the new rule you have created.

Go further

Enabling and configuring the Edge Network Firewall

Monitor DDoS attacks with the Anti-DDoS dashboard

Join our community of users.

Was this page helpful?