From: Vincent Haverlant <galadril@parinux.org>
To: Antony Stone <Antony@Soft-Solutions.co.uk>
Cc: netfilter@lists.netfilter.org
Subject: Re: iptables bridge filter question
Date: Thu, 18 Mar 2004 20:28:50 +0100 [thread overview]
Message-ID: <20040318192850.GD21027@haverlant.org> (raw)
In-Reply-To: <200403181533.58166.Antony@Soft-Solutions.co.uk>
Le Thu Mar 18 15:33:58 2004, Antony Stone a écrit:
| > > I have setup a bridging firewall. I want to drop packets on the external
| > > interface, which have source addresses on my internal network. However,
| > > the firewall/bridge sits between my T1 router and the rest of my LAN. Is
| > > there a way to drop the packets mentioned previously, but allow the
| > > router? I guess a rule could be created that uses the routers mac address
| > > as a match. I've been playing around with this, but I'm not getting the
| > > result I want. I could sure use some advice on this.
| > >
| > > [ LAN xx.xx.xx.0/24 ]<==>[ bridge/firewall ]<==>[ router xx.xx.xx.254/24
| > > ]
| >
| > How about:
| >
| > iptables -A FORWARD -i $extIF -s xx.xx.xx.254 -j ACCEPT
| > iptables -A FORWARD -i $extIF -s xx.xx.xx.0/24 -j DROP
|
| Okay, scrub that - I overlooked the significance of it being a *bridging*
| firewall :(
Well this is not altogether stupid :) provided you have the bridge-nf
patch for a 2.4 kernel or a 2.6 kernel with bridge filtering and
ebtables.
Vincent.
--
.~. Vincent Haverlant -- Galadril -- #ICQ: 35695155
/V\ MSN: vincent_msn@haverlant.org -- http://www.haverlant.org/
/( )\ Parinux member: http://www.parinux.org/
^^-^^ GPG: 8FEA 52C2 5C54 A201 2375 0FA5 AF2E 1881 92D0 EE84
next prev parent reply other threads:[~2004-03-18 19:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-18 8:28 iptables bridge filter question Gerry Weaver
2004-03-18 15:24 ` Antony Stone
2004-03-18 15:33 ` Antony Stone
2004-03-18 19:28 ` Vincent Haverlant [this message]
2004-03-18 20:12 ` Gerry Weaver
2004-03-18 20:40 ` Antony Stone
2004-03-18 23:09 ` Gerry Weaver
2004-03-18 23:16 ` Antony Stone
-- strict thread matches above, loose matches on Subject: below --
2004-03-18 15:02 Steve Jones
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=20040318192850.GD21027@haverlant.org \
--to=galadril@parinux.org \
--cc=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