[LARTC] New tools

2004-02-12 Thread Tom Olexa
Hello everybody,
I would like to share what I created.
I was working on a router with CBQ  IMQ.
I created some tools working with the above, but maybe with other
setups as well. One is UDP traffic generator, the other is a
speed meter for CBQ.

See
http://exef.xko.cz/others/others.htm

Use in peace,
Tom


-- 
ExEf - the Ultimate Effect Processor - GNU Linux
*** http://exef.xko.cz ***


-- 
Chces kilo? Tak pripoj kamose pres VOLNY.
Vice na http://studentpartner.volny.cz/

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] Multipath problems

2004-02-12 Thread Ral Alexis Betancort Santana

Hi all, I'm getting lot of problems with a multihomed linux router.

I have 3 lines conected to my Linux Box, with 2.6.1 kernel with DgD patches, 
and I have setup it that it does load balancing between the 3 lines, but I 
have a problem with sending specific traffic (mail one) throught only one of 
the lines. let me put my config bellow ..

--- Multiroute.sh -
#!/bin/bash

# CONFIGURATION
IP=/sbin/ip
PING=/bin/ping

#--- LINK PART -
# EXTIFn - interface name
# EXTIPn - outgoing IP
# EXTMn  - netmask length (bits)
# EXTGWn - outgoing gateway
#---

# LINK 1 ADSL ISP1
EXTIF1=eth1
EXTIP1=aaa.bbb.ccc.ddd
EXTM1=30
EXTGW1=aaa.bbb.ccc.eee

# LINK 2 ADSL ISP2
EXTIF2=eth1
EXTIP2=bbb.ccc.ddd.eee
EXTM2=26
EXTGW2=bbb.ccc.ddd.fff

# LINK 3 Cable ISP3
EXTIF3=eth1
EXTIP3=ccc.ddd.eee.fff
EXTM3=30
EXTGW3=ccc.ddd.eee.ggg

#ROUTING PART
# removing old rules and routes

echo removing old rules
${IP} rule del prio 50 table main
${IP} rule del prio 201 from ${EXTIP1}/${EXTM1} table 201
${IP} rule del prio 202 from ${EXTIP2}/${EXTM2} table 202
${IP} rule del prio 203 from ${EXTIP3}/${EXTM3} table 203
${IP} rule del prio 221 table 221
echo flushing tables
${IP} route flush table 201
${IP} route flush table 202
${IP} route flush table 203
${IP} route flush table 221
echo removing tables
${IP} route del table 201
${IP} route del table 202
${IP} route del table 203
${IP} route del table 221

# setting new rules
echo Setting new routing rules

# main table w/o default gateway here
${IP} rule add prio 50 table main
${IP} route del default table main

# identified routes here
${IP} rule add prio 201 from ${EXTIP1}/${EXTM1} table 201
${IP} rule add prio 202 from ${EXTIP2}/${EXTM2} table 202
${IP} rule add prio 203 from ${EXTIP3}/${EXTM3} table 203

${IP} route add default via ${EXTGW1} dev ${EXTIF1} src ${EXTIP1} proto static 
table 201
${IP} route append prohibit default table 201 metric 1 proto static

${IP} route add default via ${EXTGW2} dev ${EXTIF2} src ${EXTIP2} proto static 
table 202
${IP} route append prohibit default table 202 metric 1 proto static

${IP} route add default via ${EXTGW3} dev ${EXTIF3} src ${EXTIP3} proto static 
table 203
${IP} route append prohibit default table 203 metric 1 proto static

# mutipath
${IP} rule add prio 221 table 221

${IP} route add default table 221 proto static \
nexthop via ${EXTGW3} dev ${EXTIF3} weight 1\
nexthop via ${EXTGW2} dev ${EXTIF2} weight 100\
nexthop via ${EXTGW1} dev ${EXTIF1} weight 200

# Multipath for email traffic.
${IP} route add default table mail.traffic proto static \
nexthop via ${EXTGW1} dev ${EXTIF1} weight 1 \
nexthop via ${EXTGW2} dev ${EXTIF2} weight 250\
nexthop via ${EXTGW3} dev ${EXTIF3} weight 100
${IP} rule add prio 230 fwmark 0x02 table mail.traffic

${IP} route flush cache

- Multiroute.sh 

Then I mark the pakets coming from the lan and going to internet mail 
servers ...

