From mboxrd@z Thu Jan 1 00:00:00 1970 From: Omar Armas Date: Wed, 26 Jun 2002 00:22:33 +0000 Subject: [LARTC] htb problem MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-t33xKggeRpLyFvqSpWtO" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --=-t33xKggeRpLyFvqSpWtO Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 _______________________ --=-t33xKggeRpLyFvqSpWtO Content-Type: text/html; charset=utf-8
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
_______________________
--=-t33xKggeRpLyFvqSpWtO-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/