From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Balint Laszlo BILLER" Date: Thu, 17 Jul 2003 08:23:27 +0000 Subject: [LARTC] masquerade and tc problem Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi, My friend uses ipchains with kernel 2.4.21 :) It's funny but it's true. The problem is that he marks the packets and after this the tc filter doesn't catch them. ipchains -A input -s 192.168.1.41/28 -j ACCEPT -m 0x2 -t 0xff 0x2 ipchains -A forward -s 192.168.1.41/28 -j MASQ -m 0x2 ipchains -A input -s 192.168.1.240 -j ACCEPT -m 0x3 ipchains -A forward -s 192.168.1.240 -j MASQ -m 0x3 And the filter: tc filter add dev eth0 protocol ip parent 1:0 handle 2 fw classid 1:2 And after all no packets traverse the following class: tc class add dev eth0 parent 1:0 classid 1:2 htb rate 1kbit ceil 2kbit prio 20 (rates are examples only for testing). Any ideas? Thanks, Balint Laszlo BILLER, .:[=SysNet=]:. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/