From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Tue, 30 Nov 2004 12:23:01 +0000 Subject: Re: [LARTC] SEPARATING VOIP AND SURFING Message-Id: <41AC6625.2070305@dsl.pipex.com> List-Id: References: <20041109175203.11372.qmail@web41524.mail.yahoo.com> In-Reply-To: <20041109175203.11372.qmail@web41524.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Ricardo Soria wrote: > So, returning to the question that originated this > discussion, how can I diferentiate/separate incoming > and outgoing traffic for the same interface (eth0), > without confusing each other, and without using IMQ > devices if possible ?? My mails don't seem to be getting to/from LARTC - I assume you got my other reply. I put to mark on MAC - this only works for src MAC with iptables in prerouting or forward eg. iptables -I PREROUTING -t mangle -m mac --mac-source AA:BB:CC:DD:EE:FF -j MARK --set-mark 123 For dst MAC address you need to use u32 eg. tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match u16 0x0800 0xFFFF at -2 match u32 0xCCDDEEFF 0xFFFFFFFF at -12 match u16 0xAABB 0xFFFF at -14 flowid 1:1 Andy. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/