Jump to content

Firewall


au3scr
 Share

Recommended Posts

You can configure the builtin Windows firewall a few different ways. Here is one using "netsh firewall":

http://technet.microsoft.com/en-us/library/bb490617.aspx

http://streetjesus.blogspot.com/2005/07/te...ulation-of.html

  • add allowedprogram
  • set allowedprogram
  • delete allowedprogram
  • set icmpsetting
  • set multicastbroadcastresponse
  • set notifications
  • set logging
  • set opmode
  • add portopening
  • set portopening
  • delete portopening
  • set service
  • show commands
  • reset
Edited by weaponx
Link to comment
Share on other sites

@all

XP firewall is fully COM enabled, so easy to configure using AU3.

$objFirewall = objCreate("HNetCfg.FwMgr")
$objPolicy = $objFirewall.LocalPolicy.CurrentProfile

$objPolicy.FirewallEnabled = FALSE


; Enabling Remote Admin Port TCP 135
$objAdminSettings = $objPolicy.RemoteAdminSettings
$objAdminSettings.Enabled = TRUE

;Enable Port
Dim $objPort

$objPort = ObjCreate("HNetCfg.FwOpenPort")

$objPort.Name = "DCOM"
$objPort.Port = 888
$objPort.Scope = "NET_FW_SCOPE_LOCAL_SUBNET"
$objPort.Protocol = "NET_FW_IP_PROTOCOL_TCP"
$objPort.Enabled = True

$objProfile.GloballyOpenPorts.Add ($objPort)

Regards

ptrex

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...