{"id":27003021,"url":"https://github.com/waymondrang/fwg","last_synced_at":"2026-05-05T07:31:44.122Z","repository":{"id":44451975,"uuid":"512124708","full_name":"waymondrang/fwg","owner":"waymondrang","description":"Windows command line tool to block outbound connections for files within a directory.","archived":false,"fork":false,"pushed_at":"2022-07-27T03:57:45.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T00:47:21.532Z","etag":null,"topics":["cli","firewall","powershell"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/fwg","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waymondrang.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security.md","support":null}},"created_at":"2022-07-09T07:40:14.000Z","updated_at":"2023-05-12T17:08:41.000Z","dependencies_parsed_at":"2022-09-06T17:20:29.257Z","dependency_job_id":null,"html_url":"https://github.com/waymondrang/fwg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/waymondrang/fwg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waymondrang%2Ffwg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waymondrang%2Ffwg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waymondrang%2Ffwg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waymondrang%2Ffwg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waymondrang","download_url":"https://codeload.github.com/waymondrang/fwg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waymondrang%2Ffwg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32640533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","firewall","powershell"],"created_at":"2025-04-04T05:15:00.426Z","updated_at":"2026-05-05T07:31:44.106Z","avatar_url":"https://github.com/waymondrang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fwg\n\nA Windows command line tool to block outbound connections for files within a directory.\n\nfwg utilizes the power of PowerShell and Windows Network Shell to bulk create firewall rules for a specified folder and targeted files.\n\n## Features\n\n- Bulk generate firewall rules for executables\n- Target specific files with wildcard support\n- Remove generated firewall rules\n\n## Installation\n\nTo use fwg in the terminal, install with the `-g` option\n\n```console\nnpm install -g fwg\n```\n\n#### Unauthorized Access Error\n\nIf Powershell scripts are disabled on the system, running fwg may invoke an UnauthorizedAccess error. To modify the execution policy, run in PowerShell\n\n```console\nSet-ExecutionPolicy -ExecutionPolicy Bypass\n```\n\nTo reset the execution policy, run in PowerShell\n\n```console\nSet-ExecutionPolicy -ExecutionPolicy Default\n```\n\n## Usage\n\n_Command must be run with administrator privileges!_\n\n```console\nfwg TARGET-DIRECTORY [-l -r] FILE-TARGETS...\n```\n\n`*.exe` executables are selected by default. User-provided file targets will override this selector.\n\n**Options**\n\n_Options must be typed separately_\n\n`-r`\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;Remove generated firewall rules (if exists)\n\n`-l`\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;Saves output to a new log file in `%INSTALLATION_DIRECTORY%/logs/`\n\n## Examples\n\nThis command would block all outbound connections from executables and installers within the user's downloads folder and generate a log file.\n\n```console\nfwg ~/Downloads -l *.exe *.msi *.msp\n```\n\nfwg also works with relative paths. This command will run fwg in the current directory of the console and block executables (set by default).\n\n```console\nfwg ./\n```\n\nThis command will remove generated firewall rules for any executable matching the pattern `*Launcher.exe` in the user's Documents folder.\n\n```console\nfwg ~/Documents -r *Launcher.exe\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaymondrang%2Ffwg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaymondrang%2Ffwg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaymondrang%2Ffwg/lists"}