firewall

How do you add firewall permission to an app during installation?

泪湿孤枕 提交于 2019-12-10 17:55:18
问题 I've heard that you can, during installation, add an exception for your app to give permission for it to access the internet through the firewall. Anyone know how to do this? 回答1: The alternative in many cases is to suggest that users disable the firewall entirely or ok the prompt Windows raises when your server ports begin to listen. Both of these are bad options: one risks leaving the machine open to anything and the other trains them to approve security prompts uncritically. You could

Why are localhost connections blocked by the firewall?

时间秒杀一切 提交于 2019-12-10 13:47:37
问题 When I listen on a port on localhost, Windows will popup a dialogue in which the user must add my program to the list of firewall exceptions. This is annoying, and requires administrator-rights, which the user may not have. Why does Windows do this for loopback connections (127.0.0.1) and is there some trick to prevent this? 回答1: The answer was to specify: IPEndPoint localEndPoint = new IPEndPoint(IPAddress.Loopback, Port); instead of IPEndPoint localEndPoint = new IPEndPoint(IPAddress.Any,

Windows Firewall state different between Powershell output and GUI

本小妞迷上赌 提交于 2019-12-10 13:01:45
问题 When I run Get-NetFirewallProfile I see that the Domain profile Enabled is set to True. However, when I go to Control Panel > Windows Firewall the Domain profile is turned off by the GPO. Also, in Windows Firewall with Advanced Settings, the Firewall state is "Off". I'm not sure why the powershell output is different than the GUI. Please help! Thanks, aB 回答1: According to this article: https://social.technet.microsoft.com/Forums/windowsserver/en-US/4d8678e2-5653-4fd2-b275-62e0e7008ff9

How can I disable Windows Firewall?

被刻印的时光 ゝ 提交于 2019-12-10 12:25:55
问题 Windows 7, 8.1 I get an exception when I try to disable Windows Firewall. I try to do it with admin rights. But I haven't the same problem for Windows Firewall enabling . Type NetFwMgrType = Type.GetTypeFromProgID("HNetCfg.FwMgr", false); INetFwMgr mgr = (INetFwMgr)Activator.CreateInstance(NetFwMgrType); // Get the Windows Firewall status bool firewallEnabled = mgr.LocalPolicy.CurrentProfile.FirewallEnabled; // it works fine... String frw_status = "Windows Firewall is " + (firewallEnabled ?

How to open a port in El Capitan

左心房为你撑大大i 提交于 2019-12-10 11:59:03
问题 I am running Ruby on Rails on my Mac Book Pro on El Capitan and I would like to access my webpage from other computers. How can I enable the port 3000 in the firewall? 回答1: Firstly, you can disable the firewall by following this path: System Preferences > Security > Firewall and you can see all list on the terminal by this code: sudo ipfw list Secondly, you can add specific port with two ways: Command Terminal [1-Step]: type on terminal sudo vim /etc/pf.conf [2-Step]: Add this line of end of

Iptables remove specific rules by comment

我与影子孤独终老i 提交于 2019-12-10 11:02:01
问题 I need to delete some rules with same comment. For example I have rules with comment = "test it", so i can get list of them like this: sudo iptables -t nat -L | grep 'test it' But how can i delete all PREROUTING rules with comment 'test it'? UPD: As @hek2mgl said, i can do something like this: sudo bash -c "iptables-save > iptables.backup" sed -i '/PREROUTING.*--comment.* "test it"/d' iptables.backup sudo iptables-restore < iptables.backup sudo rm iptables.backup But between save and restore

Source Port vs Destination Port

徘徊边缘 提交于 2019-12-09 14:47:46
问题 I am new to TCP/IP and trying hard to learn basics. Well, I really wonder about inbound rules and outbound rules of Firewall and concept of source adress:port, destination adress:port. For example I am investigating port 80. I know that http uses port 80. But when I try to listen the traffic I see that my browser doesn't use 80. As you see from the image only destination port 80 is used and "destination" should be the server that hosts web pages not my computer. And also there is no used port

Capistrano, Firewalls and Tunnel

非 Y 不嫁゛ 提交于 2019-12-09 13:29:55
问题 We're using Capistrano to automate pushing new versions of a PHP application to a production server. The production server (we'll call it production) is public, while our repository server (we'll call it repo) sits behind our corporate firewall, along with our own machines. Capistrano, as configured by default, won't work, as production can't talk to repo. I was wondering if there was someway I could setup capistrano to SSH to repo first, then SSH to production opening a tunnel on a port that

How to allow Python.app to firewall on Mac OS X?

十年热恋 提交于 2019-12-08 23:53:26
问题 When I run a python application on Mac, it shows many dialogs about want "Python.app" to accept incoming network connections. Even I Allow it many times, it shows again and again. How to allow it one time and not show any more? Edit I found this question: Add Python to OS X Firewall Options? I followed the accepted answer to do but finally when I run codesign -s "My Signing Identity" -f $(which python) , it said: /usr/bin/python: replacing existing signature error: /Applications/Xcode.app

Exactly what ports must be open for MSVSMON.exe (remote debugging) to work?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 16:01:08
问题 I'm asking my network admin to open up ports on the firewall to allow remote debugging. It says in the documentation on MSDN that it needs UDP 135. However, the admin says that a number of non-standard 19xx ports are being used. Exactly what ports are required for remote debugging to work? 回答1: You need to open ports on both your computer and the remote computer. Primarily it's TCP 135 not UDP 135. All the ports and steps are listed here: http://msdn.microsoft.com/en-us/library/h0d7tte4(v=vs