Configure Windows XP firewall in the command line

Source: Internet
Author: User
Command: netsh Firewall

Parameters:

? // Display the command list

Add // Add Firewall Configuration

Delete // delete firewall configuration

Dump // display a configuration script

Help // display the command list

Reset // reset the firewall configuration to the default value.

Set // configure the firewall

Show // display firewall configurations

Add allowedprogram // Add the program configurations allowed by the firewall.

Add portopening // Add firewall port configuration

Delete allowedprogram // Delete the program configurations allowed by the firewall

Delete portopening // Delete the firewall port configuration

Set allowedprogram // set the program configurations allowed by the firewall

Set icmpsetting // set the firewall ICMP Configuration

Set logging // Set firewall record Configuration

Set multicastbroadcastresponse // set the firewall multicast/broadcast response Configuration

Set notifications // Configure Firewall notifications

Set opmode // Set firewall operation configuration

Set portopening // Set firewall port configuration

Set service // Set firewall service configuration

Show allowedprogram // display the program configurations allowed by the firewall

Show config // display firewall configurations.

Show currentprofile // display the current firewall configuration file

Show icmpsetting // display firewall ICMP configurations

Show logging // display firewall record Configuration
Show notifications // display firewall operation configurations

Show opmode // display firewall port configurations

Show portopening // display firewall port configurations

Show service // display Firewall Service configurations

Show state // display the current Firewall Status

For example:

Command: netsh firewall show allowedprogram // view the program permitted by the firewall

Netsh firewall set portopening TCP 445 enable // open port 445

Netsh firewall set portopening TCP 3389 enable // needless to say, release the terminal ..

Netsh firewall Delete allowedprogram C:/a.exe // The Delete row program a.exe

Netsh firewall set allowedprogram C:/a.exe A enable // a.exe under program C and release

Netsh Firewall add allowedprogram C:/a.exe A enable // a.exe under program C and release

Set allowedprogram and add allowedprogram both have the same effect. C:/a.exe is the program name displayed in the firewall in program path, someone with ulterior motives can use a confusing name .. Haha .. Try other commands ..

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.