Skip to content

Instantly share code, notes, and snippets.

@jshen28
Last active October 30, 2018 05:29
Show Gist options
  • Save jshen28/3cc35359b6fb681b439189727f634e3b to your computer and use it in GitHub Desktop.
Save jshen28/3cc35359b6fb681b439189727f634e3b to your computer and use it in GitHub Desktop.

CONFIGURE FIREWALLS

WINDOWS

On newer windows,

netsh advfirewall set  allprofiles state off/on

:: or equivalently
netsh advfirewall set privateprofile state off/on
netsh advfirewall set publicprofile state off/on
netsh advfirewall set domainprofile state off/on

On older ones,

netsh advfirewall set publicprofile state off/on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment