Re: [leaf-user] easy traffic shaping?
Howdy... I finally got to installing wondershaper ... I cannot figure out what kernel modules I need, and can't find the jnilos/netsched directory (where? leaf.sourceforge.net?). Mind clarifying a bit? -bryan S Mohan wrote: Just take wondershaper (htb version is better) from http://lartc.org. If you do not want shorewall, do not include it in your syslinux.cfg configuration. Make sure you have all the modules for shaping. You will find them in jnilos area under netsched directory - one module for each filter/ classifier, qdisc type and device like ingress and imq. Put wondershaper in the start up /etc/init.d maybe as S98 so that it is run last just before rmnologin script. Need more help? Just buzz me. I'm configuring this with a Bering box as a bridge to transparently plug in into a production network. Mohan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bryan T. Schmidt Sent: 03 December 2002 12:53 To: [EMAIL PROTECTED] Subject: [leaf-user] easy traffic shaping? Allo out there... Finally upgrade my old Eiger box to Bering. I wanted to try some traffic shaping, but I'm a bit intimidated by tc.lrp and all the shorewall stuff surrounding it. Basically all I want to do is limit my web traffic so that it cannot use more than 3/4 of my bandwidth. Anyone know an easy way to work this or have simple examples? Shapecfg seems to have gone the way of the VMS bird. Gack, I'm dating myself here, arent I? -bryan --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html -- Bryan T. Schmidt Systems/Network Administrator Profitool Inc. [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
Re: [leaf-user] easy traffic shaping?
--On Monday, December 30, 2002 11:03:47 AM -0700 Bryan T. Schmidt [EMAIL PROTECTED] wrote: Howdy... I finally got to installing wondershaper ... I cannot figure out what kernel modules I need, and can't find the jnilos/netsched directory (where? leaf.sourceforge.net?). Mind clarifying a bit? If you select the HTB version of wondershaper, you will need: sch_ingress cls_u32 sch_sfq sch_htb More information is available at http://www.shorewall.net/traffic_shaping.htm. -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline,\ http://shorewall.sf.net Washington USA \ [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
Re: [leaf-user] easy traffic shaping?
Le Lundi 30 Décembre 2002 19:03, Bryan T. Schmidt a écrit : Howdy... I finally got to installing wondershaper ... I cannot figure out what kernel modules I need, and can't find the jnilos/netsched directory (where? leaf.sourceforge.net?). Mind clarifying a bit? To find a given module and its possible depencies you should look through the Bering kernel module.dep file available here: http://leaf.sourceforge.net/devel/jnilo/bering/latest/modules/2.4.18/ Bering 1.0-stable is provided with a 2.4.18 kernel patched for htb2 support. Available here: http://leaf.sf.net/devel/jnilo/bering/latest/modules/2.4.18/kernel/net/sched/sch_htb.o Then you need the corresponding tc.lrp http://leaf.sourceforge.net/devel/jnilo/bering/latest/packages/tc.lrp Jacques --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
Re: [leaf-user] easy traffic shaping?
--On Monday, December 30, 2002 11:36:37 AM -0700 Bryan T. Schmidt [EMAIL PROTECTED] wrote: Gotcha. Thanks. I already had tc.lrp. Now it seems to barf on anything related to a qdisc. Am i missing a module yet? S. Mohan referred to an imq but I cannot find it. The documentation at lartc.org is pretty greek to me... here is output after running wshaper.htb with -x: (Note Illegal Rate) barricade: -root- # ./wshaper.htb start + DOWNLINK=640 + UPLINK=600 + DEV=eth0 + NOPRIOHOSTSRC= + NOPRIOHOSTDST= + NOPRIOPORTSRC= + NOPRIOPORTDST= + [ start = status ] + tc qdisc del dev eth0 root + tc qdisc del dev eth0 ingress + [ start = stop ] + tc qdisc add dev eth0 root handle 1: htb default 20 + tc class add dev eth0 parent 1: classid 1:1 htb rate 600kbit burst 6k + tc class add dev eth0 parent 1:1 classid 1:10 htb rate 600kbit burst 6k prio 1 + tc class add dev eth0 parent 1:1 classid 1:20 htb rate $[9*600/10]kbit burst 6 k prio 2 Illegal rate That looks like an incompatibility between the wonder shaper script and ash. I suspect that you will need to change all occurences of '$[...]' with '$((...))' The joys of LEAF... -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline,\ http://shorewall.sf.net Washington USA \ [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
Re: [leaf-user] easy traffic shaping?
Gotcha. Thanks. I already had tc.lrp. Now it seems to barf on anything related to a qdisc. Am i missing a module yet? S. Mohan referred to an imq but I cannot find it. The documentation at lartc.org is pretty greek to me... here is output after running wshaper.htb with -x: (Note Illegal Rate) barricade: -root- # ./wshaper.htb start + DOWNLINK=640 + UPLINK=600 + DEV=eth0 + NOPRIOHOSTSRC= + NOPRIOHOSTDST= + NOPRIOPORTSRC= + NOPRIOPORTDST= + [ start = status ] + tc qdisc del dev eth0 root + tc qdisc del dev eth0 ingress + [ start = stop ] + tc qdisc add dev eth0 root handle 1: htb default 20 + tc class add dev eth0 parent 1: classid 1:1 htb rate 600kbit burst 6k + tc class add dev eth0 parent 1:1 classid 1:10 htb rate 600kbit burst 6k prio 1 + tc class add dev eth0 parent 1:1 classid 1:20 htb rate $[9*600/10]kbit burst 6 k prio 2 Illegal rate Usage: ... qdisc add ... htb [default N] [r2q N] default number of class to which unclassified packets are sent {1} dcache whether to use dequeue cache; it limits fairness but makes possible to use HTB on very fast devices r2q DRR quantums are computed as rate in Bps/r2q {10} debugstring of 16 numbers each 0-3 {0} ... class add ... htb rate R1 burst B1 [prio P] [slot S] [pslot PS] [ceil R2] [cburst B2] [gated] rate rate allocated to this class (class can still borrow) burstmax bytes burst which can be accumulated during idle period {computed} ceil definite upper class rate (no borrows) {rate} cburst burst but for ceil {computed} mtu max packet size {1600} prio priority of leaf; lower are served first {0} inject distance to parent we inject bandwidth to {100} + tc class add dev eth0 parent 1:1 classid 1:30 htb rate $[8*600/10]kbit burst 6 k prio 2 Illegal rate Usage: ... qdisc add ... htb [default N] [r2q N] default number of class to which unclassified packets are sent {1} dcache whether to use dequeue cache; it limits fairness but makes possible to use HTB on very fast devices r2q DRR quantums are computed as rate in Bps/r2q {10} debugstring of 16 numbers each 0-3 {0} ... class add ... htb rate R1 burst B1 [prio P] [slot S] [pslot PS] [ceil R2] [cburst B2] [gated] rate rate allocated to this class (class can still borrow) burstmax bytes burst which can be accumulated during idle period {computed} ceil definite upper class rate (no borrows) {rate} cburst burst but for ceil {computed} mtu max packet size {1600} prio priority of leaf; lower are served first {0} inject distance to parent we inject bandwidth to {100} + tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10 RTNETLINK answers: Invalid argument + tc qdisc add dev eth0 parent 1:20 handle 20: sfq perturb 10 RTNETLINK answers: Invalid argument + tc qdisc add dev eth0 parent 1:30 handle 30: sfq perturb 10 RTNETLINK answers: Invalid argument + tc filter add dev eth0 parent 1:0 protocol ip prio 10 u32 match ip tos 0x10 0x ff flowid 1:10 + tc filter add dev eth0 parent 1:0 protocol ip prio 10 u32 match ip protocol 1 0xff flowid 1:10 + tc filter add dev eth0 parent 1: protocol ip prio 10 u32 match ip protocol 6 0 xff match u8 0x05 0x0f at 0 match u16 0x 0xffc0 at 2 match u8 0x10 0xff at 3 3 flowid 1:10 + tc filter add dev eth0 parent 1: protocol ip prio 18 u32 match ip dst 0.0.0.0/ 0 flowid 1:20 + tc qdisc add dev eth0 handle : ingress + tc filter add dev eth0 parent : protocol ip prio 50 u32 match ip src 0.0.0 .0/0 police rate 640kbit burst 10k drop flowid :1 And here is my lsmod barricade: -root- # lsmod Module PagesUsed by sch_csz 3436 0 (unused) sch_cbq11608 0 sch_teql3180 0 (unused) sch_dsmark 3608 0 (unused) sch_gred4288 0 (unused) cls_u32 4256 3 cls_tcindex 3812 0 (unused) cls_route 3876 0 (unused) cls_fw 2108 0 (unused) sch_prio2144 0 (unused) sch_ingress 1276 1 sch_htb12032 1 ip_nat_irc 2400 0 (unused) ip_nat_ftp 3008 0 (unused) ip_conntrack_irc3104 1 ip_conntrack_ftp3840 1 tulip 37024 1 3c59x 24752 2 ide-probe-mod 7520 0 ide-disk6560 1 ide-mod50948 1 [ide-probe-mod ide-disk] Jacques Nilo wrote: Le Lundi 30 Décembre 2002 19:03, Bryan T. Schmidt a écrit : Howdy... I finally got to installing wondershaper ... I cannot figure out what kernel modules I need, and can't find the jnilos/netsched directory (where? leaf.sourceforge.net?). Mind clarifying a bit? To find a given module and its possible depencies you should look through the Bering kernel module.dep file available here: http://leaf.sourceforge.net/devel/jnilo/bering/latest/modules/2.4.18/ Bering 1.0-stable is provided
Re: [leaf-user] easy traffic shaping?
Hi Bryan, Lince will do this quite easily (with htbinit). The problem is JJ, the main (and only) developer is with the flu and didnt get to update it from Bering 1.0 stable. I guess this week Lince 1.0 Stable will be on the download are :) Finally upgrade my old Eiger box to Bering. I wanted to try some traffic shaping, but I'm a bit intimidated by tc.lrp and all the shorewall stuff surrounding it. Basically all I want to do is limit my web traffic so that it cannot use more than 3/4 of my bandwidth. Anyone know an easy way to work this or have simple examples? Shapecfg seems to have gone the way of the VMS bird. Gack, I'm dating myself here, arent I? -- Jaime Nebrera Herrera [EMAIL PROTECTED] --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
Re: [leaf-user] easy traffic shaping?
Thanks! Shorewall is fine and a great tool, I just get lost in the explanation of how traffic shaping relates to it. I'd be quite curious to take a look at your relevant *.lrp's when you get done. Getting a new T1 this week, so may be full of other firewall work before I get to this one. Thanks for your help, -Bryan S Mohan wrote: Just take wondershaper (htb version is better) from http://lartc.org. If you do not want shorewall, do not include it in your syslinux.cfg configuration. Make sure you have all the modules for shaping. You will find them in jnilos area under netsched directory - one module for each filter/ classifier, qdisc type and device like ingress and imq. Put wondershaper in the start up /etc/init.d maybe as S98 so that it is run last just before rmnologin script. Need more help? Just buzz me. I'm configuring this with a Bering box as a bridge to transparently plug in into a production network. Mohan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bryan T. Schmidt Sent: 03 December 2002 12:53 To: [EMAIL PROTECTED] Subject: [leaf-user] easy traffic shaping? Allo out there... Finally upgrade my old Eiger box to Bering. I wanted to try some traffic shaping, but I'm a bit intimidated by tc.lrp and all the shorewall stuff surrounding it. Basically all I want to do is limit my web traffic so that it cannot use more than 3/4 of my bandwidth. Anyone know an easy way to work this or have simple examples? Shapecfg seems to have gone the way of the VMS bird. Gack, I'm dating myself here, arent I? -bryan --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html -- Bryan T. Schmidt Systems/Network Administrator Profitool Inc. [EMAIL PROTECTED] --- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
[leaf-user] easy traffic shaping?
Allo out there... Finally upgrade my old Eiger box to Bering. I wanted to try some traffic shaping, but I'm a bit intimidated by tc.lrp and all the shorewall stuff surrounding it. Basically all I want to do is limit my web traffic so that it cannot use more than 3/4 of my bandwidth. Anyone know an easy way to work this or have simple examples? Shapecfg seems to have gone the way of the VMS bird. Gack, I'm dating myself here, arent I? -bryan --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html