iptables -A PREROUTING -t mangle -s ${LAN}/${LAN_MASK} -d !
${DMZ1}/${DMZ1_MASK} -p tcp --dport 25 -j MARK --set-mark 0x02
iptables -A PREROUTING -t mangle -s ${LAN}/${LAN_MASK} -d !
${DMZ1}/${DMZ1_MASK} -p tcp --dport 110 -j MARK --set-mark 0x02

The idea is that mail traffic going to internet try to go out allways by ISP1 
but if it fails (that is why the weight are so diferents) by ISP2 and if that 
one fails too try to go out by ISP3, but in the real scenario mail traffic is 
going out by a radom provider :( ... for the rest of traffic priorities 
should be reversed ... first ISP3,then ISP2 and finaly ISP1 and that part is 
running more or least ... sometimes one conection goes out by ISP2 but that's 
not a big problem ..

I'm doing something wrong ?, why my mail.traffic table is not working as it is 
supposed to

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] htb kernel 2.4.18

2004-02-12 Thread Eddie
Good day all
I'm trying to install htb under redhat 7.3
I got htb and patched the kernel,mad a make menuconfig and selected htb
under qos and did the recompile and started up with the new kernel
now when I run the scrip it says
Any Idea pleas

Setting up htb for eth0 (ceil = 512) Unknown qdisc htb, hence
option default is unparsable
Error: Qdisc htb is classless.
Error: Qdisc htb is classless.
RTNETLINK answers: Invalid argument
Error: Qdisc htb is classless.
RTNETLINK answers: Invalid argument
Error: Qdisc htb is classless.
RTNETLINK answers: No such file or directory
RTNETLINK answers: Invalid argument
Error: Qdisc htb is classless.
RTNETLINK answers: No such file or directory
RTNETLINK answers: Invalid argument
Error: Qdisc htb is classless.
RTNETLINK answers: No such file or directory
RTNETLINK answers: Invalid argument
Error: Qdisc htb is classless.
RTNETLINK answers: No such file or directory
RTNETLINK answers: Invalid argument


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


RE: [LARTC] htb kernel 2.4.18

2004-02-12 Thread Geoff Dornan
Are you using the tc userspace util binary that has HTB in it ?

-Original Message-
From: Eddie [mailto:[EMAIL PROTECTED]
Sent: 12 February 2004 01:24
To: lartc
Subject: [LARTC] htb kernel 2.4.18


Good day all
I'm trying to install htb under redhat 7.3
I got htb and patched the kernel,mad a make menuconfig and selected htb
under qos and did the recompile and started up with the new kernel
now when I run the scrip it says
Any Idea pleas

Setting up htb for eth0 (ceil = 512) Unknown qdisc htb, hence
option default is unparsable
Error: Qdisc htb is classless.
Error: Qdisc htb is classless.
RTNETLINK answers: Invalid argument
Error: Qdisc htb is classless.
RTNETLINK answers: Invalid argument
Error: Qdisc htb is classless.
RTNETLINK answers: No such file or directory
RTNETLINK answers: Invalid argument
Error: Qdisc htb is classless.
RTNETLINK answers: No such file or directory
RTNETLINK answers: Invalid argument
Error: Qdisc htb is classless.
RTNETLINK answers: No such file or directory
RTNETLINK answers: Invalid argument
Error: Qdisc htb is classless.
RTNETLINK answers: No such file or directory
RTNETLINK answers: Invalid argument


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


*
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This mail does not necessarily represent the views of CMC Networks
and should be treated accordingly.

This footnote also confirms that this email message has been 
checked by CMC Networks for the presence of computer viruses.

CMC Networks Security Services
*

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] HTB Script Errors. What is wrong?

2004-02-12 Thread Vlad H.
What can be wrong in this script? Any help is appreciated.

