Questions tagged [windows-firewall]

Questions referring to the firewall that comes built-in with windows. Use this tag only when referring to the firewall that comes with Windows; Other firewalls that run on Windows should contain the two tags [windows] [firewall] instead.

Questions referring to the firewall that comes built-in with windows. Use this tag only when referring to the firewall that comes with Windows; Other firewalls that run on Windows should contain the two tags instead.

495 questions
12
votes
4 answers

Programmatically manage Windows Firewall

I am trying to programmatically create an Outbound Windows firewall rule. In addition, I'd like to programmatically enable and disable this rule. How can I go about doing this in C#? Manually, I can do this by going into control panel, clicking on…
Icemanind
  • 47,519
  • 50
  • 171
  • 296
11
votes
4 answers

Detect if windows firewall is blocking my program

I have an application that communicates with a NetApp device through their api. With the windows firewall on, the api commands will fail. With the firewall off, the api commands work. I don't receive any message like "Windows Firewall is blocking…
Web
  • 1,735
  • 2
  • 22
  • 36
11
votes
1 answer

python SSL certificate validation fails on some distribution commands

I'm trying to upload a Python file to PyPi via twine upload but I get an SSL error: C:\pypubsub>twine upload dist\PyPubSub-4.0.0rc1-py3-none-any.whl Uploading distributions to https://upload.pypi.org/legacy/ Uploading…
Oliver
  • 27,510
  • 9
  • 72
  • 103
10
votes
4 answers

How can I let Git push/pull through Windows 7 Firewall?

My firewall is configured to deny all inbound and outbound traffic unless a rule says otherwise. This answer suggests making rules for git.exe, sh.exe, and ssh.exe. So I did. Even bash.exe. Still when I run git pull I see: fatal: unable to access…
Joncom
  • 1,985
  • 1
  • 18
  • 29
9
votes
0 answers

Is it possible to add firewall exceptions to a .Net core application?

I have some .Net core microservices which I am currently running with dotnet xyz.dll. They currently run and work fine however in order for one to talk to the other I of course need firewall exceptions. Without thinking much I used a script to use…
Telavian
  • 3,752
  • 6
  • 36
  • 60
9
votes
4 answers

Deploying NetFwTypeLib to manage the Windows Firewall

My Windows service needs to create/remove certain rules from the Windows firewall. For this I interface with NetFwTypeLib in \system32\hnetcfg.dll via COM. It works great on my 64-bit Windows 7 machine, but testing on another 64-bit Windows…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
9
votes
0 answers

Windows Firewall has blocked some features of IntelliJ IDEA

I installed IntelliJ IDEA 2016.3 Community Edition and I created a simple Java class containing a main method that just prints a message. When I run that "program", the following window appears: Windows Firewall has blocked some features of this…
9
votes
2 answers

Packet Redirection on Windows

We currently run windows on all of our machines due to software limitation. Within this however, we are needing to redirect certain packets that come into an IP and Port to a different Port (same IP). We have software listening on the "Proxy…
9
votes
2 answers

Trace Routing for a Certain port

Before saying anything let me tell you that i am not well educated int networks related subjects. I am a software developer and I have written and exposed a Service on HTTPS at port 8000. Now i want to know that if there is any kind of software…
Mubashar
  • 12,300
  • 11
  • 66
  • 95
8
votes
1 answer

Add a firewall rule for Distributed Transaction Coordinator (msdtc.exe)

I tried to use firewallAPI.dll to add a rule. It works fine for calc.exe (or some other files) as described bellow but fails for msdtc.exe with the following exception: System.IO.FileNotFoundException: 'The system cannot find the file specified.…
Serg046
  • 1,043
  • 1
  • 13
  • 42
8
votes
4 answers

Adding an application firewall rule to both private and public networks via win7 FirewallAPI

A little background: Basicaly I'd like to add a program firewall access rule to both private and public networks. I used to use this- "netsh firewall add allowedprogram program= "Path.." name=AppName ENABLE scope=ALL profile=CURRENT" But now I'd…
8
votes
6 answers

How can I detect if a firewall product is enabled?

How can I detect (from a Windows Forms application written in C#) if a firewall product is enabled? Here is my code and i am getting error on INetFwMgr that type or namespace could not found namespace WindowsFormsApplication1 { public partial…
7
votes
2 answers

Create firewall rule to open port per application programmatically in c#

I need to open specific port for my application. I have tried using INetFwAuthorizedApplication rule per application for all ports. fwMgr.LocalPolicy.CurrentProfile.AuthorizedApplications.Add(app) Alternatively open one port for all appllications…
Marek
  • 2,419
  • 6
  • 34
  • 38
7
votes
1 answer

How to determine Windows firewall rule's program path using Powershell Get-NetFirewallRule

We define a new Windows firewall rule for some program to accept inbound TCP connections on some port. This can be done using either netsh.exe utility or Powershell New-NetFirewallRule cmdlet. For a example, here's a sample command to allow…
alexg
  • 653
  • 7
  • 29
7
votes
2 answers

TCP packet interception and redirection under windows

I have been trying to find some way of redirecting outbound TCP packets under windows, but so far have not been successful. Does anyone know of any software/code bit that would do something like that? I am not even sure it is possible with the…
FCPK
  • 71
  • 1
  • 4
1
2
3
32 33