Zarządzanie zaporą Windows - netsh

  • Zarządzanie zaporą Windows - netsh

Zarządzanie zaporą Windows - netsh

Narzędzia administracyjne

netsh advfirewall

# Eksportuj reguły zapory
netsh advfirewall export advfirewallpolicy.wfw

# Importuj reguły zapory
netsh advfirewall import advfirewallpolicy.wfw

# Wyświetl stan zapory
netsh advfirewall show allprofiles state

# Wyświetl domyślne reguły zapory
netsh advfirewall show allprofiles firewallpolicy
# netsh advfirewall set allprofiles firewallpolicy blockinbound,allowoutbound
# netsh advfirewall set allprofiles firewallpolicy blockinbound,blockoutbound

# Wyświetl ustawienia zapory
netsh advfirewall show allprofiles settings

# Włącz zaporę
netsh advfirewall set allprofiles state on

# Wyłącz zaporę
netsh advfirewall set allprofiles state off

# Wyświetl reguły zapory
netsh advfirewall firewall show rule name=all

# Wyświetl stan zapory
netsh advfirewall monitor show firewall

netsh firewall (przestarzałe)

# Wyświetl stan zapory
netsh firewall show state

netsh mbn (sieć szerokopasmowa)

netsh wfp

# Wyświetl stan zapory
netsh wfp show state

# Wyświetl filtry zapory
netsh wfp show filters