Documentation ¶
Rendered for windows/amd64
Index ¶
- type Client
- func (c *Client) AddRuleAllowIP(name string, direction FWRuleDirection, ipNet *net.IPNet) error
- func (c *Client) AddRuleBlockIP(name string, direction FWRuleDirection, ipNet *net.IPNet) error
- func (c *Client) DelAllFirewallRules() error
- func (c *Client) DelFirewallRuleByName(name string) error
- func (c *Client) FirewallRuleExists(name string) (bool, error)
- type FWRuleDirection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { }
func (*Client) AddRuleAllowIP ¶
AddRuleAllowIP adds Windows firewall rule to accept IP packets
func (*Client) AddRuleBlockIP ¶
AddRuleBlockIP adds Windows firewall rule to block IP packets
func (*Client) DelAllFirewallRules ¶
func (*Client) DelFirewallRuleByName ¶
type FWRuleDirection ¶
type FWRuleDirection string
const ( FWRuleIn FWRuleDirection = "Inbound" FWRuleOut FWRuleDirection = "Outbound" )
Click to show internal directories.
Click to hide internal directories.