Skip to contentSkip to conversation

masquerade and tc problem

LARTC Balint Laszlo BILLER 1 participant 1 message Jul 17, 2003

lore
Share & tools
lore
#0 lore raw

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/