Definition of a 'Rule' used to handle network traffic.
std::string interpretRuleWithProtocol(Rule rule, const std::string &protocol)
Interprets a rule with protocol information to iptables applicable string.
std::string interpretRule(Rule rule)
Interprets a rule to iptables applicable string.
bool applyRules()
Applies all rules to iptables.
std::string interpretPolicy(void)
This function Interprets defaultTarget rule to iptables applicable policy string. ...
std::string toString()
Creates a string with information about the entry.
container for port filtering options.
A rules entry for the treatment of packets.