Strona główna > FireWall > Using Netsh with Windows XP And Windows 2003 Firewall

Using Netsh with Windows XP And Windows 2003 Firewall

Enable/Disable Windows firewall using command line


C:\Documents and Settings\metasploit\netsh firewall set opmode

The syntax supplied for this command is not valid. Check help for the correct syntax.

set opmode

[ mode = ] ENABLE|DISABLE

[ [ exceptions = ] ENABLE|DISABLE

[ profile = ] CURRENT|DOMAIN|STANDARD|ALL

[ interface = ] name ]

Sets firewall operational configuration.

Parameters:

mode - Operational mode.

ENABLE  - Enable firewall.

DISABLE - Disable firewall.

exceptions - Exception mode (optional).

ENABLE  - Allow through firewall (default).

DISABLE - Do not allow through firewall.

profile - Configuration profile (optional).

CURRENT  - Current profile (default).

DOMAIN   - Domain profile.

STANDARD - Standard profile.

ALL      - All profiles.

interface - Interface name (optional).

Remarks: 'profile' and 'interface' may not be specified together.'exceptions' and 'interface' may not be specified together.

Examples:
set opmode ENABLE
set opmode ENABLE DISABLE
set opmode mode = ENABLE
set opmode mode = ENABLE exceptions = DISABLE

C:\Documents and Settings\metasploit>

Enable the Firewall:


C:\Documents and Settings\metasploit\netsh firewall set opmode enable

Ok.

C:\Documents and Settings\metasploit\netsh firewall show opmode

Domain profile configuration:

-------------------------------------------------------------------

Operational mode                  = Enable

Exception mode                    = Enable

Standard profile configuration (current):

-------------------------------------------------------------------

Operational mode                  = Enable

Exception mode                    = Enable

Local Area Connection firewall configuration:

-------------------------------------------------------------------

Operational mode                  = Enable

Strony: 1 2 3

Kategorie:FireWall
  1. 24 czerwca, 2012 o 3:15 am

    Hello there, I discovered your blog via Google whilst searching
    for a similar matter, your website came up, it seems to be great.
    I’ve bookmarked it in my google bookmarks.
    Hello there, just was alert to your blog through Google, and located that it is really informative. I am going to be careful for brussels. I will be grateful if you proceed this in future. Many folks will likely be benefited out of your writing. Cheers!

  1. No trackbacks yet.

Skomentuj

Wprowadź swoje dane lub kliknij jedną z tych ikon, aby się zalogować:

Logo WordPress.com

Komentujesz korzystając z konta WordPress.com. Wyloguj /  Zmień )

Zdjęcie na Google

Komentujesz korzystając z konta Google. Wyloguj /  Zmień )

Zdjęcie z Twittera

Komentujesz korzystając z konta Twitter. Wyloguj /  Zmień )

Zdjęcie na Facebooku

Komentujesz korzystając z konta Facebook. Wyloguj /  Zmień )

Połączenie z %s

%d blogerów lubi to: