From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Fri, 22 Apr 2005 21:24:20 +0000 Subject: Re: [LARTC] tc filter - based on iptables - MAC - MARK not working Message-Id: <42696B84.3010308@dsl.pipex.com> List-Id: References: <20050419052142.3397.qmail@web32208.mail.mud.yahoo.com> In-Reply-To: <20050419052142.3397.qmail@web32208.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Daniel Dafoe wrote: > I really don't get it : > > Recompiled my kernel dozen times now is > 2.6.11-gentoo-r5 but still packets are marked by > iptables but not shaped by tc. It only works when I > mark packets on source/destination ip > > As soon as I comment last two lines and uncomment the > first one shaping is gone .... So you may need to match on MAC dst rather than src or did you try with just -s 192.168.0.22 alone? Andy. > > iptables -t mangle -A FORWARD -m mac --mac-source > 00-0d-87-60-61-37 -j MARK --set-mark 0x2 > > #iptables -t mangle -A PREROUTING -s 192.168.0.22 -j > MARK --set-mark 0x2 > #iptables -t mangle -A PREROUTING -d 192.168.0.22 -j > MARK --set-mark 0x2 _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc