I have a doubt. What's the correct use of mangle for the next network:
eth0: 200.39.190.249 (public)
eth1: 192.168.101.254 (private)
I make nat with iptables and have the following htb script:
tc qdisc add dev eth1 root handle 1: htb default 30
tc class add dev eth1 parent 1: classid 1:1 htb rate 10mbit burst 15k
tc class add dev eth1 parent 1:1 classid 1:10 htb rate 15kbit ceil 10mbit burst 15k
tc filter add dev eth1 protocol ip parent 1:0 prio 1 handle 1 fw classid 1:10
(did the same rules for eth0), htb2, kernel 2.4.18
next mangle:
iptables -I PREROUTING -t mangle -i eth1 -j MARK --set-mark 1
Well, I've spent hours changing values to mangle: PREROUTING, FORWARD, POSTROUTING, etc.
But I can't make it work. I want that all packets marked as "1" be limited to 15kb.
Is it a mangle or script problem?
What would be the correct mangle rule?
Thanks,
_______________________
Omar Armas MPSNet Telefono: 5559-1211 email: oarmas@mpsnet.com.mx web: http://jabber.mpsnet.net.mx/~oarmas _______________________ |