[Chilli] How can chilli respond dhcp requests in lo interface?

Lulu GO toboganfing at googlegroups.com
Sun Aug 15 23:40:08 UTC 2010


Hello, maybe this is a strange question, but I'm trying to get coova chilli
to respond dhcp discover packets in the loopback interface. The situation is
this (is for a student project at my university) I made a dhcp relay program
to listen dhcp discover packets before chilli and then if the network state
is ok relay the packet to chilli. So I made two tests, I change chilli
listen port to 5067 and set chilli to reply in 68 port and another one where
chilli is set to answer in 5068 port and my program relay also that answer
to the client.

Here are some logs

My program running in 67 port, chilli in 5067 and a laptop asking dhcp to 67
port, I can see the packets being forward to 5067 port, to coova, but no
packets after that

19:26:10.458579 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP
(17), length 284) 10.20.1.1.bootps > 10.20.1.1.5067: BOOTP/DHCP, Request
from 00:17:c4:89:db:da (oui Unknown), length 256, xid 0x2fde6c7a, secs 8,
Flags [none] (0x0000)
  Client-Ethernet-Address 00:17:c4:89:db:da (oui Unknown) [|bootp]
19:26:10.458609 IP (tos 0xc0, ttl 64, id 12772, offset 0, flags [none],
proto ICMP (1), length 312) 10.20.1.1 > 10.20.1.1: ICMP 10.20.1.1 udp port
5067 unreachable, length 292

there's an ICMP unreachable port but the discover gets to the chilli, I can
see the new dhcp request in syslog

Aug 15 19:26:10 tobogan coova-chilli[2724]: chilli.c: 2822: New DHCP request
from MAC=00-17-C4-89-DB-DA
Aug 15 19:26:53 tobogan coova-chilli[2724]: options.c: 821: Rereading
configuration file and doing DNS lookup
Aug 15 19:30:01 tobogan /USR/SBIN/CRON[3725]: (root) CMD (/etc/init.d/chilli
checkrunning)

Another test I made was changing the unicast flag of the dhcp response to
broadcast, so chilli would respond broadcast, but the result was the same.

My question is, how can i tell chilli to manage the lo interface? so it can
respond ok, or, where can I change the dhcp sources in order to achive this?

thank you very much for your time

Lucía
Montevideo - Uruguay

ps: sorry for my english!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.coova.org/pipermail/chilli/attachments/20100815/d491a5c5/attachment.htm>


More information about the Chilli mailing list