DHCP reply not leaving machine

Rok Kosir rok.kosir at cosylab.com
Tue Nov 5 14:55:46 CET 2013


On 10/29/2013 09:49 PM, Alan DeKok wrote:
> Rok Kosir wrote:
>> I have built the  3.1.0 (git #efb85c7) and now i'm getting ARP errors on
>> ubuntu:
>> (9) DHCP: Reply will be unicast to your-ip-address
>> (9) Failed adding arp entry: Failed to add entry in ARP cache: Operation
>> not permitted (1)
>>
>> rdb doesn't show any more details than this.
>>
>> I am runing this as root user,so permissions should't be a problem.
>    (a) set "broadcast = no"
>
> or
>
>    (b) find out why ARP updates aren't permitted.
>
>
>    It works on my system, with Ubuntu 12.04, running as root.

There was user and group set in config and it ran under that user, so I 
assume that was the cause, when deleted it didn't post this error.

I still wasn't able to make it send replies tho, i ran strace on radius 
and got this when it is sending dhcp reply.

write(1, "\tDHCP-DHCP-Server-Identifier = 1"..., 44) = 44
write(1, "Sending DHCP-Offer of id 63e996d"..., 80) = 80
sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(68), 
sin_addr=inet_addr("255.255.255.255")}, 
msg_iov(1)=[{"\2\1\6\0c\351\226\331\0\0\200\0\0\0\0\0\300\250\ne\300\250\n\1\0\0\0\0pZ\266\232"..., 
300}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_IP, cmsg_type=, 
...}, msg_flags=0}, 0) = -1 EINVAL (Invalid argument)
write(1, "(1) Finished request 1.\n", 24) = 24


This was tested on version 2.2.3 (git #e7c7350) and I also get same 
error on newest checkout from branch v3.0.x - version 3.1.0 (git #b558972)

>    Alan DeKok.



More information about the Freeradius-Users mailing list