Share via

Windows Firewall Outbound rules

Anonymous
2024-01-05T15:52:00+00:00

I set windows firewall to block all inbound and outbound connections on all profiles (Public, Domain, and Private). I then created an outbound rule for one specific program that i want to allow through. I am looking at 2 computers, both with the exact same firewall rules. One works and one doesn't.

I have tried creating another rule to allow all outbound connections to that local server's IP address. I still cant hit that server. It's almost like sometimes the outbound connections blocked in the profile is taking precedence over the rules i have created.

I have set many computers up this way and have the same issue until it magically starts working. Again the rules are all the same. The actual error i get from the application is a .net error stating: An attempt was made to access a socket in a way forbidden by its access permissions (server IP:Port)

Not sure what is happening here or why it works sometimes, and sometimes it doesn't. As far as i know. I shouldn't have to allow services through, just the program should be enough, and it has been enough for the other computers currently working with this setup.

Windows for home | Windows 10 | Internet and connectivity

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-01-06T06:06:02+00:00

    Hi Matthew,

    Welcome to Microsoft Community.

    I'm Hahn and I'm here to help you with your concern.

    Outbound rules are used to control the network traffic that originates from your device and goes to another device on the network or the internet. By default, Windows Firewall allows all outbound network traffic, unless it matches a rule that prohibits the traffic.

    If you want to block or allow a specific program or port to communicate outbound, you need to create a custom outbound rule. You can do this by following these steps: Configure firewall rules with group policy - Windows Security | Microsoft Learn

    Unfortunately, Windows Firewall Outbound rules issue is not supported on the Microsoft Answers forum. It is more suitable for publishing on Microsoft Learn (English only), you can click on "Ask a question", there are experts who can provide more professional solutions in that place. 

    Here is a link: Windows 10 Security - Microsoft Q&A to the forum where you can raise specific scenarios and share your idea to help solve the problem. 

    I won't be able to help you, but I'll leave that question open in case one of our amazing volunteers has ideas for you. 

    Your Sincerely

    Hahn - MSFT | Microsoft Community Support Specialist

    2 people found this answer helpful.
    0 comments No comments