[CoovaChilli] how to DHCP relay

John Jiang manpower.john999 at gmail.com
Wed Dec 14 09:17:59 GMT 2016


Hi Sebastian,

I found why the redirect problem occurred. It is because DSNmasq sent the
wrong dns server(127.0.0.1) to relay(coovahilli).
After modified the dns server address in function dhcp_relay_encaps() of
dhcp.c,  it worked.
For your reference and thanks for your help.

Regards


2016-12-09 18:47 GMT+08:00 sebastian villalba <villalba.sebastian at gmail.com>
:

> Great I'm glad to read that.
> I'm gonna try that config later today and will let u know if I come across
> with any redirect problem. If I don't I can share my config with u.
> Regards
> Sebastian
> On Fri, Dec 9, 2016 at 2:35 AM John Jiang <manpower.john999 at gmail.com>
> wrote:
>
>> Hi Sebastian,
>>
>> Thank you!! It works but it has another problems(e.g. not redirect to the
>> landing page).
>>
>> Anyway, the relay setting works. Thanks for your kindly reply.
>>
>> John
>>
>> 2016-12-03 7:59 GMT+08:00 sebastian villalba <
>> villalba.sebastian at gmail.com>:
>>
>> Hello i'd try this.
>>
>> in coova chilli set the dhcpgateway to 127.0.0.1 (loopback ip), then the
>> dhcplisten parameter should be coovachilli's ip address. set the
>> dhcpgateway port to 67.
>>
>> in dnsmasq set the listen ip to 127.0.0.1 and the listen interface to
>> tun0.
>>
>> i dont have a way of trying that right now but it may work. please let me
>> know if it works
>>
>> sebastian
>> from mexico
>>
>> El vie., 2 de dic. de 2016 a la(s) 05:20, John Jiang <
>> manpower.john999 at gmail.com> escribió:
>>
>> Hi,
>>
>> I want to use external dhcp server (Dnsmasq) for coovachilli. I know I
>> need
>> to setup the dhcp relay for this :
>>
>> dhcpgateway=192.168.1.1  (dnsmasq's address)
>> dhcplisten=192.168.183.1 (uam server)
>> dhcpgatewayport=67
>>
>> Both the coovachilli  and dnsmasq are run on the same router.
>>
>> I don't know how to set them working correctly.
>>
>> Does the dhcpgateway mean where the dhcp server is  ?  Or is it a dhcp
>> relay?
>>
>> And dhcplisten should be coovachilli itself ? Or is it a dhcp relay?
>>
>> Could anyone help me to do this?
>>
>> thanks very much.
>> _______________________________________________
>> CoovaChilli mailing list
>> CoovaChilli at brightonchilli.org.uk
>> https://www.brightonchilli.org.uk/mailman/listinfo/coovachilli
>>
>>
>>


More information about the CoovaChilli mailing list