All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ming-Ching Tiew <mctiew@yahoo.com>
To: netfilter@vger.kernel.org
Subject: drop dhcp request from a particular mac address, after a dhcp relay
Date: Wed, 10 Mar 2010 06:30:52 -0800 (PST)	[thread overview]
Message-ID: <418652.3218.qm@web31505.mail.mud.yahoo.com> (raw)


I would like to inhibit a dhcp request from a particular mac address, on the dhcp server.

If the client is directly LAN connected, I would suppose the following will work :-

iptables ....... -m mac --mac-source 

But to add a twist to the problem, the machine which must be blocked from obtaining a DHCP IP is connected to a DHCP relay, and therefore, the dhcp server is seeing only the mac adddress of the relay. Can this be accomplished with iptables ? 

Is there a match which works something like this :-

  iptables ..... -m bootp --mac-source 00:08:a1:ab:75:d1 -j DROP ?

Well, if 'iptables' can't serve the purpose, how about ebtables ?

Regards.




      

             reply	other threads:[~2010-03-10 14:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-10 14:30 Ming-Ching Tiew [this message]
2010-03-10 15:30 ` drop dhcp request from a particular mac address, after a dhcp relay Robert Nichols
  -- strict thread matches above, loose matches on Subject: below --
2010-03-12  2:27 Ming-Ching Tiew
2010-03-12  9:06 ` John Haxby
2010-03-13  8:10 ` Mart Frauenlob
2010-03-13 16:03   ` Robert Nichols
2010-03-13 16:34     ` Mart Frauenlob
2010-03-13 19:29     ` Sven-Haegar Koch
2010-03-14 21:36       ` Robert Nichols

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=418652.3218.qm@web31505.mail.mud.yahoo.com \
    --to=mctiew@yahoo.com \
    --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 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.