Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@vger.kernel.org
Subject: Re: DHCP issue - iptables rules not hit when using ebtables - MAC based   firewall bypass
Date: Sat, 27 Jun 2009 11:36:52 +0200	[thread overview]
Message-ID: <4A45E834.5080604@plouf.fr.eu.org> (raw)
In-Reply-To: <4A45D0EE.50400@telenet.be>

Hello,

fvancrae@telenet.be a écrit :
> 
> I am using ebtables on my firewall to have one consumer device (client) 
> bypass the firewall entirely and act as if it is directly connected to 
> the internet.
> 
> For this I create a bridge (non transparant) and specify a MAC based 
> rule in the BROUTING chain
> -s MAC -i eth1 -j ACCEPT
> -d MAC -i eth0 -j ACCEPT
> BROUTING POLICY DROP

This seems incomplete to me. How do you deal with broadcast frames 
received on eth0 such as ARP requests for your device IP address ?

> eth0 is my routers WLAN interface
> eth1 is my routers LAN interface
> 
> Then I wanted to block the DHCP request for that MAC on my firewall (who 
> is DHCPD)
> but it seems that no iptable or ebtable rule can be used to block this 
> packet (or even an outgoing packet of my DHCPD)
> 
> My client always gets an IP inside my LAN.

Does the DHCP server listen on eth0 or the bridge interface ? Some DHCP 
softwares (either client or server side) are bound directly to the 
network interface and thus bypass iptables and ebtables. So I guess you 
might either blacklist the device MAC address in the DHCP server 
configuration if possible, or have it listening on the bridge interface 
(and add ebtables rules to avoid DHCP traffic from leaking through eth0).

      reply	other threads:[~2009-06-27  9:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-27  7:57 DHCP issue - iptables rules not hit when using ebtables - MAC based firewall bypass fvancrae
2009-06-27  9:36 ` Pascal Hambourg [this message]

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=4A45E834.5080604@plouf.fr.eu.org \
    --to=pascal.mail@plouf.fr.eu.org \
    --cc=netfilter@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox