arptables
Manage ARP packet filtering rules.
TLDR
SYNOPSIS
arptables [OPTIONS] chain rule-specification
DESCRIPTION
arptables manages ARP (Address Resolution Protocol) packet filtering rules. It is similar to iptables but operates at the ARP level, allowing control over which ARP requests and replies are accepted or dropped.
PARAMETERS
-L, --list
List all rules in selected chain or all chains-A, --append
Append rule to the end of chain-I, --insert chain [rulenum]
Insert rule at the given position (default: top of chain)-R, --replace chain rulenum
Replace an existing rule by number-D, --delete
Delete matching rule or rule by number-F, --flush
Flush all rules-Z, --zero
Zero packet and byte counters in a chain-P, --policy
Set default policy for a chain-N, --new-chain name
Create a new user-defined chain-X, --delete-chain [name]
Delete a user-defined chain-s, --source-ip address
Match source IP address-d, --destination-ip address
Match destination IP address--source-mac address
Match source MAC address--destination-mac address
Match destination MAC address-i, --in-interface name
Match the input interface (INPUT, FORWARD)-o, --out-interface name
Match the output interface (OUTPUT, FORWARD)--opcode code
Match the ARP opcode (e.g., Request, Reply)-j, --jump target
Target for rule (ACCEPT, DROP, etc.)
INSTALL
CAVEATS
Requires root privileges. Uses the nftables backend on modern systems. The nft-based arptables provides only the INPUT and OUTPUT chains; the FORWARD chain exists only in the legacy implementation. ARP filtering operates at the layer 2/3 boundary and may affect network connectivity if misconfigured. Use arptables-save and arptables-restore to persist and reload rule sets.
HISTORY
arptables is part of the xtables-nft suite, providing ARP packet filtering integrated with the netfilter framework.
