Displaying 20 results from an estimated 10000 matches similar to: "htb/iptables for ISP"
2006 Jan 07
2
Sharing a DSL between 40 subnets with htb
I have a network with around 40 /24 subnets that shares a common DSL,
this cries out for shaping so here I am trying to make it work as my
first tc project.
I have managed to cargocult some snippets from this list and tried to
come up with a config, but there are a few things that I''d really like
some input on:
1) Are the NAT''ed addresses available in the PREROUTING table
2007 Aug 26
4
HTB doesn''t give me the promised rate: cpufreq?
Hi all :)
I''ve been using a tc setup for almost two years, but at some point
(probably when I switched to kernel 2.6.x, but I''m not sure) it has
started making something very weird.
For a certain class, the rate is 125000bit and the ceil is
270000bit, but the fastest rate I get is about 75-80000bit, instead of
the "promised" 125000, *with no other traffic in
2004 Jun 12
5
HTB theory?
Hello,
I have been searching for HTB theory documentation and found two interesting
sources - Devik''s page and docum.org FAQ. In some places they are
contradictory which make me think that Devik''s theoretic document (marked
"actual") is just too old and does not reflect the latest changes. After
reading http://www.docum.org/docum.org/faq/cache/30.html and others, I
2007 Feb 03
0
Traffic goes not through filters.
Hi,
I think i have made an error with my filters but i can''t find it.
We have a site to site tunnel and want to separate the traffic in two
queues, http and business.
I''m now filtering on protocol 8080 prio 2 and ip range prio 1.
As i read the manual i''ve seen that the filters are executed by prio
means that all goes trough the buisiness queue because all traffic is
2005 Jul 26
4
wrr vs. htb
Guys
I''m looking for some advice on the following situation:
We''re serving a residential complex with internet, the network has
grown and with it has the problems, below is a descriptive layout of
our current setup:
Connection: ADSL
Down/Up speed: 512kbps/256kbps (1024kbps/256kbps in the near future)
2.0GHz Celeron D with 512MB RAM
Current users: 140
Maximum amount of users:
2005 Jun 22
1
Problem with HTB and IPTABLES
Dear All,
Im working with Fedora Core 3, kernel 2.9.1, MPLS-for-Linux-4.193, and
having some problems when create a HTB queue. ALL packets goes to the
default queue, they dont care about any mark or ip field I use to enqueue
them. : -/
Thats the deal, all packets that incoming the interface eth2 are classified
and have theirs TOS field changed following some qos policy at the
PREROUTING
2005 May 16
1
Rules OK (?), no filtering...
Hi
I have defined a single HTB qdisc on eth0 with one root class 1:1 further subdivided as below, nothing complicated.
1: (root qdisc)
|
|
1:1 (root class)
/\
/ \
/ \
/ \
/ \
1:10 \
2005 Mar 14
1
htb.init issues
Hi!
Here''s what I want:
root class 0010
premium parent class 1000
premium child classes 1xyz
best-effort parent class 2000
best-effort child classes 2xyz
default class 3000
Here''s how I do it:
eth1:
DEFAULT=3000
eth1-0010.root:
RATE=100Mbit
LEAF=sfq
eth1-0010:1000.premium
CEIL=352Kbit
RATE=352Kbit
PRIO=2
LEAF=sfq
eth1-0010:1000:1xyx.child1
CEIL=32Kbit
RATE=8Kbit
2002 Jan 03
1
tc class show problem with HTB ?
Hi!
I''m using 2.4.17 + htb2_2.4.16.diff now.
But I found the tc class show command won''t show the correct infomation like before...
I got something like:
# tc -s -d class show dev eth0
class htb 1: parent 1:
class htb 1: parent 1:
class htb 1: parent 1:
class htb 1: parent 1:
class htb 1: parent 1:
class htb 1: parent 1:
class htb 1: parent 1:
# tc -s qdisc
2004 Apr 09
1
HTB
Hello,
I have problems with htb. The problem is that when I download
any file via shaper with htb, the traffic is very dinamic,
it jumps, for example:
if i have set ceil = 128kbit the results that it jumps from 112kbps
to 144kbps or smth like that maybe its not very bad, but when the
traffic drops down to 40kbps or less and then after 1 or 2 seconds
jumps to 144kbps, its bad :-( and it is often.
2004 Jul 10
3
limiting doesn''t work
Hi folks,
I read the fantastic LARTC How-to and after that i tried to limit one
host in my LAN for both down-and upload bandwidth usage.
I took section 15.9. and added uplink-limiting as I understood it from
the previous chapters.
Unfortunately it doesn''t work.
I ran the script and went to the specified PC, started a download, and
watched the rate. The rate was always about 2000 kbit/s,
2005 May 03
10
Unshapeable traffic
Hello,
Could somebody explain following issue ?
I set up htb class on outgoing external interface to shape p2p upload
traffic. I limited it to 4Mbit/s. I also set up iptables counters
chains in FORWARD chain to calculate traffic generated by p2p and
others.
While tc stats show that p2p shaping class keep defined 4Mbit traffic,
iptables counters show me that p2p traffic exceed traffic to 150%
2007 Oct 29
1
Some questions about HTB
Hello,
I have installed a server with three physical ethernet links and some
virtual interfaces:
eth0 - 213.215.42.70
eth0:1 - 213.215.42.71
eth0:2 - 213.215.42.72
eth0:3 - 213.215.42.73
eth0:4 - 213.215.42.74
eth0:5 - 213.215.42.75
eth0:6 - 213.215.42.76
eth0:7 - 213.215.42.77
eth0:8 - 213.215.42.78
eth2 - 192.168.1.128
eth3 - 213.215.42.69
All traffic are routed by iproute2 and iptables
2003 Apr 09
1
HTB Question
Hi Stef,
Sorry to write to you directly but my list membership is not working, I
receive the archive but cant send to the list, cant delete myself because I
don''t exist and can''t rejoin as they say I do exist, anyway hope you don''t
mind
Can you tell me what the difference between these two scripts is please.
What I want to achieve is a high speed channel 1000kbit from
2004 Jul 20
3
Fw: HTB - Really Big problem
----- Original Message -----
From: Michał Joachimiak
To: lartc@mailman.ds9a.nl
Sent: Tuesday, July 20, 2004 3:45 PM
Subject: HTB - Really Big problem
Hello everybody!
Since week i dig lists and www and can''t find solution for my problem.
I''m using HTB 3.13 kernel 2-4-25 smp iptables 1.2.9.
I''ve got situation like this:
LAN------Linux Box(routing only)------- Linux
2006 Jan 13
6
Per user bandwidth limiting ..for small ISP.using Squid
Sir,
Kindly excuse me. I am a newbie to LARTC..
I am a small ISP in rural India distributing 1 MB
link to 200 people.
I have been using rshaper by Alessandro Rubini for
shaping.
http://freshmeat.net/projects/rshaper/
My kernel is Linux version 2.4.22-1.2115.nptl( Fedora
Core 1)
Rshaper is very good in controlling incoming bandwidth
(from LAN)
I use Squid also on this Linux Box..
Right
2006 Jan 08
2
HTB - not borrowing, not exceeding rate
Hello!
I have a quite complicated setup. In my network on each interface there is
bandwidth limitation for each user. Booth outgoing (on interface itself) and
incoming (attached IMQ) traffic. There is main HTB class which limits
bandwidth for whole interface and HTB subclasses for each user. Filtering is
done with hashing filters. This setup was working correctly.
But now in the network I
2005 Mar 15
1
how to bring down htb rate to 3kbit?
Hello Everybody,
I am successful in throttling down the Bandwidth to 8kbit using HTB. Below that I get report to change r2q. I want to bring down the Leaf class Bandwidth to 3kbit.
My script is as below:
Tc Script to throttle down the Bandwidth to 8kbit based on MAC address and IP address
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1:0 htb default 30 r2q 1
tc class add
2005 Sep 27
2
QoS-iptables-iproute-tc (doesn''t work together:S)
Hello i''m having some issues trying to match packets
using iptables mark, iproute filter and tc filter.-
i mean, when i do
iptables -t mangle -A INPUT -p tcp --dport 80 -j MARK
--set-mark 20
iptables -t mangle -A PREROUTING -p tcp --dport 25 -j
MARK --set-mark 10
iptables -t mangle -A FORWARD -p tcp -i eth0 -o eth1
--dport 25 -j MARK --set-mark 10
$TC qdisc del dev $INET_IFACE root
$TC
2003 Mar 16
6
[LONG] Weird problem with HTB using htb.init
This is a long message. Please use a monospace font :)
I''m trying to shape the traffic between my LAN and the Internet. My link is an
ADSL 512/128 line. The network is shaped like this:
LAN GATEWAY ROUTER
------------------ ------------- ------------
| 192.168.0.1/16 | <----> | 192.168.0.1 | <----> | 10.0.0.138