From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-2?Q?G=E1sp=E1r_Lajos?= Subject: Re: DHCP works but iptables should have dropped Date: Mon, 15 Oct 2007 14:03:44 +0200 Message-ID: <47135720.9040804@freemail.hu> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: netfilter-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Petr Pisar Cc: netfilter@vger.kernel.org [...] > Use "netstat -lnp |grep dhcp". You can see that dhcpd has open 2 sockets. > One is UDP socket for reply packet transmission, the second one is raw > socket for request recieving. > > The raw socket has one important attribute: it recieves packets before > netfilter. The same mechanism is used by tcpdump/libcap. > > Are you saying that We CAN NOT "protect" the DHCP-server with iptables? > Therefore dhcpd can recieve packet even if they are blocked by > netfilter. This is feature, not a bug. I have not idea why ISC' DHCP > sever is implemented in this manner, but it is. (May be because of indirect > broadcast destination IP address in DISCOVERY client request.) > > -- Petr > Swifty