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

Overview

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
You might also like...

Wordle and Termooo style classic word guessing game for the command line. One new word per day!

Wordle and Termooo style classic word guessing game for the command line. One new word per day!

Wordle and Termooo style classic word guessing game for the command line. One new word per day!

Nov 27, 2022

SFDX Plugin to set Email Deliverability Access Level for an org easily and quickly via command line interface

SFDX Plugin to set Email Deliverability Access Level for an org easily and quickly via command line interface

Dec 16, 2022

A project for FAST command line interface tools.

FAST CLI Project This is the FAST CLI project, containing the FAST CLI package and other related CLI packages for FAST project creation and management

Dec 5, 2022

A command line interface for programmatically creating data silos on app.transcend.io

Table of Contents Overview Installation Authentication transcend.yml Usage tr-pull tr-push CI Integration Dynamic Variables tr-scan Overview A command

Dec 13, 2022

Autify Command Line Interface (CLI)

Autify Command Line Interface (CLI) Autify CLI can help your integration with Autify! Autify Command Line Interface (CLI) Usage Commands Usage Note: n

Jan 2, 2023

The command-line interface for versum

@versumstudios/cli The command-line interface for versum. versum-cli Usage Contributing How to use Export Templates Usage To install the latest versio

Nov 3, 2022

Open the GitHub page of the given or current directory repo

gh-home Open the GitHub page of the given or current directory repo It will attempt to open the upstream repo if there is one or the forked repo. Inst

Dec 17, 2022

Run a command when a certain file exists, and/or watch files to rerun on changes

Run a command when a certain file exists, and/or watch files to rerun on changes

Sep 23, 2022
Owner
raymond wang
professional scratch coder
raymond wang
Generate a Node.js command line tool from an OpenAPI definition

OpenAPI Commander Generate a Node.js command line tool from an OpenAPI definition using the commander library. Example usage Usage: Subcommands groupe

Barry Coughlan 12 Jan 3, 2023
LinkFree CLI is a command line tool that helps you to create your LinkFree profile through CLI.

LinkFree CLI LinkFree CLI is a command line tool that helps you to create your LinkFree profile through CLI. Demo Using the CLI (Commands) Note First

Pradumna Saraf 32 Dec 26, 2022
a simple zero-configuration command-line http server

http-server: a command-line http server http-server is a simple, zero-configuration command-line http server. It is powerful enough for production usa

http ... PARTY! 12.4k Jan 4, 2023
Control the macOS dark mode from the command-line

dark-mode Control the macOS dark mode from the command-line Requires macOS 10.10 or later. macOS 10.13 or earlier needs to download the Swift runtime

Sindre Sorhus 630 Dec 30, 2022
node.js command-line interfaces made easy

Commander.js The complete solution for node.js command-line interfaces. Read this in other languages: English | 简体中文 Commander.js Installation Declari

TJ Holowaychuk 24k Jan 8, 2023
🌈 React for interactive command-line apps

React for CLIs. Build and test your CLI output using components. Ink provides the same component-based UI building experience that React offers in the

Vadim Demedes 19.7k Jan 9, 2023
Pretty unicode tables for the command line

cli-table3 This utility allows you to render unicode-aided tables on the command line from your node.js scripts. cli-table3 is based on (and api compa

null 418 Dec 28, 2022
Control the Plash app from the command-line

plash-cli Control the Plash app from the command-line Install $ npm install --global plash Requires Node.js 14 or later. Requires Plash 2.3.0 or late

Sindre Sorhus 33 Dec 30, 2022
A C++ based command-line (CLI) program that lets you manage your tasks

COMMAND LINE INTERFACE TODO APP a command-line (CLI) program that lets you manage your tasks. The specification for this project is written down as te

Rahul Prabhakar 1 Dec 25, 2021
Close chrome tabs from command-line (macOS only)

Close-tab Read all tabs from an activated window of the chrome, open with vi prompt, you can close tabs by deleting lines. Istallation npm install -g

Karl Saehun Chung 8 Jun 18, 2022