-
Notifications
You must be signed in to change notification settings - Fork 108
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
Hooks on DNS resolution #25
Comments
I think for ease of use and security, webhooks would be a good solution for something like this, and would allow for users to respond to grimd events locally or remotely without much hassle. You could create a small web-server with your iptables altering application and point grimd at it, and it would send data to specified endpoints on dns events. Would this work for what you need? |
@looterz @rande it would be better to use ipset compared to raw iptables.
@rande now after reading the issue more then 5 time I am thinking that maybe I didn't understood the idea. |
Just wanted to reference the Note that it's been integrated into |
I would like to add a way to add iptables rules based on DNS query. This can be usefull if the DNS server is on the gateway with different outbound interfaces.
This can be done by calling an external program when the resolution is done (can be called once before the cache is set). It will required to have a script to be called on start, so it will be possible to clean the state (iptables).
The text was updated successfully, but these errors were encountered: