Module ruleset

Source

Structsยง

DNSRule
Represents a DNS rule
IPV4Rule
Represents an Ipv4 rule
IPV6Rule
Represents an Ipv6 rule
RuleExpr ๐Ÿ”’
Ruleset
Represents a ruleset that can be used to specify a whitelist and a blacklist in order to control the inbound and outbound traffic of a network.
RulesetSegment ๐Ÿ”’

Enumsยง

Direction
Represents the direction of the network traffic
DomainSpec
Specification of a domain
IPV4Spec
Specification of an Ipv4
IPV6Spec
Specification of an Ipv6 address
PortSpec
Specification of a port rule
Rule
Represents all supported rules
RuleAction ๐Ÿ”’
RuleParseError
Represents the errors that could happen during parsing the ruleset
RuleType ๐Ÿ”’

Functionsยง

parse_as_list ๐Ÿ”’
parse_dns_rule ๐Ÿ”’
parse_enclosed ๐Ÿ”’
parse_ipv4_rule ๐Ÿ”’
parse_ipv6_rule ๐Ÿ”’
parse_ruleset_segments ๐Ÿ”’