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

Blacklist/whitelist feature #19

Open
ValdikSS opened this issue Mar 15, 2018 · 4 comments
Open

Blacklist/whitelist feature #19

ValdikSS opened this issue Mar 15, 2018 · 4 comments

Comments

@ValdikSS
Copy link

ReQrypt is mostly used for only certain (blocked) websites, but current version does not support blacklists or whitelists. Implementing black/whitelists feature would reduce server's bandwidth usage and would not affect non-blocked websites' speed.

HTTP websites should be detected by parsing host header. HTTPS SNI detection code could be grabbed from sniproxy project: https://github.com/dlundquist/sniproxy/blob/master/src/tls.c

@basil00
Copy link
Owner

basil00 commented Mar 16, 2018

This is a feature I also want.

However, it is not so simple to implement. The problem is the SYN and ACKs should also be excluded, and these packets come before any packet with the domain name. Also, parsing the domain name at the packet level is problematic, since it can be split over multiple packets, as you are aware.

Probably the correct way to implement this is to sniff DNS to find the IP addresses corresponding to white/blacklisted domains, then filter based on the IP address.

I may add this feature eventually. Currently I am working on modernizing the crypt encoding.

@ValdikSS
Copy link
Author

You can set fixed low split value like 1 or 2 to be able to handle the packet without first byte(s). This is a hack, but it works.

@ValdikSS
Copy link
Author

IP-based black/white lists are fine for the first time too.

@basil00
Copy link
Owner

basil00 commented Mar 20, 2018

Yes, I agree that an IP blacklist/whitelist feature is a good idea initially.

I may take a while for new features to be implemented though.

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