Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadIPTables ¶
Types ¶
type PortRule ¶
func ParseIPTableRules ¶
ParseIPTableRules takes a slice of iptables rules as input and returns a slice of PortRule containing the parsed destination IP and port from the rules. When a rule has no -d flag, IP is empty (meaning the rule applies to all addresses).
Click to show internal directories.
Click to hide internal directories.