[LARTC] masquerade and tc problem
Balint Laszlo BILLER
vudumen@sysnet.hu
Thu, 17 Jul 2003 10:23:27 +0200
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=]:.