[Dnsmasq-discuss] dhcp-relay and option 82

Simon Kelley simon at thekelleys.org.uk
Thu Dec 10 21:47:31 GMT 2020


On 07/12/2020 13:58, Mani Wieser wrote:
> On 07.12.2020 00:38, Simon Kelley wrote:
>> On 02/12/2020 10:33, Mani Wieser wrote:
>>> Dear all
>>> I am trying to use dnsmask as dhcp relay in dd-wrt as a substitution to
>>> their buggy dhcpfwd solution. It works fine, but I can't find a way to
>>> inject option 82.
>>> I tried with
>>> dhcp-circuitid=set:82,1,"ws-c"
>>> dhcp-remoteid=set:"ws-c"
>>> dhcp-option-force=82,1,"dd-wrt"
>>>
>>> without success.
>>>
>>> I found a similar question without an answer at July 2017
>>>
>>> Is it possible? if yes: what I am doing wrong?
>>>
>>> Mani
>>>
>>>
>> Not possible, I'm afraid. The dhcp-relay function is a basic rewriting
>> of the giaddr field, it doesn't add any options.
>>
>> Simon.
>>
>>
>> _______________________________________________
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 
> Thanks Simon
> 
> In the meantime I found a solution:  I set the server-identifier to the
> relay IP and therefore the client in the subnet can't bypass the relay
> anymore.
> 
> The tricky part was to find out how to extract the gateway address in
> isc-dhcp-server;... much more hidden in dhcp6; but I solved it.
> 
> Mani
> 

Cool,

If I understand your strategy correctly, the dnsmasq --dhcp-proxy option
may be of use.


Cheers,

Simon.

> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss




More information about the Dnsmasq-discuss mailing list