xdp-filter
Load and manage an eBPF XDP packet filter. tldr-pages
On Linux
Linux
Load and manage an eBPF XDP packet filter. Part of the xdp-tools collection.
Load the filter on an interface in skb (generic) mode with default allow policy
sudo xdp-filter load --policy allow --mode skb network_interfaceIdentifyUnload the filter from an interface
sudo xdp-filter unload network_interfaceIdentifyDeny traffic to a specific destination port
sudo xdp-filter port destination_portIdentifyDeny traffic from a specific source IP address
sudo xdp-filter ip --mode src source_ipIdentifyDeny traffic from a specific source MAC address
sudo xdp-filter ether --mode src mac_addressIdentifyPoll packets and show statistics every 10000 milliseconds
sudo xdp-filter poll --interval 10000Identify