#!/bin/bashtc=/sbin/tcDEV_ISP=eth0DEV_LAN=eth1### DEV_LAN = ETH 1##$tc qdisc del dev $DEV_LAN root 2 /dev/null  /dev/null$tc qdisc add dev $DEV_LAN root handle 1: htb r2q 100 default 58# Main class$tc class add dev $DEV_LAN parent 1: classid 1:2 htb rate 100mbit# Samba$tc class add dev $DEV_LAN parent 1:2 classid 1:21 htb rate 50mbit ceil 60mbit prio 7# FTP Local$tc class add dev $DEV_LAN parent 1:2 classid 1:22 htb rate 20mbit ceil 60mbit prio 7# FTP Metropolitan$tc class add dev $DEV_LAN parent 1:2 classid 1:23 htb rate 2mbit ceil 2mbit prio 6# SSH Local$tc class add dev $DEV_LAN parent 1:2 classid 1:24 htb rate 1mbit ceil 1mbit prio 7# ICMP$tc class add dev $DEV_LAN parent 1:2 classid 1:25 htb rate 24kbit ceil 512kbi
 t prio
 1# Counter Strike$tc class add dev $DEV_LAN parent 1:2 classid 1:26 htb rate 5mbit ceil 5mbit prio 1# International$tc class add dev $DEV_LAN parent 1:2 classid 1:5 htb rate 600kbit# ACK$tc class add dev $DEV_LAN parent 1:5 classid 1:51 htb rate 40kbit ceil 40kbit prio 1# DNS$tc class add dev $DEV_LAN parent 1:5 classid 1:52 htb rate 40kbit ceil 40kbit prio 1# HTTP$tc class add dev $DEV_LAN parent 1:5 classid 1:53 htb rate 330kbit ceil 500kbit prio 2# IRC$tc class add dev $DEV_LAN parent 1:5 classid 1:54 htb rate 30kbit ceil 500kbit prio 3# MAIL$tc class add dev $DEV_LAN parent 1:5 classid 1:55 htb rate 30kbit ceil 500kbit prio 6# DC++ Traffic$tc class add dev $DEV_LAN parent 1:5 classid 1:56 htb rate 60kbit ceil 500kbit prio 4# KaZZa Traffic$tc class add dev $DEV_LAN parent 1:5 classid 1:57 htb rate 30kbit ceil 500kbit prio 6# Default Traffic$tc class add dev $DEV_LAN parent 1:5 classid 1:58 htb
  rate
 30kbit ceil 500kbit prio 7
# Samba Filters #10.0.2.1 Samba Filters$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 7 u32 \match ip sport 139 0x \match ip src 10.0.2.1 \flowid 1:21$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 7 u32 \match ip sport 138 0x \match ip src 10.0.2.1 \flowid 1:21$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 7 u32 \match ip sport 137 0x \match ip src 10.0.2.1 \flowid 1:21
# FTP Local Filters#10.0.2.1 FTP Local Filters$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 7 u32 \match ip sport 20 0x \match ip src 10.0.2.1 \flowid 1:22$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 7 u32 \match ip sport 21 0x \match ip src 10.0.2.1 \flowid 1:22
# FTP Metropolitan Filters$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 6 u32 \ match ip sport 20 0x \ match ip src xxx.xxx.0.0/16 \ flowid 1:23
# SSH Local Filters# TOS Minimum Delay Traffic Filter$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 7 u32 \match ip tos 0x10 0xff \flowid 1:24#10.0.2.1 SSH Local Filters$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 7 u32 \match ip sport 22 0x \match ip src 10.0.2.1 \flowid 1:24
# ICMP Filters$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 1 u32 \match ip protocol 1 0xff \flowid 1:25
# Counter Strike Filters$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 1 u32 \match ip sport 27015 0x \flowid 1:26$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 1 u32 \match ip sport 27016 0x \flowid 1:26$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 1 u32 \match ip sport 27017 0x \flowid 1:26# Default Class Filters$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 7 u32 \ match ip src 0.0.0.0/0 \ flowid 1:58
# ACKs Filters$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 1 u32 \match ip protocol 6 0xff \match u8 0x05 0x0f at 0 \match u16 0x 0xffc0 at 2 \match u8 0x10 0xff at 33 \flowid 1:51
# DNS Filters$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 1 u32 \ match ip dport 53 0x \ flowid 1:52
# HTTP Filters$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 2 u32 \match ip sport 80 0x \flowid 1:53$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 2 u32 \match ip sport 8080 0x \flowid 1:53$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 2 u32 \match ip sport 443 0x \flowid 1:53
# MSN Filters$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 2 u32 \match ip dport 1863 0x \flowid 1:53
# IRC Filters$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 3 u32 \match ip sport 6665 0x \flowid 1:54$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 3 u32 \match ip sport  0x \flowid 1:54$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 3 u32 \match ip sport 6667 0x \flowid 1:54$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 3 u32 \match ip sport 6668 0x \flowid 1:54$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 3 u32 \match ip sport 6669 0x \flowid 1:54
# Mail Filters$tc filter add dev $DEV_LAN parent 1:0 protocol ip prio 6 u32 

