From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: Netfilter <netfilter@lists.netfilter.org>
Subject: Re: MAC Block for the DHCP via iptables
Date: Mon, 17 Nov 2003 17:02:46 +0000 [thread overview]
Message-ID: <200311171702.hAHH2pj22305@agate.rockstone.co.uk> (raw)
In-Reply-To: <008801c3ad28$da9e4b50$0d1ea8c0@win2000adv>
On Monday 17 November 2003 4:35 pm, Chandana Bandara wrote:
> Hi Mr.Antony & ALL ,
>
> iptables -P INPUT DROP
> iptables -P FORWARD DROP
> iptables -P OUTPUT DROP.........only with those policies ,
> should block the all incomming , outgoing from the machine ?????
Assuming you have flushed the rules as well, with:
iptables -F INPUT
iptables -F FORWARD
iptables -F OUTPUT
then no IP traffic will be allowed into, out of, or through, the machine.
> This firewall running in my DHCP machne , but when a test with my DHCP
> clients ..........those machone has taken ips. but this can't happen
> .....isit ? if i correct where can be tbe problem ? pls ..............guide
> me
It is important to bear in mind that DHCP is a protocol used for giving IP
addresses to clients which don't currently have them, therefore the traffic
involved in client requests and server responses will not have normal IP
addresses as you might expect, simply because the (client) machines in
question don't have IP addresses until the protocol is complete.
A quick inspection with a protocol analyser such as ethereal will easily show
you what I mean here.
However, once the clients do have IP addresses, the above rules will
certainly prevent them from communicating with, or through, the netfilter box.
If you want to block the ethernet traffic involved in communicating the DHCP
packets in the first place you might like to investigate ebtables at
http://ebtables.sf.net instead of iptables, as this is more appropriate to
this purpose.
Regards,
Antony.
--
Success is a lousy teacher. It seduces smart people into thinking they
can't lose.
- William H Gates III
next prev parent reply other threads:[~2003-11-17 17:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-17 16:35 MAC Block for the DHCP via iptables Chandana Bandara
2003-11-17 17:02 ` Antony Stone [this message]
2003-11-17 17:42 ` Jeffrey Laramie
2003-11-17 17:57 ` Antony Stone
2003-11-17 18:17 ` Jeffrey Laramie
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=200311171702.hAHH2pj22305@agate.rockstone.co.uk \
--to=antony@soft-solutions.co.uk \
--cc=netfilter@lists.netfilter.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