HTB + NAT on Debian (outgoing traffic shaping problems)
From: Laurynas Butkus (lauris_at_night.lt)
Date: 05/12/04
- Next message: Allan Wingenbach: "Re: Multiple MAC addresses on one NIC"
- Previous message: Michael Mezheritsky: "Compose HTTP packet from program"
- Next in thread: joseph philip: "Re: HTB + NAT on Debian (outgoing traffic shaping problems)"
- Reply: joseph philip: "Re: HTB + NAT on Debian (outgoing traffic shaping problems)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 12 May 2004 05:17:27 -0700
hello,
I'm running Debian Woody with 2.4.26 kernel. I have 3 NIC:
eth0 - 192.168.0.0 subnet
eth1 - 192.168.2.0 subnet
eth2 - DSL link
there are ~5 computers in every subnet and I want them to get equal
incoming and outgoing traffic with possibility to borrow unused
channel.
I have successfully used htb.init to shape my incoming traffic but I
ran into problems with outgoing. I try to mark outgoing packets with
iptables, but it doesn't work...
I do marking like this:
iptables -t mangle -A PREROUTING -s 192.168.2.10 -j MARK --set-mark
101
then NAT:
$IPT -t nat -A POSTROUTING -s $FRIEND -j SNAT --to $IP_BLUE
then in sysconfig:
cat ./eth2
DEFAULT=2
cat ./eth2-2.root
# root class containing total bandwidth
RATE=320Kbit
MTU=300
cat ./eth2-2\:101.madcrock
RATE=1Kbit
MARK=101
LEAF=sfq
I try to shape myself down to 1Kbit but during upload I get 2 and more
Kb/s...
Please help me to solve this problem.
Thanks in advance,
Laurynas
- Next message: Allan Wingenbach: "Re: Multiple MAC addresses on one NIC"
- Previous message: Michael Mezheritsky: "Compose HTTP packet from program"
- Next in thread: joseph philip: "Re: HTB + NAT on Debian (outgoing traffic shaping problems)"
- Reply: joseph philip: "Re: HTB + NAT on Debian (outgoing traffic shaping problems)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|