Shoutbox

Windows Firewall - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Windows Firewall (/showthread.php?tid=79022)

Windows Firewall by ArkaneArkade on 11-14-2007 at 02:31 AM

Hey guys, I have a minor problem with a script.  It's using Pai's Xniff.ocx listening to UDP port 8278.  I have been stuck with this for a while, but I finally realised the reason the script wasn't working was because of the Windows Firewall.  Up until realising this, I've had to run my script in conjunction with mIRC to open the port.

Now I have a few people who would like a copy of my script, and all of them have varying skill levels.  I was wondering if anybody would know a way to script an event, that would add an exception in the windows firewall.  I know that most programs have this ability, but I don't know if theres any way to add this otherwise, but I think my script; and possibly a few other peoples; could really benefit from a button in my config window that would automatically do this.

Would anyone know how to do this, or maybe suggest a work-around?
Cheers
Stefan Leroux


RE: Windows Firewall by ShawnZ on 11-14-2007 at 03:09 AM

generate a random guid.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules\[random guid] == REG_SZ ==

v2.0|Action=Allow|Active=TRUE|Dir=In|Protocol=17|Profile=Domain|LPort=8278|Name=Leroux|Edge=FALSE|


or uh, something like that.


RE: Windows Firewall by ArkaneArkade on 11-14-2007 at 08:31 PM

OK, thats done, thanks very much.

Admittedly, I didn't really understand that :S but I did get enough from it to look into the registry myself and sort it, so very much appreciated.

:D