메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
GetArray ( string text, char separator ) : string[] |
Convert a string to an array.
|
|
GetFirewallRules ( ) : dynamic |
Get the current firewall rules.
|
public Apply ( IEnumerable |
||
restrictions | IEnumerable |
|
deleteAllOtherRules | bool | Delete all other rules which have been created before. |
리턴 | 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. |
리턴 | void |
public DeleteRules ( IEnumerable |
||
ruleNames | IEnumerable |
|
리턴 | void |
public DeleteRules ( List |
||
hostnameRestrictions | List |
|
리턴 | void |