Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat packet according to its size #70

Open
mpastor opened this issue Apr 3, 2020 · 1 comment
Open

Treat packet according to its size #70

mpastor opened this issue Apr 3, 2020 · 1 comment
Assignees

Comments

@mpastor
Copy link

mpastor commented Apr 3, 2020

Hi, is it possible to pass/block packet according to its size? I need to block outgoing UDP/123 (NTP) packets bigger than 128B to disable DDoS amplification. There is nothing about it in doc.
Thanks.

@rmind rmind self-assigned this Apr 8, 2020
@rmind
Copy link
Owner

rmind commented Apr 29, 2020

@mpastor: NPF already supports this using the pcap-filter i.e. the tcpdump syntax, e.g.:

block in final pcap-filter "greater 128"

See npf.conf(5) and pcap-filter(7) man pages. However, I think I will add more options to filter based on some IP header values using the native syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants