Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Win2008 Advanced Firewall

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security