windows-firewall

Creating firewall excetption using netsh command

这一生的挚爱 提交于 2019-12-08 12:33:20
问题 I am trying to use netsh command to create windows firewall exception. The following command gives Syntex Error. Please advise where to make change. Thanks netsh firewall add allowedprogram C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\ sqlservr.exe “SQL Server Windows NT” ENABLE 回答1: If you are on Vista/Win2008 or up do this: all at one line, I added linebreaks here for readability: netsh advfirewall firewall add rule name="SQL Server Windows NT" dir=in action=allow program=

How to disable windows firewall settings

﹥>﹥吖頭↗ 提交于 2019-12-08 12:16:00
问题 I am doing firewall related work. I can turn ON/OFF windows firewall programatically using COM interface but I want to disable turn ON/OFF options. Is there any COM interface, Windows API present for that? 回答1: This behavior is triggered by the presence of Group Policy for the firewall, specifically the Windows Firewall: Protect all Network connections setting. As per How to disable Windows Firewall using python, you need to enable this setting in any of the available ways outlined there. 回答2

What API calls are involved in opening a port in the Windows Firewall?

一笑奈何 提交于 2019-12-08 09:03:45
问题 I have a batch file that installs WinVNC in about 1 second and starts up the service. However, I still have to manually go into the Windows Firewall and open a port to allow connections. How can I do that programmatically? If I could do it from inside the batch file, that would be ideal, but I'm ok writing an EXE if that's necessary. 回答1: Let me google that for you: http://www.windowsecurity.com/articles/Customizing-Windows-Firewall.html This page includes a multitude of ways to customize the

Get Windows Firewall prompt for console app but not service

别来无恙 提交于 2019-12-08 09:00:22
问题 I have a c# .NET app that receives TCP and UDP streams from other devices on the network. When I run it as console app, the Windows Firewall prompts me: "Windows Firewall has blocked some features of this program" and it ask me to allow vshost32.exe to communicate on the network. I agree and the app works fine. However when I run the app as a service (I have a separate console and service wrappers) I get no such prompt and I can only get it to work if switch off the firewall. Is this expected

How to allow Android Studio to connect to internet via Windows Firewall?

♀尐吖头ヾ 提交于 2019-12-08 06:28:01
问题 I've Windows Firewall with Inbound and Outbound rules enabled. In android studio, I'm getting "Connection to the internet denied" error while gradle syncing etc. Already allowed studio.exe to connect in firewall but it's not working. If I disable firewall, it's able to connect. So in order to allow android studio to connect to internet without disabling windows firewall, what program should I add to windows firewall rules? 回答1: Fixed it by adding java.exe to Windows firewall inbound and

How to allow Android Studio to connect to internet via Windows Firewall?

做~自己de王妃 提交于 2019-12-07 15:24:26
I've Windows Firewall with Inbound and Outbound rules enabled. In android studio, I'm getting "Connection to the internet denied" error while gradle syncing etc. Already allowed studio.exe to connect in firewall but it's not working. If I disable firewall, it's able to connect. So in order to allow android studio to connect to internet without disabling windows firewall, what program should I add to windows firewall rules? Fixed it by adding java.exe to Windows firewall inbound and outbound rules(in my case C:\Program Files\Java\jdk1.8.0_112\bin\java.exe) and also studio.exe ( C:\Program Files

Block .EXE in Windows Firewall with context menu

泪湿孤枕 提交于 2019-12-07 12:14:30
问题 I got the following bit of code for a .REG file that adds "Add to Firewall" to the context menu on right clicking on a .EXE file. It simply creates an Outbound Rule in the windows firewall for that specific file you had selected instead of doing it manually. Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\exefile\shell] [HKEY_CLASSES_ROOT\exefile\shell\Add To Firewall] [HKEY_CLASSES_ROOT\exefile\shell\Add To Firewall\command] @="netsh advfirewall firewall add rule name=\"%1\" dir=out

Get Windows Firewall prompt for console app but not service

风格不统一 提交于 2019-12-06 20:44:24
I have a c# .NET app that receives TCP and UDP streams from other devices on the network. When I run it as console app, the Windows Firewall prompts me: "Windows Firewall has blocked some features of this program" and it ask me to allow vshost32.exe to communicate on the network. I agree and the app works fine. However when I run the app as a service (I have a separate console and service wrappers) I get no such prompt and I can only get it to work if switch off the firewall. Is this expected for services? () Also, I have read some code snippets that suggest you can manually add exceptions to

How to edit Firewall rules in code successfully on a Worker Role Instance?

拈花ヽ惹草 提交于 2019-12-06 12:07:32
问题 I'm trying some code that works locally but it doesn't work on my cloud instance. I assume it may be permissions related, but I'm unable to fix it yet. Here is what I have which works when I debug my worker role locally, but nothing happens when it is published (on staging right now). string strCmdText = string.Format("advfirewall firewall add rule name=\"BlockU\" protocol=any dir=in action=block remoteip={0}", ip); ProcessStartInfo psi = new ProcessStartInfo("netsh.exe", strCmdText); psi

Oracle Database in Google Compute Engine

点点圈 提交于 2019-12-06 09:53:44
问题 I have installed Oracle 11g Standard Edition in a Google Compute Engine (GCE) virtual machine (Windows Server 2012 Datacenter). I have created an inbound and outbound rule for tcp:1521 in the Windows Firewall. At the same time, I have created a tcp:1521 firewall rule for GCE network. When I connect to my database using SQL Developer from localhost everything works. However, if I try to connect to the database from a remote host (also using SQL Developer) I obtained an error: Status: Failure -