-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
ipset feature support #1191
Comments
Could you please explain more about this feature? What it does, how do you use it in your case |
as same as the dnsmasq ipset feature. |
Isn't it the same as DNS rewrites settings in AdGuard Home? |
no |
From what I was able to figure out about dnsmasq's This would be very difficult for AGH to do, as it is currently unable to do quite a lot of things that such a feature would require; such as making some IP addresses redirect to other IP addresses (apart from very tedious manual use of "DNS Rewriting"), making changes to lists (other than "Custom filtering rules"), and auto-adding specific proxies/IPs to such domains. Since this is about redirecting IP addresses, this is also almost guaranteed to rule out conversions to the |
no need to rewrite ip, just add it into ipset is ok.that is the meaning of ipset feature. |
want to used adguardhome with another ,need use ipset model |
1 similar comment
want to used adguardhome with another ,need use ipset model |
https://raw.githubusercontent.com/googlehosts/hosts/master/hosts-files/hosts This hosts can help China users get the correct IP addresss. |
@uniartisan make sure that blocking mode is set to |
我想要adg完全替代dnsmasq。大佬应该懂得。能一个dns服务处理就不要来两个,哈哈哈哈 |
Yes , dnsmasq can be disabled if ADH support ipset |
This issue is so heavily upvoted so I am re-assigning it to v0.104 |
+1 |
Hey everyone, we need an example of the ipset configuration you all are using. |
Something like this
And it usually used like this |
Official dnsmasq doesn't support regex ipset values, but there are patches to enable it (https://github.com/lixingcong/dnsmasq-regex). Do you need regex support in AGH (e.g. |
Let's simply do the same as the official dnsmasq version. If there's any real demand for regex support, there should be a separate feature request, we'll consider it then. |
need adh replace dnsmasq , hope join gfw list |
I am officially requesting this, opened new ticket. |
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Problem Description
i use dnsmasq ipset feature to bypass gfw ,at the same time ,i want to use Adguard to filter ads.
i can use Adguardhome as the upstream of dnsmasq ,but i can't see clients from Adguardhome,all the requests from 127.0.0.1.
so if adguardhome have the ipset feature,it can be a replacement of the dnsmasq.
Proposed Solution
i had read the code maybe we can add a new *NetworkEngine to support filter other kind of filter rules such as rule use the certain upstream dns server or rule add the ip into ipset.
but add a new engine maybe expensive,we can give fliters more args,such as filtertype tells us what kind of rules it is,blacklist,whitelist,ipsetlist,upstreamlist?and add a more arg to additional info for ipset list and upstream list .At runtime we can use the id to distinguish between the rules.when we match the rules with special filtertype dont`t return Immediately,but add a flag in result.So it is important to sort the rules ,make the special filertype rule ahead of other rules.
Alternatives Considered
Additional Information
The text was updated successfully, but these errors were encountered: