In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what kind of tool WindowsFirewallRuleset is, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
WindowsFirewallRuleset
The tool has organized Windows firewall rules into separate PowerShell scripts based on the following factors:
1. Rule group
2. Flow direction
3. IP version (IPv4/IPv6)
4. Further classification according to procedures and services
For example:
1. ICMP traffic
2. Browser rules
3. Windows system rules
4. Stored applications
5. Windows service
6. Microsoft program
7. Third-party programs
8. Broadcast traffic
9. Wait.
You can choose the rules to use according to your needs, and use the command to complete the firewall configuration.
All rules can be loaded directly into group policy, which is more powerful than the default Windows firewall configuration rules.
System requirements
1. Windows 10 Professional or Enterprise Edition
2. Windows PowerShell 5.1: [click me to download]
3. Git (optional): [click me to download]
Download and use of tools
First, right-click the taskbar, then select taskbar Settings, and check "replace the command prompt with Windows PowerShell in the menu when I right-click the start button or press Windows + X."
Right-click the "start" button, click "Windows PowerShell", open PowerShell with administrator privileges and enter the following command:
Get-ExecutionPolicy
Then enter:
Set-ExecutionPolicy-Scope CurrentUser-ExecutionPolicy Unrestricted-Forcecd C:\ git clone git@github.com:metablaster/WindowsFirewallRuleset.gitcd WindowsFirewallRuleset.\ SetupFirewall.ps1
After the execution is complete, we can complete the rule settings by entering the following command to execute the script:
Set-ExecutionPolicy-Scope CurrentUser-ExecutionPolicy RemoteSigned-Force\ apply a separate rule set
If you only want to apply specific rules, you have the following two ways:
1. Execute the SetupFirewall.ps1 script, and then output the rule set you need to use, or enter "n" and press enter to skip the current rule set.
2. In the PowerShell terminal window, go to the directory that contains the rule set script, and then execute the specific PowerShell script.
Run the FirewallProfile.ps1 script to apply the default firewall rules, or manually configure it directly in GPO.
Delete a rule
According to this version, we can select the rule we need to delete directly in the local group policy, then right-click and delete. If we need to restore the state of the firewall, we also need to delete all the rules from the GPO, then right-click the "Windows Defender Firewall with Advanced Security-Local Group Policy Object" node and set all the properties to "Not configured".
Manage loaded rules
We have the following two ways to manage loaded rules:
1. Use local group policy, which will restrict the use of rules.
2. Edit the PowerShell script. This method allows us to have the most complete control. We can promote rules, add rules, or modify rules.
License agreement
The development and release of the WindowsFirewallRuleset project follows the MIT open source license agreement.
The subproject Indented.Net.IP (third-party code, located in the "Indented.Net.IP" subdirectory) follows the ISC protocol.
The subproject VSSetup (third-party code, located in the "VSSetup" subdirectory) follows the MIT protocol.
The above is all the content of this article "what is WindowsFirewallRuleset?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.