Releases: caesarshift/msfw
Releases · caesarshift/msfw
v0.3
Bug fix: could not disable firewall on a profile
Bug fix: Defer to user rule could crash msfw
Feature: Ability to add multiple profiles in addrule
Feature: Ability to list duplicate rules
Feature: Ability to list rule that differ only by profile
Feature: Prompt before deleting multiple rules (override with -f) in delrule
v0.2
> msfw -h
status Display firewall status.
interface Display included/excluded network interfaces.
log Display firewall log.
rule Display firewall rules.
addrule Add firewall rules.
delrule Delete firewall rules.
updinterface Update included/excluded interfaces.
updlog Enable/Disable firewall log.
updstatus Change firewall status.
> msfw status -h
-p, --profile (Default: ) Firewall profile.
-i, --interface (Default: False) List status by interface
> msfw interface -h
-n, --interfacename (Default: ) Interface Name
> msfw rule -h
-l, --list (Default: False) List out rules
-c, --count (Default: False) Count rules
--scope (Default: ) Include local and/or group policy rules
--shortapp (Default: False) Display executable name only in log output
--string (Default: False) Display rule as a string
-p, --profile (Default: ) Firewall profile.
-n, --rulename (Default: ) Rule Name
--dir (Default: ) Rule Direction [in, out]
--status (Default: enabled) Rule Status [enabled,disabled,all]
--action (Default: ) Rule Action [allow, block]
--local (Default: System.String[]) Rule Local Address and Ports
--remote (Default: System.String[]) Rule Remote Address and Ports
--protocol (Default: ) Rule Protocol
--app (Default: ) Rule Application or Service
--ext (Default: ) Rule Extended attributes
$ msfw log -h
-s, --status (Default: False) Display Status
-l, --list (Default: False) Display Blocked Connections
-t, --tail (Default: False) Tail Blocked Connections events
--since (Default: ) Filter by time since datetime string
--last (Default: ) Filter by time in last seconds, minutes, or hours
--shortapp (Default: False) Display executable name only in log output
> msfw addrule -h
-p, --profile (Default: ) Firewall profile.
-n, --rulename (Default: ) Rule Name. REQUIRED.
--action (Default: ) Rule Action [allow, block]. REQUIRED.
--app (Default: ) Rule Application or Service
--dir (Default: ) Rule Direction [in, out]. REQUIRED.
--local (Default: System.String[]) Rule Local Address and Ports
--protocol (Default: ) Rule Protocol
--remote (Default: System.String[]) Rule Remote Address and Ports
--status (Default: enabled) Rule Status [enabled,disabled,all]
--scope (Default: ) Include local and/or group policy rules
$ msfw delrule -h
-n, --rulename (Default: ) Rule Name
--alllocaldisabled (Default: False) Delete all local disabled rules
> msfw updinterface -h
-p, --profile (Default: ) Firewall profile.
-n, --interfacename (Default: ) Interface Name
-e, --exclude (Default: False) Exclude this interface
-i, --include (Default: False) Include this interface
$ msfw updlog -h
-e, --enable (Default: False) Enable log
-d, --disable (Default: False) Disable log
> msfw updstatus -h
-p, --profile (Default: ) Firewall profile.
-s, --status (Default: ) TODO: Enabled/Disable Firewall [enable,disable]
-i, --inbound (Default: ) Set default inbound action [allow,block]
-o, --outbound (Default: ) Set default outbound action [allow,block]
v0.1 - Initial Release
> msfw
status Display firewall status.
rule Display firewall rules.
log Display firewall log.
> msfw status -h
-p, --profile (Default: ) Firewall profile.
> msfw rule -h
-l, --list (Default: False) List out rules
-c, --count (Default: False) Count rules
-p, --profile (Default: ) Firewall profile.
-n, --rulename (Default: ) Rule Name
--action (Default: ) Rule Action [allow, block]
--app (Default: ) Rule Application or Service
--dir (Default: ) Rule Direction [in, out]
--local (Default: System.String[]) Rule Local Address and Ports
--protocol (Default: ) Rule Protocol
--remote (Default: System.String[]) Rule Remote Address and Ports
--status (Default: enabled) Rule Status [enabled,disabled,all]
--scope (Default: ) Include local and/or group policy rules
> msfw log -h
-e, --enable (Default: False) Enable log
-d, --disable (Default: False) Disable log
-s, --status (Default: False) Display Status
-l, --list (Default: False) Display Blocked Connections
--since (Default: ) Filter by time since datetime string
--last (Default: ) Filter by time in last seconds, minutes, or
hours
--shortapp (Default: False) Display executable name only in log output