Re: openbsd dhcpd + freeradius

2008-07-03 Thread EvilEzh
Checked to make sure dhcp module is included by radiusd -X. To make it work: 1. ./configure --with-dhcp 2. in /usr/local/share/freeradius/dictionary file uncomment line $INCLUDE dictionary.dhcp 3. edit /usr/local/etc/raddb/site-available/dhcp (edit to match your needs, comment out or remove

Re: dhcp server - some patches

2008-06-29 Thread EvilEzh
In some cases, the server needs to send an explicit NAK, in order to force the client to re-broadcast a discover. That's true, but i'll choose when send NAK and when not. Or not respond at all. Of course we can make some rfc check (discover-offer; request-ack,nak; and so on). Actualy i'm

dhcp server - some bugs ?

2008-06-22 Thread EvilEzh
1. As i understand responses is hardcoded(preset) to discover and request. DHCP-Message-Type = ... in config file is ignored, so i can't respond to RELEASE, INFORM, DECLINE. Always is NAK. Response to request also could be NAK, not always ACK. It is possible respond to request with NAK if

Re: dhcp server (udp packet size)

2008-06-20 Thread EvilEzh
I still can't get some clients to receive my dhcp packets. After some more testing i figured out packet size differences. In other dhcp server responses it's 342 bytes ... on radius dhcp server i've 618 bytes. Is it possible to make send back messages as short as possbile ? :) Also found some

Re: dhcp server (udp packet size)

2008-06-20 Thread EvilEzh
- Original Message - From: EvilEzh [EMAIL PROTECTED] To: FreeRadius users mailing list freeradius-users@lists.freeradius.org Sent: Friday, June 20, 2008 8:12 PM Subject: Re: dhcp server (udp packet size) I still can't get some clients to receive my dhcp packets. After some more

Re: dhcp server (udp packet size)

2008-06-20 Thread EvilEzh
I've net with over 1k dhcp clients. Problem with packet size was with linksys routers. They have udhcp client. Now it looks ok. Will do more testing. In other dhcp server responses it's 342 bytes ... on radius dhcp server i've 618 bytes. Is it possible to make send back messages as short as

Re: dhcp server (udp packet size)

2008-06-20 Thread EvilEzh
All of them .. i've redundant(duplicate) dhcp server also :) I tried to comapre response packets from both servers, new one (freeradius dhcp) and old one. And understand what's different. - Original Message - From: [EMAIL PROTECTED] To: FreeRadius users mailing list

dhcp server (socket binding)

2008-06-20 Thread EvilEzh
Can someone explain more about subj. Let see: incoming broadcast 0.0.0.0 - 255.255.255.255 i can get thease packets incoming broadcast 10.4.0.1-255.255.255.255 i can't get thease packets. In another words, if there is ip address in source, i can't get thease packets to process (mostly thease

dhcp server (unicast replay)

2008-06-20 Thread EvilEzh
Actualy i see in packet source x.x.x.x (client) - z.z.z.z (server). replay is z.z.z.z - y.y.y.y (relay). There is several retries from client. So i think clien't don't receive packet from relay. So if there is unicast from already configured client .. response should be sent directly back to

Re: dhcp server (unicast replay)

2008-06-20 Thread EvilEzh
btw .. it works anyway with dhcp relay set. So nothing to do with it. With relay everything looks ok. :) It works. option 82 is also ok. Actualy i see in packet source x.x.x.x (client) - z.z.z.z (server). replay is z.z.z.z - y.y.y.y (relay). There is several retries from client. So i think

Re: dhcp server (DHCPFlags feature)

2008-06-19 Thread EvilEzh
And thease clients can't get ip address. Is it possilbe to allow update DHCP-Flags in replay, i've tried in update section: DHCPFlags = Broadcast I'll take a look. It may be simpler to just say that DHCP offers are broadcast. I use relays (because i want to use option 82 ... not tested yet)

Re: dhcp relay agent

2008-06-18 Thread EvilEzh
Thanks, relay ip is ok now. Another problem. I couldn't receive it packet anyway. I launched standart dhcpd server on linux and everything worked fine. After analyzing packets i discover that replay messages to relay is sent back to port 67 not 68. So, it need to be fixed. :) Haralds -

Re: dhcp relay agent

2008-06-18 Thread EvilEzh
So, if relay ip0.0.0.0 (?hops0) replay port = 67. Something like that. - Original Message - From: Alan DeKok [EMAIL PROTECTED] To: FreeRadius users mailing list freeradius-users@lists.freeradius.org Sent: Wednesday, June 18, 2008 4:24 PM Subject: Re: dhcp relay agent EvilEzh wrote

Re: dhcp relay agent

2008-06-18 Thread EvilEzh
Thanks, it works now. Haralds - Original Message - From: Alan DeKok [EMAIL PROTECTED] To: FreeRadius users mailing list freeradius-users@lists.freeradius.org Sent: Wednesday, June 18, 2008 5:04 PM Subject: Re: dhcp relay agent EvilEzh wrote: with dhcpd request client

dhcp server (already in use lease verify)

2008-06-16 Thread EvilEzh
Does DHCP server verify is lease already in use or not ? And another question is about multiple interfaces. As i understand i need to run several dhcp instances for each interface, or maybe it is possible to add attribute on which interface dhcp packet was received if i run on multiple