lkml.org 
[lkml]   [2009]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: DHCP and iptables
Date
On Monday 12 October 2009, lkml@makubi.at wrote:
> Well, I just looked for "ethernet protocol" and read some things about
> DHCP again.
>
> What's an ethernet protocol?
>
> I also read, that "DHCP is built directly on UDP and IP" (RFC 2131).
>
> It uses Ports (UDP 67/68) and the source address of the DHCP server is
> an IP address.

Ah, right. I confused it with the way that the ancient RARP protocol did
this before DHCP.

Sorry for the confusion.

> Could you answer me more in detail, why I get an IP, but block
> everything with iptables?

The dhcp client opens a raw packet socket at the ethernet device
(if I'm not mistaken again), because there is no IP address assigned
with the netdev at that time. This allows it to send and receive
ethernet frames, bypassing the TCP/IP stack.

Arnd <><


\
 
 \ /
  Last update: 2009-10-13 00:45    [W:0.067 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site