All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: DHCP and iptables
@ 2009-10-12 21:50 lkml
  2009-10-12 22:08 ` Arnd Bergmann
  2009-10-12 22:45 ` H. Peter Anvin
  0 siblings, 2 replies; 10+ messages in thread
From: lkml @ 2009-10-12 21:50 UTC (permalink / raw)
  To: arndbergmann; +Cc: linux-kernel

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.

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

Sincerely yours Mathias Kub

--------------------
12.10.2009 Mathias Kub <lkml@makubi.at>

|   Thank you very much for that quick reply.
|
|   Yours Mathias Kub
|
|   --------------------
|   12.10.2009 Arnd Bergmann <arndbergmann@googlemail.com>
|
|   |   On Monday 12 October 2009, lkml@makubi.at wrote:
|   |   > The last few days I have been wondering about the fact, that I get
|   |   > an IP address via
|   |   > DHCP if all chains at iptables are set to drop and no accept rules
|   |   > set.
|   |   >
|   |   > Does this happen on purpose?
|   |
|   |   DHCP is an ethernet protocol, not an IP protocol, so you have to use
|   |   ebtables instead of iptables to filter it.
|   |
|   |   	Arnd <><
|
|   --
|   To unsubscribe from this list: send the line "unsubscribe linux-kernel"
|    in the body of a message to majordomo@vger.kernel.org
|   More majordomo info at  http://vger.kernel.org/majordomo-info.html
|   Please read the FAQ at  http://www.tux.org/lkml/
|


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: DHCP and iptables
@ 2009-10-12 17:04 Mathias Kub
  0 siblings, 0 replies; 10+ messages in thread
From: Mathias Kub @ 2009-10-12 17:04 UTC (permalink / raw)
  To: arndbergmann; +Cc: linux-kernel

Thank you very much for that quick reply.

Yours Mathias Kub

--------------------
12.10.2009 Arnd Bergmann <arndbergmann@googlemail.com>

|   On Monday 12 October 2009, lkml@makubi.at wrote:
|   > The last few days I have been wondering about the fact, that I get an
|   > IP address via
|   > DHCP if all chains at iptables are set to drop and no accept rules set.
|   >
|   > Does this happen on purpose?
|
|   DHCP is an ethernet protocol, not an IP protocol, so you have to use
|   ebtables instead of iptables to filter it.
|
|   	Arnd <><

^ permalink raw reply	[flat|nested] 10+ messages in thread
* DHCP and iptables
@ 2009-10-12 16:34 lkml
  2009-10-12 16:48 ` Arnd Bergmann
  0 siblings, 1 reply; 10+ messages in thread
From: lkml @ 2009-10-12 16:34 UTC (permalink / raw)
  To: linux-kernel

Hi,

The last few days I have been wondering about the fact, that I get an IP
address via
DHCP if all chains at iptables are set to drop and no accept rules set.

Does this happen on purpose?

I checked twice, if I really get an IP from my DHCP-server, checked the DHCP-
messages and a wireshark trace.

I Also tried the check_dhcp-nagios plugin, which fails if I do not allow
packets for the input chain, destination port 68, protocol udp.


Why do I get an IP address, if I drop everything?

Sincerely yours Mathias Kub

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-10-12 23:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-12 21:50 DHCP and iptables lkml
2009-10-12 22:08 ` Arnd Bergmann
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

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.