LocalserviceNoNetworkFirewall là một phần của Windows Security, được Windows Defender (và các firewall dựa trên Windows Defender API) sử dụng. Bình thường dịch vụ này dùng rất ít CPU/RAM.
Vấn đề xảy ra khi nó bất ngờ chiếm CPU > 50%, làm máy chậm đến mức không thể dùng.
Nguyên nhân chính
- Xung đột Firewall: Cài thêm firewall thứ 3 (GlassWire, ZoneAlarm...) dùng Windows Defender API → xung đột với Windows Firewall.
- Quá nhiều rule tường lửa xung đột: Firewall cũ cài hàng nghìn rule inbound/outbound, Windows Defender cũng có rule riêng → CPU xử lý quá tải.
- Cài đặt hỏng của AV thứ 3: Avast Premium, v.v. bị corrupt → gây CPU cao cho dịch vụ này.
- Cài đặt Windows Firewall bị hỏng do phần mềm bảo mật khác can thiệp.
Lưu ý: Nếu máy quá lag không thao tác được → ngắt mạng (rút dây LAN/tắt WiFi) hoặc boot vào Safe Mode để làm các bước dưới.
1. Khởi động lại dịch vụ Windows Firewall
Sửa lỗi vặt tạm thời:
- Task Manager (Ctrl+Shift+Esc) → tab Services.
- Tìm WinDefend (Microsoft Defender Antivirus Service) → chuột phải → Restart.
- Kiểm tra CPU.
2. Cập nhật Windows lên bản mới nhất
Windows cũ xung đột driver/firewall thứ 3:
- Settings → Update & Security → Windows Update → Check for updates.
- Cài tất cả update → Restart → kiểm tra CPU.
3. Tắt/Bật lại cả 2 Firewall (Windows + Thứ 3)
Reset trạng thái kết nối giữa 2 firewall:
- Khay hệ thống → chuột phải firewall thứ 3 (GlassWire...) → Exit.
- Mở Windows Defender Firewall with Advanced Security (Run as Admin).
- Chọn Windows Defender Firewall Properties.
- Với 3 profile: Domain, Private, Public → set Firewall State = Off → Apply.
- Đóng → mở lại → bật Firewall State = On cho 3 profile.
- Đóng → bật lại firewall thứ 3 → test CPU.
4. Rollback driver (Quay lại driver cũ)
Nếu mới update driver (đặc biệt ATI Radeon/AMD GPU) → xung đột firewall:
- Device Manager → mở rộng thiết bị vừa update (Display Adapters...).
- Chuột phải → Properties → tab Driver → Roll Back Driver (nếu có).
- Làm theo wizard → Restart → kiểm tra.
5. Reset Windows Firewall về mặc định
Xóa rule tùy chỉnh gây quá tải:
- Mở Windows Security → Firewall & network protection.
- Chọn Restore Windows Firewall to its Defaults.
- Tab Virus & threat protection → Manage settings → Add or remove exclusions.
- Add an exclusion → Folder → thêm đường dẫn:
C:\ProgramData\Microsoft\Windows Defender\ - Select Folder → Close Windows Security → Restart máy.
6. Cấu hình Cisco Umbrella (Nếu dùng)
Nhiều user Cisco Umbrella báo CPU cao do bug. Cập nhật client mới nhất trước.
Tắt IP Layer Enforcement:
- Centralized Settings → Advanced Settings.
- Enable Intelligent Proxy → bỏ tích Enable IP-Layer Enforcement → Continue.
- Restart máy → kiểm tra.
Tắt service Umbrella:
- services.msc (Run as Admin).
- Tìm service Umbrella → Properties → Startup type: Disabled → Stop → OK.
- Restart → test. Nếu OK → có thể gỡ Umbrella, liên hệ support Cisco.
7. Xóa rule Firewall thừa (Từ firewall cũ)
Firewall cũ (Trend Micro...) để lại rule, Windows Firewall cũng có rule tương tự → xung đột.
- Mở Windows Firewall with Advanced Security (Run as Admin).
- Right pane → Export Policy (backup đề phòng).
- Tab Inbound Rules → xóa rule không cần (cẩn thận, đừng xóa rule hệ thống).
- Làm tương tự Outbound Rules.
- Hoặc: Action menu → Restore Default Policy → Confirm (xóa tất cả rule tùy chỉnh).
Nếu không mở được Firewall Advanced → Safe Mode → gõ WF.msc Run as Admin → làm bước 3-4.
8. Cài đặt lại phần mềm bảo mật thứ 3
Nếu dùng Avast Premium... cài hỏng → xung đột:
- Settings → Apps → Avast → Uninstall → Restart.
- Dùng Avast Removal Tool (tải từ avast.com) xóa sạch registry/file thừa.
- Test CPU. Nếu ổn → cài lại Avast mới (nếu vẫn cần).
- Vẫn lỗi → Clean Boot → bật dần dịch vụ tìm thủ phạm.
9. Chỉnh sửa Registry (Dành cho chuyên gia – Rủi ro cao)
CẢNH BÁO: Sai Registry → hỏng Windows. Backup Registry trước! (File → Export trong Regedit).
Tạo file MpsSvc.reg với nội dung khôi phục mặc định service Windows Firewall (MpsSvc), sau đó Merge vào Registry. Nội dung file Registry dài, xem chi tiết trong bài gốc. Sau khi merge → Restart.
Nếu tất cả thất bại → Clean Install Windows để giải quyết triệt để.