Re: [LARTC] iproute2 and kernel 2.6.1/2

2004-02-12 Thread Dale Gallagher
- Corey Hickey wrote -
 Compilation works fine for me with Debian Sarge, Linux
 2.6.1-mm1, and gcc 3.3.2. Without knowing what errors
 you're having, I cannot even speculate as to what's
 wrong...

Sorry, you have a point ;-)

Ok, running 2.6.1 here, but really need to compile for
a (remote) machine with 2.6.2 on it.  I've attempted to
upgrade my local installation to 2.6.2, but results in
an irritating buzzing noise! Dell Latitude C600 laptop.
So, until I resolve this issue, or am physically at the
box running 2.6.2, it'd be pointless to give errors.

Will post again when I have the errors (if any) under
kernel 2.6.2.  Thanks for responding.

 iproute2-2.4.7-now-ss020116-try.tar.gz. Is that the
 latest, or am I not finding a more up-to-date mirror?

This is also the most recent I was able to track down.

cheers
Dale
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] HFSC usage

2004-02-12 Thread Remus



Hi folks,

Is anybody using HFSC http://trash.net/~kaber/hfsc/?

I would like to get script examples if 
possible,in more less clear format.

There is a new IMQ port for 2.4 and 2.6 
kernelshttp://pupa.da.ru/imq/(just module, no 
needs to patch kernel or iptables) 
and it seems to be much easy to use hfsc than htb.


Thanks in advance

Remus


RE: [LARTC] HFSC usage

2004-02-12 Thread ThE LinuX_KiD

Hi,

In README seems that your patchs doesn't with egress,

Please, tell me if you want to mean that patch works
or not with:

iptables -t mangle -A POSTROUTING . -j IMQ  ???

thank you.
Andres




-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nombre de Remus
Enviado el: Jueves, 12 de Febrero de 2004 10:26 a.m.
Para: [EMAIL PROTECTED]
Asunto: [LARTC] HFSC usage


Hi folks,

Is anybody using HFSC http://trash.net/~kaber/hfsc/?

I would like to get script examples if possible, in more less clear format.

There is a new IMQ port for 2.4 and 2.6 kernels http://pupa.da.ru/imq/ (just
module, no needs to patch kernel or iptables)
and it seems to be much easy to use hfsc than htb.


Thanks in advance

Remus

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] Solution: iproute2 and kernel 2.6.1

2004-02-12 Thread Dale Gallagher
Thanks Toth

- Toth Szabolcs wrote -
 I have read on a mail list that you should install the
 db-4.1.25 Berkeley DB 4.1.25) get the
 iproute2-2.4.7-now-ss020116-try.tar.gz and patch which
 you need.

Woohoo!  Finally, an answer which just happened to point
me in the right direction.  Also, I spent a little more
time scouring through the compile errors.

The solution is in fact a mixed bag ;-)  The code uses
a hack to include db.h from a BerkeleyDB 3.x install. I
have BekeleyDB 4.1.25, so simply edited the Makefile
to reflect the difference!

File iproute2/include-glibc/db.h gives the hack away ;-)

- snip iproute2/include-glibc/db.h -
...

The simplest trick which I was able to invent is to
write fake db.h including db_185.h and adding
-I/usr/include/db3 to CFLAGS.
...

#include db_185.h

- /snip iproute2/include-glibc/db.h -

The solution was to chang the following line in
iproute2/Makefile from:

GLIBCFIX=-I../include-glibc -I/usr/include/db3

to:

GLIBCFIX=-I../include-glibc -I/usr/include/db4

and make sure that KERNEL_INCLUDE pointed to, which
I'd done from the very beginning.

 KERNEL_INCLUDE=/usr/src/linux-2.6.1/include

I'm one happy camper now *grin*

Thanks
Dale
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] HFSC usage

2004-02-12 Thread Remus
Hi Andres,

Why you egrees for the IMQ?

Kernel already has egrees, the problem is only with ingress and it is why we
need IMQ.
As I wrote in email you dont have to pacth kernel or iptables.
Just use PREROUTING mangle to mark with iptables.

