All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: How to setup netfilter to stop outbound DHCP?
Date: Sun, 29 Feb 2004 20:07:01 +0000	[thread overview]
Message-ID: <200402292007.01882.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <001001c3fefd$daf70a70$6401a8c0@LSchmitt>

On Sunday 29 February 2004 7:54 pm, Dr. Lawrence J. Schmitt wrote:

> I am setting up a lab for students to configure and experiment with
> Linux.  I need to set up something that will keep responses to DHCP
> requests from leaving the lab to keep from driving the network support
> people crazy.

> 	1.  What is the appropriate tool to use?

A router.   DHCP doesn't cross network boundaries.

> 	2.  Can anyone suggest an iptables rule that will block either
> dhcp 		requests from entering the lab subnet or responses from
> exiting.

Well, since the machine running netfilter (onto which you put your rules) is 
going to have to have one subnet on one side, and another subnet on the 
other, the precise rules you use don't much matter - the system will very 
satisfactorily block DHCP for you.

> 	3.  I would like to set up one pc running Linux as a router and
> firewall, filter that also would run DHCP and DNS for the local
> lab as well as block responses to DHCP requests on the nic that
> is connected to the campus network.

I think if you set up such a PC as a router and firewall, you won't have a 
DHCP problem, simply because DHCP doesn't get routed.

Regards,

Antony.

-- 
Documentation is like sex.
When it's good, it's very very good.
When it's bad, it's still better than nothing.

                                                     Please reply to the list;
                                                           please don't CC me.



  reply	other threads:[~2004-02-29 20:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040229143928.7884.68000.Mailman@netfilter-sponsored-by.noris.net>
2004-02-29 15:44 ` Re: Filtering using port+process (i.e. open port 80 for Apache only) Moath A. Khalaf
2004-02-29 15:57   ` Zone alarm [was: Re: Re: Filtering using port+process (i.e. open port 80 for Apache only)] Antony Stone
2004-02-29 19:54 ` How to setup netfilter to stop outbound DHCP? Dr. Lawrence J. Schmitt
2004-02-29 20:07   ` Antony Stone [this message]
2004-02-29 20:22   ` Jeroen Vriesman
2004-02-29 21:11   ` Alexis

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=200402292007.01882.Antony@Soft-Solutions.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 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.