Linux Netfilter discussions
 help / color / mirror / Atom feed
From: michael@floog.net
To: netfilter@lists.netfilter.org
Subject: Re: How to drop/reject packets amongst LAN clients?
Date: Mon, 10 May 2004 10:31:39 -0700	[thread overview]
Message-ID: <1084210299.409fbc7b3288c@webmail.floog.net> (raw)
In-Reply-To: <200405101743.54501.Antony@Soft-Solutions.co.uk>

Hi Antony,

Thanks for the rapid response to my post.  I see you what you are
saying.

Maybe I could add a 3rd NIC to the linux router/firewall box and call it
eth2 and give it a different subnet like 192.168.2.1 and then
192.168.1.9 will become 192.168.2.2 on the new subnet.

By doing so, will I then be able to route data from only the *.7 and
*.8
connections on subnet 192.168.1.1 to the box on 192.168.2.2? 

Thanks for the guidance.

Mike


Quoting Antony Stone <Antony@Soft-Solutions.co.uk>:

> Netfilter (on the gateway router) is no use to you here, because
> packets 
> between machines on the same subnet do not go through the router -
> they just 
> talk to each other directly across your hub / switch.
> 
> Install netfilter on 192.168.1.9 and put rules in the INPUT chain:
> 
> iptables -A INPUT -A INPUT -s 192.168.1.7 -j ACCEPT
> iptables -A INPUT -A INPUT -s 192.168.1.0/29 -j DROP
> 
> Regards,
> 
> Antony.





  reply	other threads:[~2004-05-10 17:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-10 16:23 How to drop/reject packets amongst LAN clients? michael
2004-05-10 16:43 ` Antony Stone
2004-05-10 17:31   ` michael [this message]
2004-05-10 17:43     ` Antony Stone
2004-05-10 17:14 ` Cedric Blancher
2004-05-10 17:34   ` Antony Stone
2004-05-10 17:46     ` Cedric Blancher
2004-05-10 17:16 ` Aleksandar Milivojevic
2004-05-10 18:26   ` michael

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=1084210299.409fbc7b3288c@webmail.floog.net \
    --to=michael@floog.net \
    --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