package
0.0.0-20241112080837-97b903613cec
Repository: https://github.com/deepin-community/docker.io.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.
Passthrough method simply passes args through to iptables/ip6tables.

# 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.
IP6Tables point to ipv6 table.
Iptables point ipv4 table.
IPv4 is version 4.
IPv6 is version 6.
Mangle table is used for mangling the packet.
Nat table is used for nat translation rules.

# 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].

# Type aliases

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