All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arndbergmann@googlemail.com>
To: lkml@makubi.at
Cc: arndbergmann@googlemail.com, linux-kernel@vger.kernel.org
Subject: Re: DHCP and iptables
Date: Tue, 13 Oct 2009 00:08:57 +0200	[thread overview]
Message-ID: <200910130008.57174.arnd@arndb.de> (raw)
In-Reply-To: <20091012235013.16174ciovvwpw70g@www.kundendienste.net>

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 <><

  reply	other threads:[~2009-10-12 22:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12 21:50 DHCP and iptables lkml
2009-10-12 22:08 ` Arnd Bergmann [this message]
2009-10-12 22:41   ` lkml
2009-10-12 22:45 ` H. Peter Anvin
2009-10-12 22:53   ` lkml
2009-10-12 23:45     ` H. Peter Anvin
2009-10-12 23:59       ` Mathias Kub
  -- strict thread matches above, loose matches on Subject: below --
2009-10-12 17:04 Mathias Kub
2009-10-12 16:34 lkml
2009-10-12 16:48 ` Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200910130008.57174.arnd@arndb.de \
    --to=arndbergmann@googlemail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml@makubi.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.