Linux Netfilter discussions
 help / color / mirror / Atom feed
* iptables bridge filter question
@ 2004-03-18  8:28 Gerry Weaver
  2004-03-18 15:24 ` Antony Stone
  2004-03-18 20:12 ` Gerry Weaver
  0 siblings, 2 replies; 9+ messages in thread
From: Gerry Weaver @ 2004-03-18  8:28 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 767 bytes --]

Hello All,

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 ]


Thanks in advance,
Gerry
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004

[-- Attachment #2: Type: text/html, Size: 1631 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: iptables bridge filter question
@ 2004-03-18 15:02 Steve Jones
  0 siblings, 0 replies; 9+ messages in thread
From: Steve Jones @ 2004-03-18 15:02 UTC (permalink / raw)
  To: Gerry Weaver, netfilter

[-- Attachment #1: Type: text/plain, Size: 1907 bytes --]

I don't think I'm entirely clear about what you are trying to block, but
I *THINK* I just went through the learning curve to do a similar thing
myself, and was successful.  Check out ebtables.sourceforge.net.  My
requirement was to put a transparent bridge between a router and a
switch, to block or allow CERTAIN traffic based on source and/or
destination IP addresses.  My particular scenario would have been more
appropriately handled by standard iptables, except for that I don't
control the network configuration, so I couldn't change any IP
addresses.
 
Basically, I downloaded the latest ebtables user space utilities, and
the kernel source for 2.6.4, compiled it on my fresh RH9 box, then
compiled the ebtables tools.  Ebtables then gave me the ability to
filter packets at layer two, while bridging.

I'm not at the site today where the firewall is, but I'm going to be
VPNing in later to get the small scripts I used.  Let me know if you
want me to send them as an example.
 
-Steve
 
________________________________

From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org] On Behalf Of Gerry Weaver
Sent: Thursday, March 18, 2004 3:28 AM
To: netfilter@lists.netfilter.org
Subject: iptables bridge filter question
 
Hello All,
 
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
]
 
 
Thanks in advance,
Gerry

[-- Attachment #2: Type: text/html, Size: 8651 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-03-18 23:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox