Re: [LARTC] htb errors, wrong patch?
On Saturday 04 October 2003 02:52, Alex wrote: I downloaded iproute2-2.4.7-now-ss010824.tar.gz and I did patched tc with the htb3.6_tc.diff from htb3.6-020525.tgz and when I try to use a htb script I get just errors. I did not patch the kernel, since I use kernel 2.4.21 and I saw on - HTB Homepage that I need to patch it only if I run version 2.4.20 or earlier. Do also need the kernel patch ? Or maybe is something else wrong? RTNETLINK answers: No such file or directory Deleted old root disk on eth0 Unknown filter flowid, hence option 1:10 is unparsable Unknown filter flowid, hence option 1:2 is unparsable RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument Can you post us your commands and do you have the htb qdisc enabled in your kernel config? 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] Client firewall scrueing up bandwith shapeing
Hi Here?s the deal: I have a LAN behind a linux box. The Linux box acts as a NAT to all the hosts behind it. I'm classifying my hosts with iptables: /sbin/iptables -t mangle -A INPUT --in-interface $GREEN_DEV -s 192.168.1.1 -j MARK --set-mark 1 ... /sbin/iptables -t mangle -A INPUT --in-interface $GREEN_DEV -s 192.168.1.7 -j MARK --set-mark 7 /sbin/iptables -t mangle -A OUTPUT --out-interface $GREEN_DEV -d 192.168.1.1 -j MARK --set-mark 1 ... /sbin/iptables -t mangle -A OUTPUT --out-interface $GREEN_DEV -d 192.168.1.7 -j MARK --set-mark 7 /sbin/iptables -t mangle -A PREROUTING --in-interface $GREEN_DEV -s 192.168.1.1 -j MARK --set-mark 1 ... /sbin/iptables -t mangle -A PREROUTING --in-interface $GREEN_DEV -s 192.168.1.7 -j MARK --set-mark 7 /sbin/iptables -t mangle -A POSTROUTING --out-interface $GREEN_DEV -d 192.168.1.1 -j MARK --set-mark 1 ... /sbin/iptables -t mangle -A POSTROUTING --out-interface $GREEN_DEV -d 192.168.1.7 -j MARK --set-mark 7 Then I want to give everybody a rate of 18kbit # clean existing down- and uplink qdiscs, hide errors tc qdisc del dev eth1 root 2 /dev/null /dev/null tc qdisc del dev eth0 root 2 /dev/null /dev/null tc qdisc add dev eth1 root handle 10: htb tc class add dev eth1 parent 10: classid 10:10 htb rate 125kbit ceil 128kbit burst 4k tc class add dev eth1 parent 10:10 classid 10:1 htb rate 18kbit ceil 128kbit prio 2 burst 4k tc qdisc add dev eth1 parent 10:1 handle 1: sfq perturb 10 tc filter add dev eth1 parent 10: protocol ip handle 1 fw classid 10:1 tc filter add dev eth1 parent 10: protocol ip prio 2 u32 match ip src 192.168.1.1 flowid 10:1 tc filter add dev eth1 parent 10: protocol ip prio 3 u32 match ip dst 192.168.1.1 flowid 10:1 ... with hosts 2 to 7 works fine, while bandwidth of host 1 it is not shaped at all (all pakets go to default-root qdisc) The 192.168.1 is runing win xp and Zone Alarm firewall. Most of the hosts are runing WinXP with no problem. My question: Can it be that the packets are not being identified corectly because of the ZA firewall on Host 1? I had problems before with host 1 that blocked some ports with ZA that had the result of freazing the workgroup while it was online. that problem was fixed anyway. Now please dont ask me to try to disable the ZA firewall because i have no access to host1. And another thing: iptraf shows corectly that trafic is made from host 1 and its rate. Thanks ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] htb errors, wrong patch?
I have everything cbq/htb and all the QoS stuff compiled directly in the kernel, not as a module. The script is at http://retea.hostingcenter.ro/htb.txt since is about 46k and is too big to post here. Thanks. Alex - Original Message - From: Stef Coene [EMAIL PROTECTED] To: Alex [EMAIL PROTECTED]; Lartc [EMAIL PROTECTED] Sent: Saturday, October 04, 2003 12:41 PM Subject: Re: [LARTC] htb errors, wrong patch? On Saturday 04 October 2003 02:52, Alex wrote: I downloaded iproute2-2.4.7-now-ss010824.tar.gz and I did patched tc with the htb3.6_tc.diff from htb3.6-020525.tgz and when I try to use a htb script I get just errors. I did not patch the kernel, since I use kernel 2.4.21 and I saw on - HTB Homepage that I need to patch it only if I run version 2.4.20 or earlier. Do also need the kernel patch ? Or maybe is something else wrong? RTNETLINK answers: No such file or directory Deleted old root disk on eth0 Unknown filter flowid, hence option 1:10 is unparsable Unknown filter flowid, hence option 1:2 is unparsable RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument Can you post us your commands and do you have the htb qdisc enabled in your kernel config? 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 mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] Layer 7 support for tcng ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yep, thats right. Does it exist somewhere ? Will it ever ? Currently i use tcng for my bandwidth shaping and i really didnt want to change to bare tc scripts. - -- +-+ |PGP Public Key: http://sys49152.net/pubkey.asc | +-+ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/f3HHRslfH2ZQjFARArZFAKDmAOz0u0t2M+Rd8UIAah1FouwzLACdHnVW zALy7xbns/KUZYk+87l8LwI= =JIhc -END PGP SIGNATURE- ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] HTB qdisc, why quantum = 200000?
Hi, Can anybody explain to me why the upper limit of quantum of a HTB class is 20? Why the author choose this number? What if we expand this number, for instant, 50? Thank you in advance Dong ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/