arptables
linux
Manage ARP filtering rules using the `nftables` backend. Part of the `xtables-nft` suite for ARP packet filtering.
More info →Options (7)
-L, --listbooleanList all ARP rules in the filter table
Example:
sudo arptables {{[-L|--list]}}-A, --appendbooleanAppend a rule to drop ARP packets from a specific IP address
Example:
sudo arptables {{[-A|--append]}} INPUT {{[-s|--source-ip]}} {{192.168.0.1}} {{[-j|--jump]}} DROP-s, --source-ipbooleanAppend a rule to drop ARP packets from a specific IP address
Example:
sudo arptables {{[-A|--append]}} INPUT {{[-s|--source-ip]}} {{192.168.0.1}} {{[-j|--jump]}} DROP-j, --jumpbooleanAppend a rule to drop ARP packets from a specific IP address
Example:
sudo arptables {{[-A|--append]}} INPUT {{[-s|--source-ip]}} {{192.168.0.1}} {{[-j|--jump]}} DROP-D, --deletebooleanDelete a specific rule from the INPUT chain by its rule number
Example:
sudo arptables {{[-D|--delete]}} INPUT {{rule_number}}-F, --flushbooleanFlush all rules in the filter table
Example:
sudo arptables {{[-F|--flush]}}-P, --policybooleanSet the default policy of the OUTPUT chain to ACCEPT
Example:
sudo arptables {{[-P|--policy]}} OUTPUT ACCEPTExamples (6)
Append a rule to drop ARP packets from a specific IP address
Delete a specific rule from the INPUT chain by its rule number
Save the current ARP rules to a file
sudo arptables-save > path/to/filemade by @shridhargupta | data from tldr-pages