All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] problem bridging
@ 2007-01-24 20:19 Omar Armas
  2007-01-25 18:46 ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Omar Armas @ 2007-01-24 20:19 UTC (permalink / raw)
  To: bridge

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

Hi, I did a bridge with kernel 2.4.34 and two intel e1000 network cards.

I setup the bridge with:

     /usr/sbin/brctl addbr br0
     /usr/sbin/brctl addif br0 eth0
     /usr/sbin/brctl addif br0 eth1
     /sbin/ifconfig eth0 0.0.0.0 promisc
     /sbin/ifconfig eth1 0.0.0.0 promisc
     /sbin/ifconfig br0 up

My configuration is:

router
|
Bridge
|
LAN


but my problem is that it always passes all traffic, no matter if I  
set FOWARD iptables chain to DROP:
iptables -P FORWARD DROP

When I do this the all traffic and protocols continue passing.
Any idea why?


Omar Armas
Oficina: +52 55 56044655
Movil: 04455 1867 8953
oarmas@mpsnet.net.mx




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

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

* Re: [Bridge] problem bridging
  2007-01-24 20:19 [Bridge] problem bridging Omar Armas
@ 2007-01-25 18:46 ` Stephen Hemminger
  2007-01-25 19:08   ` Omar Armas
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2007-01-25 18:46 UTC (permalink / raw)
  To: Omar Armas; +Cc: bridge

On Wed, 24 Jan 2007 14:19:14 -0600
Omar Armas <oarmas@mpsnet.net.mx> wrote:

> Hi, I did a bridge with kernel 2.4.34 and two intel e1000 network cards.
> 
> I setup the bridge with:
> 
>      /usr/sbin/brctl addbr br0
>      /usr/sbin/brctl addif br0 eth0
>      /usr/sbin/brctl addif br0 eth1

>      /sbin/ifconfig eth0 0.0.0.0 promisc
>      /sbin/ifconfig eth1 0.0.0.0 promisc

These two are unnecessary the bridge does it itself.

>      /sbin/ifconfig br0 up
> 
> My configuration is:
> 
> router
> |
> Bridge
> |
> LAN
> 
> 
> but my problem is that it always passes all traffic, no matter if I  
> set FOWARD iptables chain to DROP:
> iptables -P FORWARD DROP

iptables FORWARD rules apply to routing not bridging

See:
	http://ebtables.sourceforge.net/br_fw_ia/br_fw_ia.html#section6


> When I do this the all traffic and protocols continue passing.
> Any idea why?
> 
> 


-- 
Stephen Hemminger <shemminger@linux-foundation.org>

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

* Re: [Bridge] problem bridging
  2007-01-25 18:46 ` Stephen Hemminger
@ 2007-01-25 19:08   ` Omar Armas
  2007-01-25 19:09     ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Omar Armas @ 2007-01-25 19:08 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: bridge

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

>
> iptables FORWARD rules apply to routing not bridging
>
> See:
> 	http://ebtables.sourceforge.net/br_fw_ia/br_fw_ia.html#section6


I recompiled with kernel 2.6.19, included ebtables modules and now it  
is working, I can filter with iptables and the FORWARD chain.
I just want to confirm, was that the correct way to do it? Would have  
it worked if I had patched 2.4 with ebtables?


Omar Armas
Oficina: +52 55 56044655
Movil: 04455 1867 8953
oarmas@mpsnet.net.mx




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

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

* Re: [Bridge] problem bridging
  2007-01-25 19:08   ` Omar Armas
@ 2007-01-25 19:09     ` Stephen Hemminger
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2007-01-25 19:09 UTC (permalink / raw)
  To: Omar Armas; +Cc: bridge

On Thu, 25 Jan 2007 13:08:23 -0600
Omar Armas <oarmas@mpsnet.net.mx> wrote:

> >
> > iptables FORWARD rules apply to routing not bridging
> >
> > See:
> > 	http://ebtables.sourceforge.net/br_fw_ia/br_fw_ia.html#section6
> 
> 
> I recompiled with kernel 2.6.19, included ebtables modules and now it  
> is working, I can filter with iptables and the FORWARD chain.
> I just want to confirm, was that the correct way to do it? Would have  
> it worked if I had patched 2.4 with ebtables?
> 

Yes. if you don't have ebtables then the bridge does no filtering
> 


-- 
Stephen Hemminger <shemminger@linux-foundation.org>

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

end of thread, other threads:[~2007-01-25 19:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-24 20:19 [Bridge] problem bridging Omar Armas
2007-01-25 18:46 ` Stephen Hemminger
2007-01-25 19:08   ` Omar Armas
2007-01-25 19:09     ` Stephen Hemminger

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.