From: Arno Date: Tue, 16 Mar 2004 14:00:39 +0000 Subject: Re: [LARTC] Multiple tc filter rules Message-Id: <20040316150039.06b8d2ef.arno@disconnect.de> List-Id: References: <200403161109.31512.jonathan.naylor@w3z.co.uk> In-Reply-To: <200403161109.31512.jonathan.naylor@w3z.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi Jonathan, On Tue, 16 Mar 2004 11:09:31 +0000 Jonathan Naylor wrote: > I am in the position of needing to filter on two parameters, I need to filter > on IP address and I also need to filter on the value of a connection mark. I > understand the syntax of the tc filter command for each, but how can I > combine them ? Is it possible to put the two tc filter commands in series or > is there some syntax to do it in one tc filter command ? Well, I think it's easiest include the IP-Filtering into iptables like this: iptables -t mangle -A -[d|s] -j MARK --set-mark 1 and then set up a filter with tc that directs the traffic to the right class. Regards, Arno. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/