package
0.0.0-20250130204033-e82d90384e5b
Repository: https://github.com/laurentgoderre/moby.git
Documentation: pkg.go.dev

# Functions

AddInterfaceFirewalld adds the interface to the trusted zone.
DeleteConntrackEntries deletes all the conntrack connections on the host for the specified IP Returns the number of flows deleted for IPv4, IPv6 else error.
No description provided by the author
DelInterfaceFirewalld removes the interface from the trusted zone It is a no-op if firewalld is not running.
GetIptable returns an instance of IPTable with specified version ([IPv4] or [IPv6]).
OnReloaded add callback.

# Constants

Accept is the default iptables ACCEPT policy.
Append appends the rule at the end of the chain.
Delete deletes the rule from the chain.
Drop is the default iptables DROP policy.
Filter table is used for filter rules.
Insert inserts the rule at the top of the chain.
IPv4 is version 4.
IPv6 is version 6.
Mangle table is used for mangling the packet.
Nat table is used for nat translation rules.
Raw table is used for filtering packets before they are NATed.

# Structs

ChainError is returned to represent errors during ip table operation.
ChainInfo defines the iptables chain.
Conn is a connection to firewalld dbus endpoint.
IPTable defines struct with [IPVersion].
No description provided by the author

# Type aliases

Action signifies the iptable action.
IPVersion refers to IP version, v4 or v6.
Policy is the default iptable policies.
Table refers to Nat, Filter or Mangle.