Regards

Remus

- Original Message - 
From: ThE LinuX_KiD [EMAIL PROTECTED]
To: Remus [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 2:57 PM
Subject: RE: [LARTC] HFSC usage



 Hi,

 In README seems that your patchs doesn't with egress,

 Please, tell me if you want to mean that patch works
 or not with:

 iptables -t mangle -A POSTROUTING . -j IMQ  ???

 thank you.
 Andres




 -Mensaje original-
 De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 nombre de Remus
 Enviado el: Jueves, 12 de Febrero de 2004 10:26 a.m.
 Para: [EMAIL PROTECTED]
 Asunto: [LARTC] HFSC usage


 Hi folks,

 Is anybody using HFSC http://trash.net/~kaber/hfsc/?

 I would like to get script examples if possible, in more less clear
format.

 There is a new IMQ port for 2.4 and 2.6 kernels http://pupa.da.ru/imq/
(just
 module, no needs to patch kernel or iptables)
 and it seems to be much easy to use hfsc than htb.


 Thanks in advance

 Remus

 ___
 LARTC mailing list / [EMAIL PROTECTED]
 http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


RE: [LARTC] HFSC usage

2004-02-12 Thread rubens


 In README seems that your patchs doesn't with egress,

Look at the source, the egress hooks are commented. You can remove them
and use, at your own risk because it's the most likely factor to crash IMQ
deployments.

 Please, tell me if you want to mean that patch works
 or not with:

 iptables -t mangle -A POSTROUTING . -j IMQ  ???

Roy's new code doesn't need iptables to direct the traffic, it just
take
all the traffic directly from the kernel.


Rubens


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] HFSC usage

2004-02-12 Thread rubens


On Thu, 12 Feb 2004, Remus wrote:

 Why you egrees for the IMQ?

In order to make traffic policies for multiple uplinks, or policies that
measure input+output traffic. That's far less common than ingress shaping,
but one of the valid uses for IMQ.



Rubens

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] HFSC usage

2004-02-12 Thread Rimas
Hi Andres,

Why you need egrees for the IMQ?

Kernel already has egrees, the problem is only with ingress and it is why we
need IMQ.
As I wrote in previous email you dont have to pacth kernel or iptables.
Just use PREROUTING mangle to mark with iptables.

Regards

Remus

