To turn Windows Firewall on or off, select the Start button, open Windows Defender Security Center > Firewall & network protection, choose a network profile, and then under Windows Firewall, turn it on or off.