Win2008 Advanced Firewall
Located in the registry:
[HKEY_LOCAL_MACHINE\ SYSTEM\ ControlSet001\ services\ SharedAccess\ Parameters\ FirewallPolicy\ FirewallRules]
Rem restores the firewall to the default
Netsh advfirewall reset
Rem sets variables offices_*** and internal_servers
Set offices_***=203.208.46.200/32119.75.217.56/32131.253.13.32/32
Set internal_servers=192.168.0.0/24
Rem opens port 3389 to offices_***
Rem netsh advfirewall firewall add rule name= "Custom Rule _ port3389_from_offices_***" dir=in protocol=tcp localport=3389 remoteip=%offices_***% action=allow
Rem establishes mutual trust between internal_servers
Netsh advfirewall firewall add rule name= "Custom Rule _ trust_all_internal_servers" dir=in remoteip=%internal_servers% action=allow
Rem opens port 80 to all addresses
Netsh advfirewall firewall add rule name= "Custom Rule _ port80_from_anywhere" dir=in protocol=tcp localport=80 action=allow
Rem opens port 60000 to all addresses
Netsh advfirewall firewall add rule name= "Custom Rule _ port60000_from_anywhere" dir=in protocol=tcp localport=60000 action=allow