xdp-filter
Load and manage an eBPF XDP packet filter. Part of the xdp-tools collection. More information: https://github.com/xdp-project/xdp-tools/tree/main/xdp-filter#running-xdp-filter.
- Load the filter on an interface in skb (generic) mode with default allow policy:
sudo xdp-filter load allow skb
- Unload the filter from an interface:
sudo xdp-filter unload
- Deny traffic to a specific destination port:
sudo xdp-filter port
- Deny traffic from a specific source IP address:
sudo xdp-filter ip src
- Deny traffic from a specific source MAC address:
sudo xdp-filter ether src
- Poll packets and show statistics every 10000 milliseconds:
sudo xdp-filter poll 10000
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
