Saturday, July 6, 2013

How to enable firewall in my script?

Hi

I have script(ip.py) that send me ip.txt from my remote pc to my email.
My problem is my firewall in my remote pc block ip.txt file.

How can I tell Firewall in my script to allow ip.txt file from my remote pc(Add python script to firewall exceptions)?

I’m using netsh advfirewall firewall and I do like this but something wrong I think!!!

FIREWALL_ALLOW_PROGRAM = 'netsh advfirewall firewall add rule name="ip" dir=in action=allow program="{}"


Shoud I add something in subprocess How?

See this lik please - Full Post

No comments:

Post a Comment