If you’re running a Windows Virtual Private Server (VPS), you know how important it is to keep your server secure. One of the most effective ways to do this is by setting up a firewall to regulate incoming and outgoing traffic. However, sometimes you may need to allow a particular program or application to communicate through the firewall, which can be a bit tricky. In this article, we’ll guide you through the steps to allow a program within your Windows VPS Server Firewall.
Allow Incoming Connections Of Program From Windows VPS / Server Firewall.
1. To start off, log in to your Windows server then search an open Windows Firewall with Advanced Security.
![](https://howto.hyonix.com/wp-content/uploads/2023/01/windows-firewall-advanced-sec-648x1024.png)
2. Then navigate to Inbound Rules on the left-hand side.
![](https://howto.hyonix.com/wp-content/uploads/2023/01/windows-firewall-advanced-sec-inbound-rules-1.png)
3. Next, click New Rule on the right-hand side.
![](https://howto.hyonix.com/wp-content/uploads/2023/02/windows-firewall-adv-sec-new-rule-1024x502.png)
4. In the Rule Type section, select Program and click Next to move on.
![](https://howto.hyonix.com/wp-content/uploads/2023/05/new-inbound-rule-type-program.png)
5. In the Program section, under This program path specify the path of the program you would like to allow.
![](https://howto.hyonix.com/wp-content/uploads/2023/05/new-inbound-rule-program-path.png)
6. In the Action section, select Allow the connection or Allow the connection if it is secured then click Next.
Allow the connection: This includes connections that are protected with IPsec as well as those that are not.
Allow the connection if it is secure: This includes only connections that have been authenticated by using IPsec. Connections will e secured using the settings in IPsec properties and rules in the Connection Security Rule node.
![](https://howto.hyonix.com/wp-content/uploads/2023/05/inbound-rule-action-allow.png)
7. In the Profile section, you need to select the below options and click Next.
Domain: This applies to when the computer is connected to the corporate domain.
Private: This applies when the computer is connected to the private network.
Public: This applies to when the computer is connected to the public network.
![](https://howto.hyonix.com/wp-content/uploads/2023/05/new-inbound-rule-profile.png)
8. In the last step, you need to define the name for your custom Inbound Rule and click Next.
![](https://howto.hyonix.com/wp-content/uploads/2023/05/inbound-rule-name-hyonix.png)
Allow Outbound Connections Of Program From Windows VPS / Server Firewall.
1. To start off, log in to your Windows server then search an open Windows Firewall with Advanced Security.
![](https://howto.hyonix.com/wp-content/uploads/2023/05/windows-firewall-advanced-sec-outbound-rules.png)
2. Navigate to Windows Firewall with Advanced Security → Outbound Rules.
![](https://howto.hyonix.com/wp-content/uploads/2023/05/windows-firewall-advanced-sec-outbound-new-rule-1-1024x431.png)
3. In the Rule Type section, select Program and click Next.
![](https://howto.hyonix.com/wp-content/uploads/2023/05/new-inbound-rule-type-program.png)
4. In the Program section, under This program path specify the path of the program you would like to allow.
![](https://howto.hyonix.com/wp-content/uploads/2023/05/new-inbound-rule-program-path.png)
5. In the Action section, select Allow the connection or Allow the connection if it is secured then click Next.
Allow the connection: This includes connections that are protected with IPsec as well as those that are not.
Allow the connection if it is secure: This includes only connections that have been authenticated by using IPsec. Connections will e secured using the settings in IPsec properties and rules in the Connection Security Rule node.
![action-tab-allow-the-connection-outbound-rule](https://howto.hyonix.com/wp-content/uploads/2021/06/action-tab-allow-the-connection-outbound-rule-e1624528773178.png)
6. In the Profile section, you need to select the below options and click Next.
Domain: This applies to when the computer is connected to the corporate domain.
Private: This applies when the computer is connected to the private network.
Public: This applies to when the computer is connected to the public network.
![](https://howto.hyonix.com/wp-content/uploads/2023/05/new-inbound-rule-profile.png)
7. In the last step, you need to define the name for your custom Inbound Rule and click Next.
![](https://howto.hyonix.com/wp-content/uploads/2023/05/inbound-rule-name-hyonix.png)