Skip to contentSkip to conversation

TC on bridge

LARTC fabian 5 participants 9 messages Apr 24, 2001 – Apr 27, 2001

lore
Share & tools
lore

fabian

author
#0 lore raw

Hello lartc,
I have a linux bridge between my mail server and the cisco router (internet)..
The linux bridge can shape the inconmig mail ? ( mail server run windows2000) or outgoing www traffic?
I read some howto's but only talk about linux router (not bridge).

Diagram:

[Mail Server1]  ---\
[www  Server2]  ---  [Bridge Linux] --- [Cisco router]
[xxx  Server3]  ---/

Best regards,
fabian mailto:[email protected]

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

#2 lore raw
In reply to fabian

I completed the diagram :

Quoted 3 lines

[Mail Server1] ---\ eth0
[www Server2] --- [Bridge Linux] --- [Cisco router]
[xxx Server3] ---/ eth1

- Incoming traffic : You have to use eth0 (traffic goes out on NIC eth0) and you have the use the destination ip-address to split the traffic (filter u32 or filter fw+firewall-rules)

- Outgoing traffic : For this you have to use eth1 and you can use the source ip-address to filter the traffic.

I tested it, so I know it's working.

Signature · 3 lines
Staf

More QOS info : http://users.belgacom.net/staf/
Quoted 14 lines · fabian

Hello lartc,
I have a linux bridge between my mail server and the cisco router (internet)..
The linux bridge can shape the inconmig mail ? ( mail server run windows2000) or outgoing www traffic?
I read some howto's but only talk about linux router (not bridge).

Diagram:

[Mail Server1]  ---\
[www  Server2]  ---  [Bridge Linux] --- [Cisco router]
[xxx  Server3]  ---/
Quoted 6 lines

Best regards,
fabian mailto:[email protected]

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

author
#3 lore raw
In reply to fabian

Hello Ramin,

RA> I don't know what the problem is but:

RA> Why don't you upgrade to 2.4 kernel as opposed to 2.2.18? RA> Why don't you upgrade to iptables as opposed to ipchains? I am going to test redhat 7.1 in this week.
anyhow, the stability is a critical point for this system, and I don't have experience working with the kernel 2.4

Regards, fabian

Quoted 5 lines
Quoted 5 lines

Thanks for your replys, then.. someones try to compile the kernel 2.2.18 with wrr-010302 (wrr-linux-2.2.18.patch) /
+ bridge-0.0.9-against-2.2.18.diff /
+ bridge-ipchains-against-0.0.9-against-2.2.18.diff ??? I get error making modules :(

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

author
#4 lore raw
In reply to fabian
Quoted 3 lines
Quoted 3 lines

Why don't you upgrade to 2.4 kernel as opposed to 2.2.18?

Quoted 1 line

2.2.18 with wrr-010302 (wrr-linux-2.2.18.patch) /

CWM> Of course I don't know why, but WRR is less tested on 2.4 kernels (i.e.:
CWM> I have done no real testing except trying it - I have not received any CWM> problem or success repports)

Christian: i get this error message when trying to compile the kernel 2.2.18 modules with wrr and bridge patch:
sch_wrr.c: In function 'mac_classify':
sch_wrr.c:600: structure has no member named 'pkt_bridged' make[2]: *** [shc_werr.o] Error 1
make[2]: *** Leaving directory '/usr/src/linux-2.2.18/net/sched' make[1]: *** [_modsubdir_sched] Error 2
make[1]: *** Leaving directory '/usr/src/linux-2.2.18/net'
make: *** [mod_net] Error 2

Signature · 8 lines
Best regards,
 fabian                            mailto:[email protected]



_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
author
#5 lore raw
In reply to fabian
Quoted 4 lines
Quoted 4 lines

Christian: i get this error message when trying to compile the kernel 2.2.18 modules with wrr and bridge patch:
sch_wrr.c: In function 'mac_classify':
sch_wrr.c:600: structure has no member named 'pkt_bridged'

CWM> Hmm, it seems like wrr is not compatible with this bridge patch.

CWM> To fix the problem you can replace "skb->pkt_bridged" with "0" in CWM> sch_wrr.c.

CWM> You will not be able to use mac classifying mode, then, though.

Ok. I will try it.
I now found the new page of bridge, it moved to
http://bridge.sourceforge.net/ and download the 2.2.19 patch, and i get the same error compiling modules :(

Signature · 8 lines
Best regards,
 fabian                            mailto:[email protected]



_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
#6 lore raw
In reply to fabian

Hello Guys,

Thanks for your replys, then.. someones try to compile the kernel 2.2.18 with wrr-010302 (wrr-linux-2.2.18.patch) /
+ bridge-0.0.9-against-2.2.18.diff /
+ bridge-ipchains-against-0.0.9-against-2.2.18.diff ??? I get error making modules :(

Regards, Fabian.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

#7 lore raw
In reply to fabian

I don't know what the problem is but:

Why don't you upgrade to 2.4 kernel as opposed to 2.2.18? Why don't you upgrade to iptables as opposed to ipchains?

Ramin

Quoted 9 lines · Fabian Alejandro Gervan

Hello Guys,

Thanks for your replys, then.. someones try to compile the kernel 2.2.18 with wrr-010302 (wrr-linux-2.2.18.patch) /
+ bridge-0.0.9-against-2.2.18.diff /
+ bridge-ipchains-against-0.0.9-against-2.2.18.diff ??? I get error making modules :(

Regards, Fabian.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

#8 lore raw
In reply to fabian

Hi,

Quoted 3 lines

Why don't you upgrade to 2.4 kernel as opposed to 2.2.18?

Quoted 1 line

2.2.18 with wrr-010302 (wrr-linux-2.2.18.patch) /

Of course I don't know why, but WRR is less tested on 2.4 kernels (i.e.:
I have done no real testing except trying it - I have not received any problem or success repports)

Christian

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/