From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shanker Balan Date: Tue, 30 Apr 2002 14:15:45 +0000 Subject: [LARTC] Re: Fwmark and HTB: Mark not working! Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hello: Shanker Balan wrote, > tc filter add dev eth0 parent 1:0 protocol ip prio 1 handle 1 fw classid 1:10 > iptables -t mangle -A PREROUTING -i eth0 -p tcp -d 192.168.1.24 > --dport 80 -j MARK --set-mark 1 Woohoo! I found my bug! It never quite occurred to me that marking has to be done on packets which _leave_ the interface! :-D tc filter add dev eth0 protocol ip parent 1:0 prio 1 handle 1 fw flowid 1:10 iptables -t mangle -A POSTROUTING -p tcp -s 192.168.1.24 --sport 80 -j MARK --set-mark 1 Thank you for your time. -- Shanu BTW: PiotR, thanx a lot for the wonderful rrdtool scripts, works great over here. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/