Firewall: firewall.exe

The firewall.exe utility serves to manage Windows Firewall. The Firewall configuration file winfw.conf.xml is located in %plesk_bin% directory.

Location

%plesk_cli%

 

Usage

firewall.exe <command> [<option> <param>]

 

Example

The following command enables default Firewall rules for the network interface "vznet0" from the Firewall configuration file:

>firewall.exe --set -interface "vznet0"

 

Commands

Command

Parameter

Description

Example

--enable or -e

 

Enables Firewall.

>firewall.exe --enable

--disable or -d

 

Disables Firewall.

>firewall.exe --disable

--set or -s

 

Enables default firewall rules for the specified network interface from the Firewall configuration file.

Requires -interface option.

See Example above.

--help or -h

 

Displays help on the use of the utility.

>firewall.exe --help

 

Options

Option

Parameter

Description

Example

-interface or -i

<string>

Specifies network interface.

Required with --set.

See Example above.