From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lamont Date: Tue, 05 Aug 2003 19:05:12 +0000 Subject: [LARTC] Luser seeks tc syntax clue Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org I'm trying to set a box up that rate limits everything sent to the outside world, but not limit stuff to my own LAN, using tbf. I don't really understand what I'm doing, and I could do with some help to make this script work. (Please don't bother referring me to the usual documentation. I've read it. And please don't tell me that I want to do something completely different. I don't!) -----------------------------------8<---------------------------------- #!/bin/bash DEV=eth0 LAN2.168.1.0/24 RATE 0kbit LIMIT000 BURST"000 # Clear out old settings tc qdisc del dev $DEV root tc qdisc del dev $DEV ingress # Start loading new stuff tc qdisc add dev $DEV root handle 1: prio # Stuff addressed to LAN goes straight through tc qdisc add dev $DEV parent 1:1 handle 10: prio # Stuff addressed to big wide world gets shaped tc qdisc add dev $DEV parent 1:2 handle 20: tbf limit $LIMIT burst $BURST rate $RATE # Filter on LAN destination address tc filter add dev $DEV parent 10: protocol ip u32 match ip src $LAN flowid 1:1 # Default filter for everything else tc filter add dev $DEV parent 20: protocol ip flowid 1:2 -----------------------------------8<---------------------------------- When I run this script, it says: RTNETLINK answers: No such file or directory Unknown filter "flowid", hence option "1:2" is unparsable Any help gratefully received. TIA. -- Richard Lamont _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/