Struct dfw::iptables::IPTablesLogger[][src]

pub struct IPTablesLogger { /* fields omitted */ }

IPTables implementation which does not interact with the iptables binary and does not modify the rules active on the host. It does keep a log of every action executed.

Methods

impl IPTablesLogger
[src]

Create a new instance of IPTablesLogger

Get the collected logs.

Trait Implementations

impl Default for IPTablesLogger
[src]

Returns the "default value" for a type. Read more

impl IPTables for IPTablesLogger
[src]

Get the default policy for a table/chain.

Set the default policy for a table/chain.

Checks for the existence of the rule in the table/chain. Returns true if the rule exists. Read more

Checks for the existence of the chain in the table. Returns true if the chain exists. Read more

Inserts rule in the position to the table/chain. Returns true if the rule is inserted. Read more

Inserts rule in the position to the table/chain if it does not exist. Returns true if the rule is inserted. Read more

Replaces rule in the position to the table/chain. Returns true if the rule is replaced. Read more

Appends rule to the table/chain. Returns true if the rule is appended. Read more

Appends rule to the table/chain if it does not exist. Returns true if the rule is appended. Read more

Appends or replaces rule to the table/chain if it does not exist. Returns true if the rule is appended or replaced. Read more

Deletes rule from the table/chain. Returns true if the rule is deleted. Read more

Deletes all repetition of the rule from the table/chain. Returns true if the rules are deleted. Read more

Lists rules in the table/chain.

Lists rules in the table.

Lists the name of each chain in the table.

Creates a new user-defined chain. Returns true if the chain is created. Read more

Flushes (deletes all rules) a chain. Returns true if the chain is flushed. Read more

Renames a chain in the table. Returns true if the chain is renamed. Read more

Deletes a user-defined chain in the table. Returns true if the chain is deleted. Read more

Flushes all chains in a table. Returns true if the chains are flushed. Read more

Commit the changes queued. Only has an effect on some implementations Read more

Executes a given command on the chain. Returns the command output if successful. Read more

Auto Trait Implementations