Hello. I tried this: $ ./tc qdisc add dev ppp0 root handle 1:0 htb default 12 $ ./tc class add dev ppp0 parent 1:0 classid 1:1 htb rate 125kbit ceil 125kbit $ ./tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 10kbit ceil 125kbit prio 0 $ iptables .... -j MARK --set-mark 11 $ ./tc filter add dev ppp0 parent 1:0 prio 0 protocol ip handle 10 fw flowid 1:10 RTNETLINK answers: Invalid argument Can anybody tell me what''s wrong with the last line? I tried it with tc from http://luxik.cdi.cz/~devik/qos/htb/v3/htb3.6-020525.tgz and from iproute2-2.4.7-340.rpm (SuSE 8.1). Do I need some other kernel module? Regards, Philipp _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On 14-02-2003 at 11:19:10AM +0100, philipp.berndt@gmx.net wrote:> Hello. > > I tried this: > > $ ./tc qdisc add dev ppp0 root handle 1:0 htb default 12 > $ ./tc class add dev ppp0 parent 1:0 classid 1:1 htb rate 125kbit ceil 125kbit > $ ./tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 10kbit ceil 125kbit > prio 0 > > $ iptables .... -j MARK --set-mark 11 > > $ ./tc filter add dev ppp0 parent 1:0 prio 0 protocol ip handle 10 fw flowid > 1:10 > RTNETLINK answers: Invalid argument > > Can anybody tell me what''s wrong with the last line? > > I tried it with tc from > http://luxik.cdi.cz/~devik/qos/htb/v3/htb3.6-020525.tgz > and from iproute2-2.4.7-340.rpm (SuSE 8.1). > > Do I need some other kernel module?Recompile Your kernel with option CONFIG_NET_CLS_FW. Networking options --->QoS and/or fair queueing --->Firewall based classifier Rgds, Bartek.
Hello Bartek, Thanks a lot! Philipp> > Do I need some other kernel module? > > Recompile Your kernel with option CONFIG_NET_CLS_FW. > Networking options --->QoS and/or fair queueing --->Firewall based > classifier > > Rgds, > Bartek._______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Is there a recommended .config file for building a good router/firewall kernel? I see ETINC has samples for 2.4.12, 2.4.17 and 2.4.19 in their BWMGR product trial version, but I don''t think it uses LARTC''s methods. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On 14-02-2003 at 10:26:38AM -0600, Joshua Daniel Franklin wrote: JDF> Is there a recommended .config file for building a good JDF> router/firewall kernel? JDF> It depends on what You want to do. Here are nice tools with descriptions: http://www.linuxvirtualserver.org/ JDF> I see ETINC has samples for 2.4.12, 2.4.17 and 2.4.19 in JDF> their BWMGR product trial version, but I don''t think it uses JDF> LARTC''s methods. JDF> Ask in etinc. There are a lot of commercial products with similar applications like lartc. Rgds, Bartek. -- GPG-Key: http://www.bartek.bicom.pl/public_key.txt pub 1024D/948DE45D 2002-12-12 Bartek Krajnik <bartek@bicom.pl> Primary key fingerprint: 95E9 8E2D 1801 7864 2244 6EAA 03E5 764D 948D E45D