firewall

WCF two way HTTP communication to bypass firewalls

好久不见. 提交于 2019-12-12 19:39:56
问题 I want to use WCF to enable two way communication without opening a port on the client. I'm developing something like a P2P application (similar to teamviewer/logmein) where you don't need to open ports to communicate. How do I accomplish two way communication through HTTP/HTTPS without the need to open a port in the client? Note : Port 80 can be opened in the server...no issues on that. Thanks 回答1: Well those systems you mention work as follows. They first try to make client A and client B

RegEx to exclude match if a certain word is present, but not another partial word

Deadly 提交于 2019-12-12 17:17:11
问题 I have the keyword "cum" which our firewall uses to block adult sites, problem is this works a little too well because this also blocks any URL with the word "document" The firewall will take regex strings, and I tried this: ^.*(?!document)cum.*$ Vut it still matches "document". I have a feeling I should be using a pipe | but I don't get it. What I want is to match anywhere *cum* is found in the URL (or domain-name), but NOT if the word is document or documents . Possible? As I understand it,

TCP Packet Mangling using NFQUEUE

血红的双手。 提交于 2019-12-12 12:30:51
问题 I am trying to solve the below issue, I have a iptables rule in my output chain which says that if the packet matches certain criteria, then queue it and send it to userspace using NFQUEUE The userspace program receives it,and once it recieves it, it checks if the packet is a tcp packet and if yes, it modifies the content of the packet After Modifying it, it sends out and I am able to see that till now it works properly, I was able to re-calculate the checksum and verify it and update the

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

拥有回忆 提交于 2019-12-12 07:36:48
问题 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 using INetFwOpenPort . firewallManager.LocalPolicy.CurrentProfile.GloballyOpenPorts.Add(port) Is there any way to programmatically open only single port per application programmatically? I can do it manually through firewall settings. 回答1: There's a

How to disable Windows Firewall using python

时光怂恿深爱的人放手 提交于 2019-12-12 05:32:17
问题 I am trying to write automation to a little project that I'm doing in work. In the proccess I need to disable Windows Firewall (for every Windows version) using python (I prefer activepython because it already installed). I looked for many answers but I didn't found any answer that suits my needs. I found this site: https://mail.python.org/pipermail/python-win32/2012-July/012434.html But the problem is that when I check from the control panel the actual disabling of Firewall is not happening.

C#/C++ Capture local machine ip packet and drop it

て烟熏妆下的殇ゞ 提交于 2019-12-12 05:27:12
问题 I am working on a firewall project. So far I succeed to block packets by ip basis which is I done by windows filtering platform. But my customer does not want to block the whole ip. He wants to block specific url. So now I need to capture each packet and read it. So far I can do that by C# raw socket. But I dont know how to drop that specific packet. Please help me out on that. 回答1: Does this help you? http://www.osix.net/modules/article/?id=824 In this article the author reads packets in raw

Mac Access Issues over VPN

故事扮演 提交于 2019-12-12 03:36:49
问题 I can access sites when using browser, but when inside a Mac application I always get "Operation Timed Out" over VPN . Is this a companies firewall issue or my local DNS settings issue? I have been going back and forth with our IT admin team on this. With the same firewall roles Windows users are able to run things smoothly. Few Examples.. Mac Terminal himalay$ git clone https://github.com/spring-guides/gs-consuming-rest.git Cloning into 'gs-consuming-rest'... fatal: unable to access 'https:/

Windows: What would be involved with creating our own firewall for distribution with our product?

萝らか妹 提交于 2019-12-12 02:43:08
问题 I am charged with determining what would be involved with creating our own firewall. Something that can intercept each and every connection, and decide whether to permit it based on which exe is initiating the connection. We would either block or hang the connection until the user said to permit or deny. I am interested in XP, Vista, Win7. I know how to program in Java, Perl and JavaScript. I am assuming that I am going to need to get Java to interface with some C or C# executable in order to

Connecting to device behind firewall

风流意气都作罢 提交于 2019-12-12 01:43:32
问题 I have a wpf app that needs to communicate(exchange data) with a custom designed device (we can modify the code for the device). Do I have any options to connect to the device if it is behind a firewall via http? I was hoping there would be a method where the admin would not have to forward any specific ports or do anything on his end. I assume the issue is how would I address the device from my app. I know SOAP over SMTP is one option. Is another option where the device could chatter out to

Windows Firewall inbound rules and environment PATH variable

余生颓废 提交于 2019-12-12 01:07:51
问题 Consider the following scenario: Jenkins running with a master on machine A and a slave on machine B. Rather than the master's XML config referring to a hard coded Java path it was changed to reference 'java', in the environment PATH variable. This works fine for the master running on machine A, however the slave on machine B is no longer able to connect to the master host PC. The (Windows) firewall rules for inbound traffic on machine A allow inbound communication on any protocol and port