dhclient denied

Lowell Gilbert freebsd-questions-local at be-well.no-ip.com
Fri Aug 22 09:47:28 PDT 2003

"Bob Hall" <rjhjr at cox.net> writes:

> I posted about this a while ago, but I haven't been able to 
> find the cause. I'm getting the following message:
> Aug 21 13:00:03 kongemord dhclient: send_packet: Permission denied
> DHCP seems to work fine; I'm getting and maintaining DHCP leases 
> properly. But these messages are filling up my messages file and 
> causing my curiosity to drive me crazy. I initially thought that 
> my firewall was blocking DHCP packets, but I've tried various ipfw 
> rule changes, including some suggested here, with no effect. My 
> current DHCP rules are:
>         ${fwcmd} add allow udp from any bootps to any bootps keep-state out via
> 	${oif}
>         ${fwcmd} add allow udp from any 68 to 67 keep-state out
> 	via ${oif}
> I know the second line is redundent. I was grasping at straws when I 
> put it in.

They're not redundant.  67 is bootps and 68 is bootpc.  Furthermore,
not all DHCP messages go out to the IP broadcast address.

> Generally, a failed connection attempt generates a message with 
> the IP address and port at each end. This message doesn't have that, 
> so that and the failure of firewall changes to end the message make 
> me think that the blocked packets aren't getting as far as the firewall. 
> Does anybody have any idea what is causing this?

You don't get IP addresses listed when you don't have one yet.

I'd recommend trying something like this for your DHCP support:
	$fwcmd add pass udp from any to any bootps keep-state out xmit ${oif}

More information about the freebsd-questions mailing list