firewall

Programmatically Add Exception to windows vista firewall

痞子三分冷 提交于 2020-01-03 03:25:09
问题 Is there any way to programmatically add an .exe file to the exception list for the Windows Vista firewall to allow it to run normally? I'm using VC++. 回答1: Yes - if you take a look at the WindowsFirewallAddApp method here, it should give you some ideas how to do it. 回答2: I don't know for certain about the Vista firewall, but I would defeinitely excpect that it is a violation of the security of any computer to allow programmatic access to firewall exception lists. I would be very surprised if

How can I block some special User-agents Via IPTables

假装没事ソ 提交于 2020-01-01 19:25:24
问题 I need to block packets from any source that includes some special User agents using IPTables. But I don’t want to manage it via .htaccess or Apache. Is there any way? 回答1: You can do it like this: iptables -A INPUT -p tcp --dport 80 -m string --algo bm --string "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" -j DROP 回答2: Short answer: No. Long answer: You could try something using the string match with iptables (see iptables -m string -h ). However, the clients would still be able to

Configure Azure SQL Database Firewall for just my Web App

99封情书 提交于 2020-01-01 18:57:33
问题 We use Azure Web Apps with Azure SQL and would like to make this setup more secure by configuring the database firewall to only allow connection from the specific web apps rather than any service in Azure . How can I limit connections to just my Azure services? 回答1: Assuming that you have an ip address (hosting plan needs to be shared, basic or standard)**: a) Navigate to SQL Databases >> Servers Tab >> Select the server hosting your database >> Configure Tab b) Alternatively select your

MSDTC and firewall [closed]

旧时模样 提交于 2020-01-01 08:19:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . We are using MSDTC for SQL transactions. I am having issue with setting up firewall for MSDTC to work. The application and SQL are running on separate machine. Currently MSDTC is working if i turn off firewall on application server. I think there should be someway to add exception to the firewall setting for

MSDTC and firewall [closed]

∥☆過路亽.° 提交于 2020-01-01 08:19:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . We are using MSDTC for SQL transactions. I am having issue with setting up firewall for MSDTC to work. The application and SQL are running on separate machine. Currently MSDTC is working if i turn off firewall on application server. I think there should be someway to add exception to the firewall setting for

How can I check the hit count for each rule in iptables?

故事扮演 提交于 2020-01-01 07:34:06
问题 I want to know I can can find out which rule was accessed, and how many times, from the access list I have created using iptables. My firewall has over 1000 input and output rules in iptbales; I want to find how many each of them were accessed. For example, suppose I have the following rules iptables -A INPUT -i eth0 -p tcp --dport 22 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -A OUTPUT -o eth0 -p tcp --sport 22 -m state --state ESTABLISHED -j ACCEPT iptables -A INPUT -i eth0 -p tcp

Programmatically add an windows service to Windows Firewall (During Installation) [duplicate]

梦想与她 提交于 2020-01-01 06:58:06
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Programmatically add an application to Windows Firewall in my solution i have an windows service project and installer to install this service How i can add this service to Windows Firewall During Installation. 回答1: Assuming we're using a Visual Studio Installer->Setup Project - You need an installer class like this inside an assembly that's being installed, and then make sure you add a custom action for the

MSDTC - how many ports are needed

孤人 提交于 2020-01-01 02:07:09
问题 I have a considerably large application that uses MSDTC. How many ports should I open? Is there any way to determine it? EDIT: I know what ports I need to open, I don't know how many I need. 回答1: I think Migol wants to know how big the range of the RPC dynamic port allocation should be. In the KB they mention a minimum of 100 ports Furthermore, previous experience shows that a minimum of 100 ports should be opened, because several system services rely on these RPC ports to communicate with

Avoiding a Windows Firewall popup

╄→尐↘猪︶ㄣ 提交于 2019-12-31 22:22:42
问题 My organisation produces a suite of Windows applications that make use of networking, and so when users run our software for the first time, the Windows Firewall (if it is running) brings up a pop-up, informing the user that our app(s) are trying to use the network, prompting the user to allow or deny access. This occurs with plenty of other apps (Spotify, to give one example), but ee'd like to prevent these popups from happening, as they can be a bit problematic for our users. Some

Avoiding a Windows Firewall popup

99封情书 提交于 2019-12-31 22:21:49
问题 My organisation produces a suite of Windows applications that make use of networking, and so when users run our software for the first time, the Windows Firewall (if it is running) brings up a pop-up, informing the user that our app(s) are trying to use the network, prompting the user to allow or deny access. This occurs with plenty of other apps (Spotify, to give one example), but ee'd like to prevent these popups from happening, as they can be a bit problematic for our users. Some