-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 DHCP Options #1585
Comments
Currently, we don't yet support these options. Let's see how many upvotes this feature request gets. |
I am in the process of switching from pihole and this is a blocker for me. I need to his to tell all my clients where their NTP server is in the network and there is noway to do this now with AdGuard. I would totally love it if you enable a name value pair approach in the dhcp section in yaml only. This doesn't need to be in GUI. In dnsmasq.conf for PiHole it works like this: dhcp-option=option:ntp-server,192.168.10.2 This seems like an easy thing to do I think and I'd be interested in adding this myself though my coding skills are limited to java, php, javascript, c#, python. Not sure if that helps? BTW, I see in the some of the help on github reference to /etc/dhcpd.conf. Does that mean we can add option tags in there and AdGuard will just server them out? Like so: option option-name option-data |
In DHCPD.conf it's like this: option cucm63 code 63 = ip-address; subnet 192.168.x.0 netmask 255.255.255.0 { |
So we can add options through this then? I haven't tried it yet but if that works then I don't see a need for this feature request given that it's a relative advanced use case with a working solution. I will have a closer look later today / tomorrow. |
No, it's not implementend yes as far as i know, i use a isc-dhcpd docker image for DHCP at the moment. |
Adding additional DHCP options to the GUI would be the best case, but even pointing us to where we can make changes at the CLI would be a good start. As stated above, I also am interested in coming over from Pihole. It uses DNSMASQ so I can leverage it's config to build the various DHCP scopes and options as I need. |
It seems to be a popular issue, assigned to v0.103. Please explain what DHCP options you're using if they weren't mentioned here yet. |
I think most are mentioned, I was looking and noticed another issue where you're looking to add dnsmasq features. To me this resolves this issue as well. I leverage dnsmasq configs on my pi-hole server so it can be my dhcp and dns for our network. Having the flexibility to setup multiple subnets, with different subnet masks, gateways, lease times, etc as well as supporting static dhcp reservations and static hosts (like network gear that get assigned an ip without using DHCP). This allows the DNS to resolve local names. |
I would suggest that if this gets implemented you keep this very simple and
perhaps only via REST and CLI.
This is for most users of AdGuard I think an advanced feature. A UI might
just cause more problems for the average user.
For me I would need the ability to set any dhcp option I want really.
Right now I use things like ntp-server, tftp settings etc.
local resolution would be nice but that's a new feature request I think so
we should not mix that up into this request!
…On Tue, Apr 21, 2020 at 2:03 AM waxhawsam ***@***.***> wrote:
I think most are mentioned, I was looking and noticed another issue where
you're looking to add dnsmasq features. To me this resolves this issue as
well. I leverage dnsmasq configs on my pi-hole server so it can be my dhcp
and dns for our network. Having the flexibility to setup multiple subnets,
with different subnet masks, gateways, lease times, etc as well as
supporting static dhcp reservations and static hosts (like network gear
that get assigned an ip without using DHCP). This allows the DNS to resolve
local names.
My testing with Adblock home so far is going very well, seems to strike a
better balance of blocking ads without breaking apps. Thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1585 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQW7CUKLLCJKAVRYHR7QQTRNSFAFANCNFSM4MHQF3OA>
.
--
Best regards,
-FF
|
Agreed, local resolution would really depend on what is the backend for Adguard, if your using dnsmasq like pihole then it's built in once you enable the DHCP server. |
The simplest way to implement it is to set the options in yaml config file:
no UI, no API. Or does anyone need an API to set/get these options? |
So is Adguard using Netplan for DHCP server? Looks like the same syntax, can you also use the yaml file to setup multiple DHCP scopes? |
@szolin да, GUI оглична от DHCP оптион :) ps: year, still learning |
That would be great!
…-FF
Sent from my mobile, powered by Frank's thumbs!
On Fri, Apr 24, 2020, 22:25 Simon Zolin ***@***.***> wrote:
The simplest way to implement it is to set the options in yaml config file:
dhcp:
...
options:
- '43 hex f1040a7f0a1b'
- '150 ip 10.127.15.10'
no UI, no API.
Or does anyone need an API to set/get these options?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1585 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQW7CTJATJWZUZGWJNL4SDROGOOTANCNFSM4MHQF3OA>
.
|
no API needed. The easier the better!
|
Just to let you know that I am not longer requesting this feature. Local DNS & DHCP and Time:
Main DNS For all Clients:
I believe splitting DHCP and Local DNS like this is actually my preference as I can independently manage my local network without disrupting potential external dns services. My family members prefer that :-) |
https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#configuration-file
where DEC_CODE is a decimal DHCPv4 option code in range [1..255] Option with IP data (only 1 IP is supported):
|
Hi ! Thanks for closing this. But why can we only set 1 IP? How can I set option 6 to specify two dns in clients DHCP config? 6 ip 8.8.8.8 Thanks for your answer! |
@jncanches have you tried it? It's not immediately clear to me what would happen in this case since AdGuard Home forces itself to be a DNS server and this may interfere. Anyway, if it does not work, please open a bug report, we'll see what can be done about it. |
@ameshkov I was hoping to have an answer before trying AdGuard Home, but I will give it a try tonight. I will update this post after that. I come from PI-Hole and this is done via dnsmasq configuration |
Interesting. Do you usually set both DNS servers to the same IP address? |
I am interested in understanding how to apply such options in YAML file. dhcp-option-force=tag:decodeur,125,00:00:0D:E9:24:04:06:44:34:36:30:45:33:05:0F:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:06:09:4C:69:76:65:62:6F:78:20:34 How would this be set in YAML? I tried with no luck. |
@TheSleepySlee, is option code Either way, please see https://github.com/AdguardTeam/AdGuardHome/wiki/DHCP#config-4. For your case it'll probably be something close to: # …
'dhcp':
# …
'dhcpv4':
# …
'options':
- '125 hex 00000DE92404… |
Yes, tried this with no luck. I have to specify some hex data to enable IPTV using DHCP server. Only for the IPTV devices, not for the rest of devices. Hence the tag in the example I provided. Details here (in french): https://forums.framboise314.fr/viewtopic.php?f=57&t=5960 |
@TheSleepySlee, I see, thanks. I've opened #2573 for your request. |
@ainar-g thanks.
Would this already work using current version of adguard? |
Hello @TheSleepySlee On my side, I've notice a non persistant config, even in YAML (cf #3101 ). Moreover, as far as I see, my STB doesn't still work, I'm doing a wireshark analysing right now |
As far as I see, the option specified is ignored |
I use pihole since then. |
Hello i also use DHCP option event if i see this request is uncomment till 05/2021. 2 Time Offset Time offset in seconds from UTC But you have a lit of the options here http://help.sonicwall.com/help/sw/eng/6800/26/2/3/content/Network_DHCP_Server.042.12.htm I also use Proximus TV decoder (Belgium), I m kind of shure they use some DHCP option for there configuration but i still do not put the hand on that configuration. For info the option shoud be set by user or groupe of user regarding the fact that for exemple the boof serveur for a Polycom phone (option 66) is the the same for a Yealink Phone And yes i have those kind of device at home, home working :) |
Works for me. One thing to ensure: No space between value and measuring unit. My working configuration:
|
Would be cool to add DHCP options to AAdguard Home in a GUI way, instead of having to go through the config file.. +1 |
Is it possible to use DHCP options within Adguard Home (selfhosted)
Like:
dhcpd option 43 hex f1040a7f0a1b
dhcpd option 150 ip 10.127.15.10
dhcpd option 63 ip 10.127.15.10
For example option 43:
http://blog.schertz.name/2012/05/understanding-dhcp-option-43/
For example option 150: (for IP Phones)
https://specialties.bayt.com/en/specialties/q/279251/what-is-option-150-in-cisco-voip/
General:
https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-admin/networking/dhcp/dhcp-options
The text was updated successfully, but these errors were encountered: