I am using HTB for traffic shaping, my scenario is
Eth1 is my local interface and I wan to shape bandwidth for IP 172.16.173.245.
Now I want if any request from above IP comes its get 1mb speed and all others
get 96kb speed, for this setup I make following script but it does not work.
Can
Thanks..it worked.. :)
/sbin/tc filter add dev eth1 protocol 0x8864 parent 2:0 prio 1 u32 \
match u32 0x$IPREMOTE_HEX 0x at 24 flowid 2:$ID
Now I don't have to shape the dst traffic on each ppp interface.
Regards,
Samit
Andy Furniss wrote:
Samit wrote:
Hi,
I want a way to traffic
Samit wrote:
Hi,
I want a way to traffic shape pppoe encapsulated pkts based on its
src/dst Ip address. Is there any way I can mark pppoe encapsulated pkts?
I don't know what you can do with iptables now it's X tables.
If you have the ppp interface on the shaping/netfilter box then you will
Justin Schoeman wrote:
Hi,
It has been quite a while since I looked at what was happening in Linux
traffic shaping, so I am not sure if this has been discussed / improved
on since I last looked.
We use a traffic shaper based on HTB. The basic principals work fine,
but we have a problem
Hi,
I want a way to traffic shape pppoe encapsulated pkts based on its
src/dst Ip address. Is there any way I can mark pppoe encapsulated pkts?
Samit
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Hi,
It has been quite a while since I looked at what was happening in Linux
traffic shaping, so I am not sure if this has been discussed / improved
on since I last looked.
We use a traffic shaper based on HTB. The basic principals work fine,
but we have a problem with 'intermittent trafic'
Terry Baume wrote:
Andy Furniss wrote:
This won't work on ifb0. You could put it on eth1 and change the
protocol ip to protocol all and change the match to match u32 0
0 . In theory that may catch a few arp so I suppose you could add
another rule to exempt them.
tc filter add dev eth1
Terry Baume wrote:
Hi Andy,
I had a chance to play around with ifb and the wondershaper script so
far, I've come to realise a few things, one being related to what you
previously mentioned about wondershaper being somewhat flawed in
particular setups. I've included my entire modified
Andy Furniss wrote:
This won't work on ifb0. You could put it on eth1 and change the
protocol ip to protocol all and change the match to match u32 0
0 . In theory that may catch a few arp so I suppose you could add
another rule to exempt them.
tc filter add dev eth1 parent : protocol
I'm trying to setup traffic shaping on my linux gateway/router.
The system has 3 interfaces:
eth0 - My LAN - with IP address 192.168.0.254
eth1 - The ethernet connection to which my ADSL modem is connected. This
has a 10.25.x.x IP, more on this later. The ADSL link has an upstream of
~1.2mbit.
Terry Baume wrote:
I'm trying to setup traffic shaping on my linux gateway/router.
The system has 3 interfaces:
eth0 - My LAN - with IP address 192.168.0.254
eth1 - The ethernet connection to which my ADSL modem is connected.
This has a 10.25.x.x IP, more on this later. The ADSL link has an
Terry Baume wrote:
I'm trying to setup traffic shaping on my linux gateway/router.
The system has 3 interfaces:
eth0 - My LAN - with IP address 192.168.0.254
eth1 - The ethernet connection to which my ADSL modem is connected. This
has a 10.25.x.x IP, more on this later. The ADSL link has an
. For more Information about this can
you find here: http://linux-ip.net/articles/hfsc.en/
bye
Simo
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von Rangi Biddle
Gesendet: Sonntag, 6. Mai 2007 22:15
An: lartc@mailman.ds9a.nl
Betreff: [LARTC] Traffic Shaping
Dear List
to have
something at least in place to prioritize packets.
Kind regards,
Rangi
PS. I am still rather new to tc in linux.
From: Simo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 08, 2007 8:49 AM
To: 'Rangi Biddle'
Subject: AW: [LARTC] Traffic Shaping
Hi Rangi,
if i have
Dear List,
I am wanting to perform some traffic shaping as the subject of this email
suggests.
What I am wanting to do is this; I would like to have traffic shaping
performed on the following protocols: HTTP, RDP, GRE, PPTP, SIP and IAX.
Obviously I would like to have highest priority
Hello,
Sorry for the many Ccs, but I hope to reach all parties involved.
I want to do traffic shaping with NAT and I wanted to do it with IFB
instead of IMQ [1]. I tried a lot of things but now I am stuck (and
maybe confused).
The setup:
eth0 eth1
WAN/(Internet) -
Here's what Jamal said for those only on LARTC ...
I understand this requirement; unfortunately when i polled for features
majority of people who emailed back were asking for the other things.
I have changed my opinion a little since last time because the
netfilter/contracking code now does
hi randy,
On Fri, 2007-03-16 at 09:55 +0300, Randy Wallace wrote:
snip
I have no way of knowing if our service provider
uses SCPS, HughesNet is a maze of customer support personnel
who don't know what a router is ;)
this is really critical to try to do any shaping ... many indoor units
have
I've set up Traffic Shaping on a Linux Router.
Using HTB with SFQ, i'm trying to slow down
heavy downloading for 20 subscribers over
a 2048 kbit downlink. I'm classifying internet related
traffic using iptables marking.
bri0 is my local lan bridge, receiving egress traffic destined for
Shaping on satellite can be a bad idea. Depends on who your provider is.
Some satellite providers use SCPS http://www.scps.org/ as a means to
increase performance. Simply put if you start shaping and drop ACK's you
will end up with connections hangs.
I am really surprised we do not hear more
Well, so far as I can tell, there have not been any major
problems with dropped ACK's. Our biggest gain, at least in
the last 36 hours, is that during peak hours, subscribers have
not been able to download at as high a rate as they could before.
That, and when the subscribers who only wish to
Hi list,
I have read the lartc 9th chapter, the bandwidth management part.
I think I understand the principle, but I have a question.
So I have a firewall that has several different interfaces. The most
important for my question is the Internet interface, which is a 2mbps
leased line.
I have an
Nagy Gabor Peter wrote:
So I thought that I will create a virtual interface, and route all
traffic from the Internet through this one. So incoming on Internet
interface, outgoing on virtual interface, and from there incoming on
the
firewall machine, or outgoing on the LAN or the DMZ
Hello Craig,
Is it linux flavour specific kernel you are using? I guess there might
be no tc support for the kind of match you are tring to do, but iptables
support included. Those I presume might be different kernel options.
In the first place, if anyone can say if the syntax of the
hi everyone:
does anybody know a way of shaping dhcp clients bandwidth?
the only way of doing this that i know is using pppoe-server and limit the
ppp interface, but it seems to be a little problematic protocol for me. im
looking for a solution that doesnt require too many changes in the
Does anyone here implement traffic shaping with shorewall? I need to shape
BitTorrent traffic on my network so that upload/downloads do not overwhelm
normal function or, even more importantly, my imminent conversion to VOIP for
all telephone service. I followed the shorewall documentation guide
ipp2p is absolutely necessary if you want to shape bittorrent. The
only time your current rules will match is when people connect to your
bittorrent client, otherwise the port that is used is random. I'd
also recommend including a rule to match on 6881-6889 the default
bittorrent ports, as some
Vanitha Ramaswami wrote:
Hi,
In our product i am using the High Speed Serial driver as the WAN interface.
I've implemented the HSS as a serial driver and i am running PPP to
connect to the internet. I have both Voice data + FTP data going thro the
PPP session. Is it possible for me to use
Hi,
In our product i am using the High Speed Serial driver as the WAN interface.
I've implemented the HSS as a serial driver and i am running PPP to
connect to the internet. I have both Voice data + FTP data going thro the
PPP session. Is it possible for me to use the Traffic shaper(wonder
Hello,
I want to select best Traffic Shaping algorithm that meet very good
performance.
What algorithm is best?
Depends what your definition of best and very good performance is. If
you know what your target is, maybe people can help.
I use HTB and SFQ together and it meets my needs, but may
Szluka Peter wrote:
Dear all,
I am a newbie, so excuse me if I ask stupid things.
I have a proxy server with 2 nic, a subnet for wireless lan (with DHCP),
and I would like to limit up/download speed to every client, who is
connected to this network.
After reading howto I think the only one
Dear all,
I am a
newbie,so excuse me if I ask stupid things.
I have a proxy
server with 2 nic,a subnet for wirelesslan (with DHCP),and I
would like to limit up/download speed to every client, who is connected to this
network.
After reading howto
I think the only one solution is to
saki wrote:
Hello all,
I am providing broadband service through DVB circuit.
I have 4KB uplink and 32KB downlink. I want to share
32KB downlink bandwidth among 192.168.0.0/24 (20 users
in this subnet i.e 192.168.0.2-192.168.0.22)subnet
where each user will get 2KB to 6KB bandwidth. And
from 4KB
James Bean wrote:
Hi, complete newb and I apologise for it.
I have a setup where my linux box has multiple broadband connection where I am routing certain things over certain interfaces, currently 2 links eth2 is a 1500/256 and eth3 is a 512/512, eth0 is the link to the LAN for users. What I am
[EMAIL PROTECTED] wrote:
Hi
I would want to use the patch for squid released by patrick mcHardy, but
it requires that squid is located on the same machine that does traffic
shaping. My configuration is different:
i have the screening HDSL router directly connected to a multi-ethernet
firewall and
Hi
I would want to use the patch for squid released by patrick mcHardy, but
it requires that squid is located on the same machine that does traffic
shaping. My configuration is different:
i have the screening HDSL router directly connected to a multi-ethernet
firewall and the proxy located on a
Dear all,
is the Traffic shaping part of the 2.6.x kernels works better than 2.4.x ?
Thanks !
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hi folks,
I have three network cards on my Slackware box and
eth0 and eth1 are for two Internet connections.
They have imq0 and imq1. All traffic shaping works
fine.
Internal eth2 does no traffic shaping.
But recently I have put two OpenVPN tunnels (tun
devices) and bothwork via eth0.
So
On 13 October 2004 pm 12:53, Remus wrote:
Hi folks,
I have three network cards on my Slackware box and eth0 and eth1 are for
two Internet connections. They have imq0 and imq1. All traffic shaping
works fine.
Internal eth2 does no traffic shaping.
But recently I have put two OpenVPN tunnels
Greetings,
I've got a server with a bunch of vpn (openvpn) tunnels terminating on it. I'm
trying to limit the total bandwidth the tunnels can use to 3mbit. So I
applied a rule like this:
tc qdisc add dev eth0 root handle 1: htb default 90
tc
Hello!
I have a small home network and I'd like to use traffic shaping because
every time someone uploads a file at full speed, my download speed drops
to ~10 KB/s. My connection is 768/128 DSL.
I found a script at http://www.knowplace.org/shaper/examples.html
$TC qdisc add dev $INTERFACE root
So do you have any ideas how to optimize the above script or do you know
a better solution? It is only important to me that downloading and
surfing is still possible while uploading at a good speed (should be
around 12 KB/s).
Yes its easily possible. Why not trying to start from one of the
Hi all. Im using the following CQB shaper to shape
IP addresses:
DEV=eth1 (internal eth)
tc qdisc del dev $DEV roottc qdisc add dev $DEV
root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev $DEV parent 1: classid 1:1 cbq
rate 256kbit allot 1500 prio 5 bounded isolatedtc class
, 2004 7:54
PM
Subject: [LARTC] traffic shaping on
single ip...
Hi all. Im using the following CQB shaper to
shape IP addresses:
DEV=eth1 (internal eth)
tc qdisc del dev $DEV roottc qdisc add dev
$DEV root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev $DEV
Hi folks,
I have the traffic shaping (HTB and IMQ) on my eth0
(of course no problems with it).
And now I would like add some extra IPs on it
(ifconfig eth0:0 xxx.xxx.xxx.xxx and ifconfig eth0:1
xxx.xxx.xxx.xxx).
So do I have to set up a new tc rools ( tc qdisc
add deveth0:0 root handle
On Friday 23 Jan 2004 09:15, Remus wrote:
Hi folks,
I have the traffic shaping (HTB and IMQ) on my eth0 (of course no
problems with it). And now I would like add some extra IPs on it (
ifconfig eth0:0 xxx.xxx.xxx.xxx and ifconfig eth0:1 xxx.xxx.xxx.xxx).
So do I have to set up a new tc
] Traffic shaping and IP aliases
On Friday 23 Jan 2004 09:15, Remus wrote:
Hi folks,
I have the traffic shaping (HTB and IMQ) on my eth0 (of course no
problems with it). And now I would like add some extra IPs on it (
ifconfig eth0:0 xxx.xxx.xxx.xxx and ifconfig eth0:1
xxx.xxx.xxx.xxx
Yes:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg07410.html
search for the text alias
bummer.
Mike.
-Original Message-
From: Gordan Bobic [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 5:52 AM
To: [EMAIL PROTECTED]
Subject: Re: [LARTC] Traffic shaping and IP
hello all,
I am newbie to this list,
Is anybody has did some experimentation about traffic control with kernel
2.6.0 as there is one special module called traffic shapper in
experimental category. Has anybody tried it?
Are there any other special tools for the same?
Is there any documentation
Hello all,
I am trying to figure out a way to traffic shape for QoS (ie, prioritize
different types of traffic) for an entire network and ALSO rate limit /
shape individual users on this network.
Now, I understand it all for rate control on users - what I can't figure out
is how we can shape /
On Monday 24 November 2003 7:35 am, Defekt wrote:
Hi,
I'm using traffic shaping on my home 1.5M/256K ADSL connection. The
problem I'm running into is even when I'm shaping upload traffic (web
server/p2p etc...) I run into latency issues with online gaming. This is
of course due to the 256Kb
Hi,
I'm using traffic shaping on my home 1.5M/256K ADSL connection. The problem
I'm running into is even when I'm shaping upload traffic (web server/p2p
etc...) I run into latency issues with online gaming. This is of course due
to the 256Kb upload and the 1492 MTU (PPPoE) which means a single
Hi Marc,
What I would like to do is reduce the MSS for low priority traffic using
ipchains based on a fwmark value. Is it possible to do this?
ipchains, or iptables?
you should be able to do it with a single rule with iptables:
iptables -A OUTPUT -p tcp --syn -m mark --mark XX -j TCPMSS
Hi Stef/Martin,
Iam resending this mail for the third time, I request you to please
respond ASAP.
Iam stucked as my traffic control is not working, I just tried first
with incoming traffic shaping, below is the test setup and rules
applied. Your valuable suggestion will surely help me and make
I'm trying to shape bandwidth but with no success.
I have a Linux server with 3 networks (WAN, LAN and DMZ). In the DMZ I
have a server (IP 172.21.1.2) that I wish to grant a 25kbit bandwidth
(from a total of 256kbit coming from the WAN). To accomplish this, I
setup Linux to allow the use of IMQ
Hi all,
I want to connect my LAN to the Internet over two different Connections. One is a
static E1 (2Mbit) connection with a permanent IP, the other one is a so called
DSL-Light connection (ADSL with 64kbit up and 384kbit downstream) with a dynamic IP.
The reason is that I have to pay the
Did anybody succeed to make traffic shaping inoutbound on a bridge
(ebtables)?
Any pointer to such documentation? Or just an example script?
Alex
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
On Wednesday 09 July 2003 14:51, alexandru matei wrote:
Did anybody succeed to make traffic shaping inoutbound on a bridge
(ebtables)?
Any pointer to such documentation? Or just an example script?
I know someone used ebtabes, but I have no documentation. As fas I know,
using ebtables is the
I have a variation of the wondershaper script, but I'm not sure that I
know how to make it do what I want it to do... which is: prioritize
traffic from a particular host for which my gentoo linux box is a
router.
Specifically, 192.168.0.106 is a Cisco ATA 186 VoIP box serving me with
phone
Is the following sounding logical? I'm trying to
1. Make all traffic from 192.168.0.106 highest priority
2. Make all traffic to 192.168.0.106 highest priority
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 \
match ip src 192.168.0.106/32 flowid 10:1
tc filter add dev
Good day all!
I've been somewhat successful with shaping traffic coming in to my LAN's
clients, but am having a bit of difficulty shaping those same clients
outbound traffic. I'm using a Linux 2.4.20 multi-homed (eth0 and eth1)
firewall with IPTables. Looking at the example given at
Hi,
(well, my squirrelmail seems to be working again so this is the final
attempt to send a readable mail :) )
I'm trying to use the shaper script from the lartc howto
but the following lines:
# both get Stochastic Fairness:
tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10
tc qdisc
On Sunday, 29 December 2002, at 22:04:28 +0100,
Andre Meij wrote:
(well, my squirrelmail seems to be working again so this is the final
attempt to send a readable mail :) )
Yes, now it works OK :)
# both get Stochastic Fairness:
tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10
(well, my squirrelmail seems to be working again so this is the final
attempt to send a readable mail :) )
Yes, now it works OK :)
hehe, finaly :)
# both get Stochastic Fairness:
tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev $DEV parent 1:20 handle 20: sfq
Andrea Rossato wrote:
4. How can I set up a filter for shaping (in ppp0) encapsulated traffic?
for istance, if I want ssh to vpn0 to have maximum priority either
within the tunnel and also within the traffic passing trough ppp0, how
can achivie that? I cannot find documentation on u32 that I
Hi!
Thanks to LARTC I was able to set up this configuration:
- ppp0 (adsl connection) to the internet
- vpn0 connection to a remote router with a gre tunnel
I'm doing shaping traffic out of ppp0 with HTB: Minimum delay (tos
0x10), icmp and ACK packets get maximun priority and all available
On Friday 22 November 2002 11:58, Abraham van der Merwe wrote:
Hi!
I started shaping our clients using HTB/Linux recently (since about 2 days
ago). (Previously I used dummynet/FreeBSD and before that CBQ/GTS/IOS).
I tested HTB in a lab setup (just shaped 2 connections to different speeds
On Friday 01 November 2002 06:35, Joseph Watson wrote:
Hello,
I have a question about two way traffic, and how to shape it?
Lets say we want to limit a customer usage to 256kbit total. So on my
firewall I add shaping rules to the client side nice with a ceiling of
256kbit. Now I also want
Lets say we want to limit a customer usage to 256kbit total.
That is, you want to limit upload+download.
Whether or not it can be done, I think it's worth pointing out that
this is nonsense. It makes sense to allocate A+B only if A and B can
be used to replace each other. Upload and Download
Hello,
I have a question about two way traffic, and how to shape it?
Lets say we want to limit a customer usage to 256kbit total. So on my
firewall I add shaping rules to the client side nice with a ceiling of
256kbit. Now I also want to limit there upload, so I add the same to the
other
Title: Message
Hello!
everyone,
For performing traffic shaping using HTB, is there a parameter to define
the queue or buffer length where packets get queued (once the allocated
bandwidth is being used up), instead of just getting dropped (policed).For
example, in TBF there is a parameter
Here is an interesting request. Not sure this is possible.
I have two interfaces going to two different ISPs.
Currently, I have a local network that masquerades to just 1 of the
interfaces.
Is it possible to do the following:
If bandwidth used in masquerading interface 1 some #, then switch
72 matches
Mail list logo