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

Add blocking via NFQUEUE #7

Closed
ckcr4lyf opened this issue Mar 27, 2023 · 1 comment · Fixed by #9
Closed

Add blocking via NFQUEUE #7

ckcr4lyf opened this issue Mar 27, 2023 · 1 comment · Fixed by #9

Comments

@ckcr4lyf
Copy link
Owner

The netfilter project introduced libfilter_nfqueue allowing userspace applications to make decisions on accepting or dropping packets (including modifying them).

Currently, sni-log just captures packets via libpcap. However, it is possible to also pass packets to it if it subscribes to a NFQUEUE, and then it can make decisions based on the domain (after parsing the SNI)

A good rust PoC is here: https://github.com/chifflier/nfqueue-rs/blob/master/examples/nfq-example.rs (note: running the example requires upgraded dependencies, or this PR to me merged: chifflier/nfqueue-rs#20)

This application could then be configured to block certain domains via SNI , through a flag of some sort. (As opposed to just logging them)

@ckcr4lyf
Copy link
Owner Author

Note: This would probably not work on Mac, and almost certainly not on Windows.

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

Successfully merging a pull request may close this issue.

1 participant