OS Manuals

/usr/bin/ebtables-nft

iptables with cap_net_raw and cap_net_admin capabilities set for xtables

From iptables-xtables-privileged 1.8.13-r5 (os), captured 2026-11-05 by running ebtables-nft --help (exit 0). permalink

ebtables 1.8.13 (nf_tables)
Usage:
ebtables -[ADI] chain rule-specification [options]
ebtables -P chain target
ebtables -[LFZ] [chain]
ebtables -[NX] [chain]
ebtables -E old-chain-name new-chain-name

Commands:
--append -A chain             : append to chain
--delete -D chain             : delete matching rule from chain
--delete -D chain rulenum     : delete rule at position rulenum from chain
--change-counters -C chain
          [rulenum] pcnt bcnt : change counters of existing rule
--insert -I chain rulenum     : insert rule at position rulenum in chain
--list   -L [chain]           : list the rules in a chain or in all chains
--flush  -F [chain]           : delete all rules in chain or in all chains
--init-table                  : replace the kernel table with the initial table
--zero   -Z [chain]           : put counters on zero in chain or in all chains
--policy -P chain target      : change policy on chain to target
--new-chain -N chain          : create a user defined chain
--rename-chain -E old new     : rename a chain
--delete-chain -X [chain]     : delete a user defined chain
Options:
[!] --proto  -p proto         : protocol hexadecimal, by name or LENGTH
[!] --src    -s address[/mask]: source mac address
[!] --dst    -d address[/mask]: destination mac address
[!] --in-if  -i name[+]       : network input interface name
[!] --out-if -o name[+]       : network output interface name
[!] --logical-in  name[+]     : logical bridge input interface name
[!] --logical-out name[+]     : logical bridge output interface name
--set-counters -c chain
          pcnt bcnt           : set the counters of the to be added rule
--modprobe -M program         : try to insert modules using this program
--concurrent                  : use a file lock to support concurrent scripts
--verbose -v                  : verbose mode
--version -V                  : print package version

Environment variable:
Options (48)
OptionDescriptionSource
--append, -A -AAppend a rule to the end of the selected chain.help + man
--delete, -D -DDelete the specified rule or rules from the selected chain.help + man
--insert, -I -IInsert the specified rule into the selected chain at the specified rule number.help + man
--list, -L-L [chain] : list the rules in a chain or in all chainshelp + man
--flush, -F-F [chain] : delete all rules in chain or in all chainshelp + man
--init-tableReplace the current table data by the initial table data.help + man
--zero, -Z-Z [chain] : put counters on zero in chain or in all chainshelp + man
--policy, -P -PSet the policy for the chain to the given target.help + man
--new-chain, -N -NCreate a new user-defined chain with the given name.help + man
--rename-chain, -E -ERename the specified chain to a new name.help + man
--delete-chain, -X -XDelete the specified user-defined chain.help + man
--modprobe, -M -MWhen talking to the kernel, use this program to try to automatically load missing kernel modules.help + man
--concurrentThis would use a file lock to support concurrent scripts updating the ebtables kernel tables.help + man
--verbose, -v -v: verbose modehelp + man
--version, -V -VShow the version of the ebtables userspace program.help + man
-C, --change-countersChange the counters of the specified rule or rules from the selected chain. (in the manual page but not in --help)man
-j, --jump targetThe target of the rule. (in the manual page but not in --help)man
-c, --set-counter pcntIf used with -A or -I, then the packet and byte counters of the new rule will be set to pcnt, resp. (in the manual page but not in --help)man
--limit valueMaximum average matching rate: specified as a number, with an optional /second, /minute, /hour, or /day suffix; (in the manual page but not in --help)man
--logLog with the default logging options: log-level= info, log-prefix="", no ip logging, no arp logging. (in the manual page but not in --help)man
--log-level levelDefines the logging level. (in the manual page but not in --help)man
--log-prefix textDefines the prefix text to be printed at the beginning of the line with the logging information. (in the manual page but not in --help)man
--log-ipWill log the ip information when a frame made by the ip protocol matches the rule. (in the manual page but not in --help)man
--log-ip6Will log the ipv6 information when a frame made by the ipv6 protocol matches the rule. (in the manual page but not in --help)man
--log-arpWill log the (r)arp information when a frame made by the (r)arp protocols matches the rule. (in the manual page but not in --help)man
--nflogLog with the default logging options (in the manual page but not in --help)man
--nflog-group nlgroupThe netlink group (1–2^32-1) to which packets are (only applicable for nfnetlink_log). (in the manual page but not in --help)man
--nflog-prefix prefixA prefix string to include in the log message, up to 30 characters long, useful for distinguishing messages in the logs. (in the manual page but not in --help)man
--nflog-range sizeThe number of bytes to be copied to userspace (only applicable for nfnetlink_log). (in the manual page but not in --help)man
--nflog-threshold sizeNumber of packets to queue inside the kernel before sending them to userspace (only applicable for nfnetlink_log). (in the manual page but not in --help)man
--ulogUse the default settings: ulog-prefix="", ulog-nlgroup=1, ulog-cprange=4096, ulog-qthreshold=1. (in the manual page but not in --help)man
--ulog-prefix textDefines the prefix included with the packets sent to userspace. (in the manual page but not in --help)man
--ulog-nlgroup groupDefines which netlink group number to use (a number from 1 to 32). (in the manual page but not in --help)man
--ulog-cprange rangeDefines the maximum copy range to userspace, for packets matching the rule. (in the manual page but not in --help)man
--ulog-qthreshold thresholdQueue at most threshold number of packets before sending them to userspace with a netlink socket. (in the manual page but not in --help)man
--arpreply-mac addressSpecifies the MAC address to reply with: the Ethernet source MAC and the ARP payload source MAC will be filled in with this address. (in the manual page but not in --help)man
--arpreply-target targetSpecifies the standard target. (in the manual page but not in --help)man
--to-destination addressChange the destination MAC address to the specified address. (in the manual page but not in --help)man
--dnat-target targetSpecifies the standard target. (in the manual page but not in --help)man
--mark-set valueMark the frame with the specified non-negative value. (in the manual page but not in --help)man
--mark-or valueOr the frame with the specified non-negative value. (in the manual page but not in --help)man
--mark-and valueAnd the frame with the specified non-negative value. (in the manual page but not in --help)man
--mark-xor valueXor the frame with the specified non-negative value. (in the manual page but not in --help)man
--mark-target targetSpecifies the standard target. (in the manual page but not in --help)man
--redirect-target targetSpecifies the standard target. (in the manual page but not in --help)man
--to-source addressChanges the source MAC address to the specified address. (in the manual page but not in --help)man
--snat-target targetSpecifies the standard target. (in the manual page but not in --help)man
--snat-arpAlso change the hardware source address inside the arp header if the packet is an arp message and the hardware address length in the arp header is 6 bytes. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.