Problems with WonderShaper 1.1a
Does anyone have a resons why the following commands will fail?
my kernel (ver 2.4.21) .config seqment is below.
I am running Debian with latest iproute and iptables.
Thanks in advance,
Bryan.
Bryan Nolen
Lead Developer
http://Arc.Net.AU <http://arc.net.au/>
http://cdonline.com.au <http://cdonline.com.au/>
/*****************************************************/
WonderShaper 1.1a using tc binary with htb support
/*****************************************************/
# sh -x ./wshaper + DOWNLINK00 + UPLINK"0 + DEV=ppp0 + NOPRIOHOSTSRC€ + NOPRIOHOSTDST+ NOPRIOPORTSRC+ NOPRIOPORTDST+ '[' '' = status ']' + ./tc qdisc del dev ppp0 root + ./tc qdisc del dev ppp0 ingress + '[' '' = stop ']' + ./tc qdisc add dev ppp0 root handle 1: cbq avpkt 1000 bandwidth 10mbit RTNETLINK answers: Invalid argument + ./tc class add dev ppp0 parent 1: classid 1:1 cbq rate 220kbit allot 1500 prio 5 bounded isolated RTNETLINK answers: No such file or directory + ./tc class add dev ppp0 parent 1:1 classid 1:10 cbq rate 220kbit allot 1600 prio 1 avpkt 1000 RTNETLINK answers: No such file or directory + ./tc class add dev ppp0 parent 1:1 classid 1:20 cbq rate 198kbit allot 1600 prio 2 avpkt 1000 RTNETLINK answers: No such file or directory + ./tc class add dev ppp0 parent 1:1 classid 1:30 cbq rate 176kbit allot 1600 prio 2 avpkt 1000 RTNETLINK answers: No such file or directory + ./tc qdisc add dev ppp0 parent 1:10 handle 10: sfq perturb 10 RTNETLINK answers: No such file or directory + ./tc qdisc add dev ppp0 parent 1:20 handle 20: sfq perturb 10 RTNETLINK answers: No such file or directory + ./tc qdisc add dev ppp0 parent 1:30 handle 30: sfq perturb 10 RTNETLINK answers: No such file or directory + ./tc filter add dev ppp0 parent 1:0 protocol ip prio 10 u32 match ip tos 0x10 0xff flowid 1:10 RTNETLINK answers: Invalid argument + ./tc filter add dev ppp0 parent 1:0 protocol ip prio 11 u32 match ip protocol 1 0xff flowid 1:10 RTNETLINK answers: Invalid argument + ./tc filter add dev ppp0 parent 1: protocol ip prio 12 u32 match ip protocol 6 0xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2 flowid 1:10 RTNETLINK answers: Invalid argument + ./tc filter add dev ppp0 parent 1: protocol ip prio 16 u32 match ip src 80 flowid 1:30 RTNETLINK answers: Invalid argument + ./tc filter add dev ppp0 parent 1: protocol ip prio 18 u32 match ip dst 0.0.0.0/0 flowid 1:20 RTNETLINK answers: Invalid argument + ./tc qdisc add dev ppp0 handle ffff: ingress RTNETLINK answers: Invalid argument + ./tc filter add dev ppp0 parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate 1200kbit burst 10k drop flowid :1 RTNETLINK answers: Invalid argument
/*********************************/
Kernel 2.4.21 .config segment...
/*********************************/
#
# QoS and/or fair queueing
#CONFIG_NET_SCHED=yCONFIG_NET_SCH_CBQ=yCONFIG_NET_SCH_HTB=yCONFIG_NET_SCH_CSZ=yCONFIG_NET_SCH_PRIO=yCONFIG_NET_SCH_RED=yCONFIG_NET_SCH_SFQ=yCONFIG_NET_SCH_TEQL=yCONFIG_NET_SCH_TBF=yCONFIG_NET_SCH_GRED=yCONFIG_NET_SCH_DSMARK=yCONFIG_NET_SCH_INGRESS=yCONFIG_NET_QOS=yCONFIG_NET_ESTIMATOR=yCONFIG_NET_CLS=yCONFIG_NET_CLS_TCINDEX=yCONFIG_NET_CLS_ROUTE4=yCONFIG_NET_CLS_ROUTE=yCONFIG_NET_CLS_FW=yCONFIG_NET_CLS_U32=yCONFIG_NET_CLS_RSVP=yCONFIG_NET_CLS_RSVP6=yCONFIG_NET_CLS_POLICE=y
# Networking options
#CONFIG_IP_ADVANCED_ROUTER=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_FWMARK=yCONFIG_IP_ROUTE_NAT=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_TOS=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_ROUTE_LARGE_TABLES=y
Bryan Nolen
Lead Developer
http://Arc.Net.AU <http://arc.net.au/>
http://cdonline.com.au <http://cdonline.com.au/>
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Are you sure that ppp0 is alive then you are aplying these rules?
----- Original Message -----
From: "Bryan Nolen" <[email protected]>
To: <[email protected]>
Sent: Tuesday, December 16, 2003 1:15 PM
Subject: [LARTC] Problems with WonderShaper 1.1a
Does anyone have a resons why the following commands will fail?
my kernel (ver 2.4.21) .config seqment is below.
I am running Debian with latest iproute and iptables.
Thanks in advance,
Bryan.
Bryan Nolen
Lead Developer
http://Arc.Net.AU <http://arc.net.au/>
http://cdonline.com.au <http://cdonline.com.au/>
/*****************************************************/
WonderShaper 1.1a using tc binary with htb support
/*****************************************************/
# sh -x ./wshaper + DOWNLINK00 + UPLINK"0 + DEV=ppp0 + NOPRIOHOSTSRC€ + NOPRIOHOSTDST+ NOPRIOPORTSRC+ NOPRIOPORTDST+ '[' '' = status ']' + ./tc qdisc del dev ppp0 root + ./tc qdisc del dev ppp0 ingress + '[' '' = stop ']' + ./tc qdisc add dev ppp0 root handle 1: cbq avpkt 1000 bandwidth 10mbit RTNETLINK answers: Invalid argument + ./tc class add dev ppp0 parent 1: classid 1:1 cbq rate 220kbit allot 1500 prio 5 bounded isolated RTNETLINK answers: No such file or directory + ./tc class add dev ppp0 parent 1:1 classid 1:10 cbq rate 220kbit allot 1600 prio 1 avpkt 1000 RTNETLINK answers: No such file or directory + ./tc class add dev ppp0 parent 1:1 classid 1:20 cbq rate 198kbit allot 1600 prio 2 avpkt 1000 RTNETLINK answers: No such file or directory + ./tc class add dev ppp0 parent 1:1 classid 1:30 cbq rate 176kbit allot 1600 prio 2 avpkt 1000 RTNETLINK answers: No such file or directory + ./tc qdisc add dev ppp0 parent 1:10 handle 10: sfq perturb 10 RTNETLINK answers: No such file or directory + ./tc qdisc add dev ppp0 parent 1:20 handle 20: sfq perturb 10 RTNETLINK answers: No such file or directory + ./tc qdisc add dev ppp0 parent 1:30 handle 30: sfq perturb 10 RTNETLINK answers: No such file or directory + ./tc filter add dev ppp0 parent 1:0 protocol ip prio 10 u32 match ip tos 0x10 0xff flowid 1:10 RTNETLINK answers: Invalid argument + ./tc filter add dev ppp0 parent 1:0 protocol ip prio 11 u32 match ip protocol 1 0xff flowid 1:10 RTNETLINK answers: Invalid argument + ./tc filter add dev ppp0 parent 1: protocol ip prio 12 u32 match ip protocol 6 0xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2 flowid 1:10 RTNETLINK answers: Invalid argument + ./tc filter add dev ppp0 parent 1: protocol ip prio 16 u32 match ip src 80 flowid 1:30 RTNETLINK answers: Invalid argument + ./tc filter add dev ppp0 parent 1: protocol ip prio 18 u32 match ip dst 0.0.0.0/0 flowid 1:20 RTNETLINK answers: Invalid argument + ./tc qdisc add dev ppp0 handle ffff: ingress RTNETLINK answers: Invalid argument + ./tc filter add dev ppp0 parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate 1200kbit burst 10k drop flowid :1 RTNETLINK answers: Invalid argument
/*********************************/
Kernel 2.4.21 .config segment...
/*********************************/
#
# QoS and/or fair queueing
#CONFIG_NET_SCHED=yCONFIG_NET_SCH_CBQ=yCONFIG_NET_SCH_HTB=yCONFIG_NET_SCH_CSZ=yCONFIG_NET_SCH_PRIO=yCONFIG_NET_SCH_RED=yCONFIG_NET_SCH_SFQ=yCONFIG_NET_SCH_TEQL=yCONFIG_NET_SCH_TBF=yCONFIG_NET_SCH_GRED=yCONFIG_NET_SCH_DSMARK=yCONFIG_NET_SCH_INGRESS=yCONFIG_NET_QOS=yCONFIG_NET_ESTIMATOR=yCONFIG_NET_CLS=yCONFIG_NET_CLS_TCINDEX=yCONFIG_NET_CLS_ROUTE4=yCONFIG_NET_CLS_ROUTE=yCONFIG_NET_CLS_FW=yCONFIG_NET_CLS_U32=yCONFIG_NET_CLS_RSVP=yCONFIG_NET_CLS_RSVP6=yCONFIG_NET_CLS_POLICE=y
# Networking options
#CONFIG_IP_ADVANCED_ROUTER=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_FWMARK=yCONFIG_IP_ROUTE_NAT=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_TOS=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_ROUTE_LARGE_TABLES=y
Bryan Nolen
Lead Developer
http://Arc.Net.AU <http://arc.net.au/>
http://cdonline.com.au <http://cdonline.com.au/>
_______________________________________________
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/
Yes indeedy
Problem was I was running wrong kernel (I have 5 different flavours - it’s a dev box....)
Mea culpa
Quoted 8 lines
-----Original Message-----
Sent: Wednesday, 17 December 2003 12:35 AMAre you sure that ppp0 is alive then you are aplying these rules?
----- Original Message -----
From: "Bryan Nolen" <[email protected]>
Sent: Tuesday, December 16, 2003 1:15 PM
<SNIP>
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/