Solution to windows firewall failure

Source: Internet
Author: User

1. Firewall configuration error
Start --> run --> gpedit. msc
The group policy is enabled.
Hierarchical display on the left
Computer Configuration --> management template --> Network --> network connection --> Windows Firewall
Then, below are some options for force group policy restriction.
Find the configuration you need and define it to enable and then set it back to "not configured".
(The registry changed by some software is sometimes not displayed in the group policy. It may still be not configured after the group policy is changed. Therefore, you need to configure the registry and then configure it back)


2. Security center closed
The option for enabling the firewall turns gray and cannot be enabled. The prompt "due to security concerns, some settings are controlled by group policies" is displayed"
Run services. msc to open "service"
Set Security Center to automatic and enable.
Set Windows Firewall/Internet Connection Sharing (ICS) to automatic and enabled.
Set Application Layer Gateway Service to automatic and enable.
If you still cannot enable the firewall, perform the following steps:
Run regedit.exe to open the registry and delete the following two items:
HKEY_LOCAL_MACHINE SOFTWARE Policies Microsoft WindowsFirewall
HKEY_CURRENT_USER SOFTWARE Policies Microsoft WindowsFirewall
(At least one item can be found)
Restart Windows Firewall/Internet Connection Sharing (ICS) in the service)
If you continue to prompt "some settings are controlled by group policies due to security considerations", the usage will not be affected.

 
III. System File loss
Because the SharedAccess. reg file is lost or damaged, the SharedAccess. reg file represents the Windows Firewall service.
Note: The Windows Firewall service replaces Windows XP sp2 with the Internet Connection Firewall (ICF) service in earlier Windows XP versions.
To solve this problem, use one of the following methods.
[Method 1]: call the "install API InstallHinfSection" function to install Windows Firewall
To install Windows Firewall, follow these steps:
1. Click Start, click Run, type cmd, and then click OK.
2. At the command prompt, type the following command line and press enter:
Rundll32 setupapi, InstallHinfSection Ndi-Steelhead 132% windir % infnetrass. inf
3. Restart the computer
4. Click Start-run (shortcut: Windows + R), enter cmd, and click OK.
5. At the command prompt, type the following command: Netsh firewall reset and press enter.
6. Click Start-run, enter firewall. cpl, and press enter.
7. In the Windows Firewall dialog box, click On (recommended) to confirm.
[Method 2]: add the Windows Firewall entry to the registry
Warning if the registry is correctly modified, Serious may occur through the registry editor or other methods.
These problems may require you to reinstall the operating system. Microsoft cannot resolve these problems. You are at your own risk to modify the registry.
To add a Windows Firewall entry to the registry, follow these steps:
1. Copy the following text to notepad and save the file as Sharedaccess. reg:
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccess]
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccess]
"DependOnGroup" = hex (7): 00
"DependOnService" = hex (7): 4e, 00, 00, 6d, 00, 6e, 69, 00,
6e, 00, 4d, 00, 6d, 00, 00
"Description" = "Provides network address translation, addressing, name resolution and/or intrusion prevention services for a home or small office network ."
"DisplayName" = "Windows Firewall/Internet Connection Sharing (ICS )"
"ErrorControl" = dword: 00000001
"ImagePath" = hex (2): 25, 00, 53,00, 79,00, 00, 6d, 00, 6f, 00, 6f, 00,
, 00, 5c, 79, 00, 00, 6d, 00, 00, 5c,
, 00, 6f, 00, 00, 2e, 78, 20, 00, 2d, 00,
6b, 00, 6e, 00, 00, 00
"ObjectName" = "LocalSystem"
"Start" = dword: 00000002
"Type" = dword: 00000020
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccessEpoch]
"Epoch" = dword: 1272cd0
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccessParameters]
"ServiceDll" = hex (2): 25, 00, 53,00, 79,00, 00, 6d, 00, 6f, 00, 6f,
, 25, 00, 5c, 00, 5c, 00,
69,00, 70,00, 6e, 74, 00, 00, 6c, 00, 00, 2e, 00, 6c, 00, 6c, 6c, 00,
00
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicy]
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyDomainProfile]
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyDomainProfileAuthorizedApplications]
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyDomainProfileAuthorizedApplicationsList]
"% Windir % \ system32 \ sessmgr.exe" = "% windir % \ system32 \ sessmgr.exe: *: enabled: @ xpsp2res. dll,-22019"
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfile]
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfileAuthorizedApplications]
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfileAuthorizedApplicationsList]
"% Windir % \ system32 \ sessmgr.exe" = "% windir % \ system32 \ sessmgr.exe: *: enabled: @ xpsp2res. dll,-22019"
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccessSetup]
"ServiceUpgrade" = dword: 00000001
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccessSetupInterfacesUnfirewalledAtUpdate]
"All" = dword: 00000001
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccessEnum]
& Quot; 0 & quot; = & quot; Root \ LEGACY_SHAREDACCESS \ 0000 & quot"
"Count" = dword: 00000001
"NextInstance" = dword: 00000001
2. Double-click Sharedaccess. reg to merge the contents of this file into the registry to create a firewall entry.
3. Restart Windows.
4. Click Start-run, enter cmd, and click OK.
5. At the command prompt, type the following command: Netsh firewall reset and press enter.
6. Click Start-run, enter firewall. cpl, and click OK.
7. Configure and use Windows Firewall settings.


Windows vista

Your Vista version does not have any security center components, so you cannot enable the security center because the security components are not installed.
As long as the WINDOWS Firewall is set well, it is not much worse than other firewalls.


Click Start, Click run, and type services. msc,

In service management, set "startup mode" of the "Windows Firewall/Internet Connection Sharing (ICS)" service to "automatic", and click "Start,

See if it can be started


No.
Double-click the service to open the "properties" window and switch to the "dependency" tab, in the "This service depends on the following system components" box, check whether the current service depends on "Network Connections" and "Windows Management Instrumentation".

If not, start the dependency service and try again.


The possible causes are summarized as follows:

1. Viruses are infected in security mode.

2. A system error occurs. Use system restoration.

3. Manually fix registry errors

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.