FIREWALL.EXE
FIREWALL.EXE is a free command line program that adds exceptions to the Windows Firewall.
Parameters:
Switches:
Usage
FIREWALL [/aa] [/ad] [/nologo] [/pa] [/pd] [/q] [/s] [/udp] app/port [name]
Parameters:
app/port | The filepath to the application's executable, or the port number. |
name | Name of the application as it appears in the firewall manager. |
Switches:
/aa | Add an application exception. |
/ad | Discard an application exception. |
/pa | Add an port exception. |
/pd | Discard a port exception. |
/nologo | Don't display the program banner. |
/s | Report the firewall's status. |
/q | Suppress all output. |
/udp | For port exceptions, allow the UDP protocol instead of TCP. |
Example, adding an application exception
firewall /aa c:\work\foo.exe "Acme Utility"
Example, discarding an application exception
firewall /ad c:\work\foo.exe
Example, adding a port exception
firewall /pa 14337 "Acme Utility"
Example, discarding a port exception
firewall /pd 14337
Notes
- firewall.exe must have admin rights to manipulate the firewall.
- This utility does not work with other firewalls, only the one built into Windows.
Download
Click the button below to download version 2.0 of FIREWALL.EXE, released October 24th, 2016.