Method | Description | |
---|---|---|
AddRule ( |
Add a rule to the firewall.
|
|
Apply ( IEnumerable |
Apply IP Address restrictions to the firewall and remove all rules which were previously added.
|
|
ApplySettings ( string settings, bool deleteAllOtherRules = true ) : void |
Apply settings to the firewall and disable all other rules matching the same ports.
|
|
DeleteRules ( ) : void |
Delete rules which have been created before.
|
|
DeleteRules ( IEnumerable |
Delete rules.
|
|
DeleteRules ( List |
Delete rules.
|
|
DisableRules ( string localPort ) : void |
Disabled all rules related to a specific port.
|
|
IPAddressRestrictionManager ( ) : System |
Initialize the manager.
|
|
ResetDisabledRules ( ) : void |
Reset all disabled rules.
|
Method | Description | |
---|---|---|
GetArray ( string text, char separator ) : string[] |
Convert a string to an array.
|
|
GetFirewallRules ( ) : dynamic |
Get the current firewall rules.
|
public AddRule ( |
||
restriction | ||
return | void |
public Apply ( IEnumerable |
||
restrictions | IEnumerable |
|
deleteAllOtherRules | bool | Delete all other rules which have been created before. |
return | void |
public ApplySettings ( string settings, bool deleteAllOtherRules = true ) : void | ||
settings | string | 80=8.8.8.8,9.9.9.9;81=8.8.8.8 |
deleteAllOtherRules | bool | Delete all other rules which have been created before. |
return | void |
public DeleteRules ( IEnumerable |
||
ruleNames | IEnumerable |
|
return | void |
public DeleteRules ( List |
||
hostnameRestrictions | List |
|
return | void |
public DisableRules ( string localPort ) : void | ||
localPort | string | |
return | void |
public IPAddressRestrictionManager ( ) : System | ||
return | System |