- Original Message - 
From: ThE LinuX_KiD [EMAIL PROTECTED]
To: Remus [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 2:57 PM
Subject: RE: [LARTC] HFSC usage



 Hi,

 In README seems that your patchs doesn't with egress,

 Please, tell me if you want to mean that patch works
 or not with:

 iptables -t mangle -A POSTROUTING . -j IMQ  ???

 thank you.
 Andres




 -Mensaje original-
 De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 nombre de Remus
 Enviado el: Jueves, 12 de Febrero de 2004 10:26 a.m.
 Para: [EMAIL PROTECTED]
 Asunto: [LARTC] HFSC usage


 Hi folks,

 Is anybody using HFSC http://trash.net/~kaber/hfsc/?

 I would like to get script examples if possible, in more less clear
format.

 There is a new IMQ port for 2.4 and 2.6 kernels http://pupa.da.ru/imq/
(just
 module, no needs to patch kernel or iptables)
 and it seems to be much easy to use hfsc than htb.


 Thanks in advance

 Remus

 ___
 LARTC mailing list / [EMAIL PROTECTED]
 http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


RE: [LARTC] HFSC usage

2004-02-12 Thread ThE LinuX_KiD
Hello

If you have a linux box in order to share your internet
connection in one LAN segment, there is not problem

but you you have two or more LAN ethenets cards in your
linux box, shaping by ip client is difficult because in
your shapping script you have to take account in which 
lan segment is each customer.

I use IMQ egress and shape outbound traffic over it.
Next I attach LAN ethernets over IMQ device

regards


- -Mensaje original-
- De: Remus [mailto:[EMAIL PROTECTED]
- Enviado el: Jueves, 12 de Febrero de 2004 12:49 p.m.
- Para: ThE LinuX_KiD
- CC: [EMAIL PROTECTED]
- Asunto: Re: [LARTC] HFSC usage
- 
- 
- Hi Andres,
- 
- Why you egrees for the IMQ?
- 
- Kernel already has egrees, the problem is only with ingress and 
- it is why we
- need IMQ.
- As I wrote in email you dont have to pacth kernel or iptables.
- Just use PREROUTING mangle to mark with iptables.
- 
- Regards
- 
- Remus
- 
- - Original Message - 
- From: ThE LinuX_KiD [EMAIL PROTECTED]
- To: Remus [EMAIL PROTECTED]; [EMAIL PROTECTED]
- Sent: Thursday, February 12, 2004 2:57 PM
- Subject: RE: [LARTC] HFSC usage
- 
- 
- 
-  Hi,
- 
-  In README seems that your patchs doesn't with egress,
- 
-  Please, tell me if you want to mean that patch works
-  or not with:
- 
-  iptables -t mangle -A POSTROUTING . -j IMQ  ???
- 
-  thank you.
-  Andres
- 
- 
- 
- 
-  -Mensaje original-
-  De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
-  nombre de Remus
-  Enviado el: Jueves, 12 de Febrero de 2004 10:26 a.m.
-  Para: [EMAIL PROTECTED]
-  Asunto: [LARTC] HFSC usage
- 
- 
-  Hi folks,
- 
-  Is anybody using HFSC http://trash.net/~kaber/hfsc/?
- 
-  I would like to get script examples if possible, in more less clear
- format.
- 
-  There is a new IMQ port for 2.4 and 2.6 kernels http://pupa.da.ru/imq/
- (just
-  module, no needs to patch kernel or iptables)
-  and it seems to be much easy to use hfsc than htb.
- 
- 
-  Thanks in advance
- 
-  Remus
- 
-  ___
-  LARTC mailing list / [EMAIL PROTECTED]
-  http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
- 
- 
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] using traffic shaping to limit a local datagram application transmission?

2004-02-12 Thread Chris
I have an probing application that will send data as fast as it can 
(SOCK_DGRAM).  Rather than program shaping into the application I would 
like to know if I can use traffic shaping to slow the application on the 
host system.  i.e., if the queue for the qdisc is full then block (for a 
blocking socket) the socket send/write.  I would like the ability to 
separate the traffic shaping from the application itself.

Will the application be blocked until buffer space frees up or will the 
packet instead be dropped because there is no flow control from a qdisc 
back to local applications?

Thanks,
Chris


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] htb kernel 2.4.18

2004-02-12 Thread Stef Coene
On Thursday 12 February 2004 12:23, Eddie wrote:
 Good day all
 I'm trying to install htb under redhat 7.3
 I got htb and patched the kernel,mad a make menuconfig and selected htb
 under qos and did the recompile and started up with the new kernel
 now when I run the scrip it says
 Any Idea pleas
Do you have tc binary with htb support ??

Stef

-- 
[EMAIL PROTECTED]
 Using Linux as bandwidth manager
     http://www.docum.org/
     #lartc @ irc.openprojects.net
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] HTB Script Errors. What is wrong?

2004-02-12 Thread Stef Coene
On Thursday 12 February 2004 12:51, Vlad H. wrote:
 What can be wrong in this script? Any help is appreciated.
snip

 Local traffic and Counter-Strike traffic are ok. But when it comes to HTTP
 I'm getting huge delays, lost packets on MSN Messenger. I also found these
 errors with dmesg command: HTB init, kernel part version 3.10

 HTB: quantum of class 10025 is small. Consider r2q change.
Change r2q because the quantum of your class is too small :)
See http://www.docum.org/stef.coene/qos/faq/cache/31.html

Stef

-- 
[EMAIL PROTECTED]
 Using Linux as bandwidth manager
     http://www.docum.org/
     #lartc @ irc.openprojects.net
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] Pseudo Bridge with wonder shapper

2004-02-12 Thread Esteban Saa
I'm triying to setup a pseudo bridge with wonder shapper and reverse arp. I readed the advance routing howto but as I'm not a experienced linux user it doens't have enought information on how to do it. Basicly I don't know how to route with linux!

My box is got 2 interfaces, eth0 and eth1 . I'm runing Mandrake 9.2 . I already installed wonder shapper.I got a 255.255.255.240 subnetmask. Part of my network will be at eth0 and other at eth1 . The ISP is at eth0 side. I want to prioritize packets in both directions in way that VOIP and other delay sensitive apps don't get slowed down by web traffic, ftp,mail, etc  I know wonder shapper is the right solution, and hope some one can help me.

Esteban