1.0.17 • Published 3 years ago

fwg v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

fwg

A Windows command line tool to block outbound connections for files within a directory.

fwg utilizes the power of PowerShell and Windows Network Shell to bulk create firewall rules for a specified folder and targeted files.

Features

  • Bulk generate firewall rules for executables
  • Target specific files with wildcard support
  • Remove generated firewall rules

Installation

To use fwg in the terminal, install with the -g option

npm install -g fwg

Unauthorized Access Error

If Powershell scripts are disabled on the system, running fwg may invoke an UnauthorizedAccess error. To modify the execution policy, run in PowerShell

Set-ExecutionPolicy -ExecutionPolicy Bypass

To reset the execution policy, run in PowerShell

Set-ExecutionPolicy -ExecutionPolicy Default

Usage

Command must be run with administrator privileges!

fwg TARGET-DIRECTORY [-l -r] FILE-TARGETS...

*.exe executables are selected by default. User-provided file targets will override this selector.

Options

Options must be typed separately

-r

      Remove generated firewall rules (if exists)

-l

      Saves output to a new log file in %INSTALLATION_DIRECTORY%/logs/

Examples

This command would block all outbound connections from executables and installers within the user's downloads folder and generate a log file.

fwg ~/Downloads -l *.exe *.msi *.msp

fwg also works with relative paths. This command will run fwg in the current directory of the console and block executables (set by default).

fwg ./

This command will remove generated firewall rules for any executable matching the pattern *Launcher.exe in the user's Documents folder.

fwg ~/Documents -r *Launcher.exe
1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago