Re: [LARTC] shaping by packet count rather than bytes ?

2007-10-05 Thread David Boreham
Peter V. Saveliev wrote: Simple packet drop works for ordinary tcp congestion algorithms as a channel overload, and tcp decreases speed. So works RED policing filters and so on. Well...red isn't exactly 'simple' packet drop :) In fact, if I could combine packet-rate-limit with red or sfq I

Re: [LARTC] shaping by packet count rather than bytes ?

2007-10-05 Thread Peter V. Saveliev
В сообщении от Saturday 06 October 2007 05:16:38 David Boreham написал(а): > David Boreham wrote: > >> iptables: limit, hashlimit, dstlimit work on pps basis. > > > > ! yes, I'd thought about that stuff but somehow > > discounted it as 'not worthy' for traffic shaping. > > Actually, I remember now

Re: [LARTC] shaping by packet count rather than bytes ?

2007-10-05 Thread David Boreham
David Boreham wrote: iptables: limit, hashlimit, dstlimit work on pps basis. ! yes, I'd thought about that stuff but somehow discounted it as 'not worthy' for traffic shaping. Actually, I remember now why iptables doesn't work : All it does is drop the excess packets over the limit. That'

Re: [LARTC] shaping by packet count rather than bytes ?

2007-10-05 Thread David Boreham
Peter V. Saveliev wrote: Has anyone done any work on packet-rate shaping ? iptables: limit, hashlimit, dstlimit work on pps basis. ! yes, I'd thought about that stuff but somehow discounted it as 'not worthy' for traffic shaping. Thanks. __

Re: [LARTC] shaping by packet count rather than bytes ?

2007-10-05 Thread Peter V. Saveliev
> Has anyone done any work on packet-rate shaping ? > iptables: limit, hashlimit, dstlimit work on pps basis. -- Peter V. Saveliev ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Re: [LARTC] shaping by packet count rather than bytes ?

2007-10-05 Thread Jens Thiele
On 5 Okt 2007, [EMAIL PROTECTED] wrote: > In wireless networks it can be handy to shape by packet rate > rather than bytes/s (because capacity is packet-rate-limited). > > Has anyone done any work on packet-rate shaping ? Don't know any wireless details. But I guess in the end it is very similar

[LARTC] shaping by packet count rather than bytes ?

2007-10-05 Thread David Boreham
In wireless networks it can be handy to shape by packet rate rather than bytes/s (because capacity is packet-rate-limited). Has anyone done any work on packet-rate shaping ? Thanks. ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl

Re: [LARTC] shaping using source IP after NAT

2007-06-14 Thread Ethy H. Brito
On Thu, 14 Jun 2007 16:25:14 -0300 "Marco Aurelio" <[EMAIL PROTECTED]> wrote: > I think it is better to use an IFB device and shape the upload traffic > using source IP before the NAT > > http://linux-net.osdl.org/index.php/IFB Before NAT?!?! Where does IFB hook netfilter tables?? Before mangle

Re: [LARTC] shaping using source IP after NAT

2007-06-14 Thread Ethy H. Brito
PLEASE disregard this. My MUA gone crazy and resent a lot of my emails today. Forgive me. Ethy On Wed, 13 Jun 2007 15:18:28 -0300 "Ethy H. Brito" <[EMAIL PROTECTED]> wrote: > On Mon, 11 Jun 2007 22:02:31 +0300 > VladSun <[EMAIL PROTECTED]> wrote: > > > > TC is performed after POSTROUTING, so

Re: [LARTC] shaping using source IP after NAT

2007-06-14 Thread Marco Aurelio
I think it is better to use an IFB device and shape the upload traffic using source IP before the NAT http://linux-net.osdl.org/index.php/IFB On 6/13/07, VladSun <[EMAIL PROTECTED]> wrote: Ethy H. Brito написа: > On Mon, 11 Jun 2007 22:02:31 +0300 > VladSun <[EMAIL PROTECTED]> wrote: > > > >>

Re: [LARTC] shaping using source IP after NAT

2007-06-13 Thread VladSun
Ethy H. Brito написа: On Mon, 11 Jun 2007 22:02:31 +0300 VladSun <[EMAIL PROTECTED]> wrote: TC is performed after POSTROUTING, so you can not do any IP related TC filtering. You can use CPU friendly patches for iptables like IPMARK or IPCLASSIFY. Take a look at them. Ok. Can someone

Re: [LARTC] shaping using source IP after NAT

2007-06-13 Thread Ethy H. Brito
On Mon, 11 Jun 2007 22:02:31 +0300 VladSun <[EMAIL PROTECTED]> wrote: > TC is performed after POSTROUTING, so you can not do any IP related TC > filtering. You can use CPU friendly patches for iptables like IPMARK or > IPCLASSIFY. Take a look at them. Ok. Can someone point me the right directi

Re: [LARTC] shaping using source IP after NAT

2007-06-11 Thread Marco Aurelio
Use IFB which seems to be already on kernel 2.6 On 6/11/07, VladSun <[EMAIL PROTECTED]> wrote: Ethy H. Brito написа: > Hi all > > I am using a pass trhu router and I need to QoS some clients output by its > IP address. The problem is that QoS is due after NATing. > > Is there some clever way of

Re: [LARTC] shaping using source IP after NAT

2007-06-11 Thread VladSun
Ethy H. Brito написа: Hi all I am using a pass trhu router and I need to QoS some clients output by its IP address. The problem is that QoS is due after NATing. Is there some clever way of doing this besides MARKing every packet with some IP hashing in POSTROUTING NAT table? Regards Ethy

[LARTC] shaping using source IP after NAT

2007-06-11 Thread Ethy H. Brito
Hi all I am using a pass trhu router and I need to QoS some clients output by its IP address. The problem is that QoS is due after NATing. Is there some clever way of doing this besides MARKing every packet with some IP hashing in POSTROUTING NAT table? Regards Ethy ___

[LARTC] Shaping based on Vlan tag

2007-03-21 Thread Samit
Hi all, A new member and new post. Is it possible to manage bandwidth marking the packets based on VLAN tags using ebtables? Samit ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Re: [LARTC] Shaping incoming VoIP traffic fails

2006-11-16 Thread Daniel Musketa
Am Donnerstag, 16. November 2006 17:37 schrieb Larry Brigman: > On 11/15/06, Daniel Musketa <[EMAIL PROTECTED]> wrote: > > I can watch traffic coming in on ppp0 with `iftop` and it never exeeds > > 900kbit. Why could a 2000kbit headroom be not enough for clean receiving > > of 80kbit VoIP data? > >

Re: [LARTC] Shaping incoming VoIP traffic fails

2006-11-16 Thread Larry Brigman
On 11/15/06, Daniel Musketa <[EMAIL PROTECTED]> wrote: On Wednesday 15 November 2006 12:07, Daniel Musketa wrote: > Could I setup HTB better than below? Should I reduce eth1's queue length > (now 1000)? If yes, how? The txqueuelen can be changed by ip link set eth1 txqlen I tried values o

Re: [LARTC] Shaping incoming VoIP traffic fails

2006-11-15 Thread Daniel Musketa
On Wednesday 15 November 2006 12:07, Daniel Musketa wrote: > Could I setup HTB better than below? Should I reduce eth1's queue length > (now 1000)? If yes, how? The txqueuelen can be changed by ip link set eth1 txqlen I tried values of 100 and 3 but can't hear an improvement. I can watch t

[LARTC] Shaping incoming VoIP traffic fails

2006-11-15 Thread Daniel Musketa
Hello, I'm trying to get lossless VoIP traffic over my 3000k/500k ADSL line. Shaping outgoing traffic is no problem: I set total ceil for outgiong device (ppp0) to 450kbit and put VoIP into highest prio class. Even during full upload the voice is clean on the other end. Now I tried to get the

Re: [LARTC] Shaping of pppoe clients

2006-06-01 Thread Andy Furniss
Georgi Alexandrov wrote: Kenneth Kalmer wrote: The keyword here is "better", and that was my argument for using a bridge in the first place. It would appear to be easier to shape & filter away from the messy scripts of pppd & radius servers, but this raises the next issue. For the bridge, is th

Re: [LARTC] Shaping of pppoe clients

2006-05-23 Thread Georgi Alexandrov
Kenneth Kalmer wrote: > The keyword here is "better", and that was my argument for using a > bridge in the first place. It would appear to be easier to shape & > filter away from the messy scripts of pppd & radius servers, but this > raises the next issue. For the bridge, is the pppoe sessions > id

Re: [LARTC] Shaping of pppoe clients

2006-05-23 Thread Kenneth Kalmer
On 5/23/06, Georgi Alexandrov <[EMAIL PROTECTED]> wrote: Kenneth Kalmer wrote: > Guys > > > 1. The clients will all be connected to each other using a normal > ethernet network, the segments connected with managed switches. The > capacity is roughly 500 nodes. Will these pppoe sessions interfere

Re: [LARTC] Shaping of pppoe clients

2006-05-23 Thread Georgi Alexandrov
Kenneth Kalmer wrote: > Guys > > After reading through the archives I found some insightful ways to be > able to shape traffic to pppoe clients from the server. I have two > questions on the topic of setting up a pppoe server however... > > 1. The clients will all be connected to each other using a

[LARTC] Shaping of pppoe clients

2006-05-23 Thread Kenneth Kalmer
Guys After reading through the archives I found some insightful ways to be able to shape traffic to pppoe clients from the server. I have two questions on the topic of setting up a pppoe server however... 1. The clients will all be connected to each other using a normal ethernet network, the seg

Re: [LARTC] Shaping per IP in PPPoE borrowing or sharing Uplink or Downlink

2006-04-20 Thread Rani Ahmed
thanks for your help. but i am not that much used to tc. i use tcng. so how should i write that in tcng? Anton Glinkov wrote: If they are all on the same ethernet device, you can match them with: tc filter add dev ${DEVICE} parent 1: protocol all u32 \ match u16 0x8864 0x at -2 flowid 1:${I

Re: [LARTC] Shaping per IP in PPPoE borrowing or sharing Uplink or Downlink

2006-04-15 Thread Anton Glinkov
If they are all on the same ethernet device, you can match them with: tc filter add dev ${DEVICE} parent 1: protocol all u32 \ match u16 0x8864 0x at -2 flowid 1:${ID} 8864 is the PPP session ethernet protocol you can play around with u32 if you want to match tos or ports and stuff.. > helo

Re: [LARTC] Shaping per IP in PPPoE borrowing or sharing Uplink or Downlink

2006-04-14 Thread Martin A. Brown
Hello again Rani, : helo again. I think this question i am asking is worth: : : we know that pppoe-server creates a pppX device on each : connection done to it. So, when i have to shape, i have to shape : each pppX connection device on itself alone. What i know is that : the borrowing m

[LARTC] Shaping per IP in PPPoE borrowing or sharing Uplink or Downlink

2006-04-14 Thread Rani Ahmed
helo again. I think this question i am asking is worth: we know that pppoe-server creates a pppX device on each connection done to it. So, when i have to shape, i have to shape each pppX connection device on itself alone. What i know is that the borrowing method on one device by itself, e.g.

[LARTC] shaping on several ppp interfaces

2006-04-12 Thread Petre Bandac
hallo I have the following schema pptpd server, with clients connecting to it and getting access to inside LAN resources; however, there are some roaming clients that have huge files to download and so eating all the bandwidth how can I have the whole x kbps be available on a single ppp interfac

RE: [LARTC] Shaping per IP in PPPoE

2006-04-11 Thread Roberto Scattini
deleting the rules (/etc/ppp/ip-down.d/0pppx_down): #!/bin/sh /sbin/tc qdisc del dev $1 root /sbin/tc qdisc del dev $1 ingress ppp executes this scripts each time an interface gets up or down. hope it helps. Roberto Scattini From: Rani Ahmed <[EMAIL PROTECTED]> To: lartc@mailman.ds

Re: [LARTC] Shaping per IP in PPPoE

2006-04-11 Thread Martin A. Brown
Hello Rani, : i am currently now serving PPPoE in my area. i had a script : generated from tcng that worked perfectly before i started : serving PPPoE. the issue is not in the script it self BUT in that : "tc" code is not shaping on the ethernet anymore BUT INSTEAD on : the pppX devices.

[LARTC] Shaping per IP in PPPoE

2006-04-11 Thread Rani Ahmed
hi all. i am currently now serving PPPoE in my area. i had a script generated from tcng that worked perfectly before i started serving PPPoE. the issue is not in the script it self BUT in that "tc" code is not shaping on the ethernet anymore BUT INSTEAD on the pppX devices. I tested it and t

Re: [LARTC] Shaping by IP's

2006-02-25 Thread Andy Furniss
Laimis wrote: If in one time 3 IP adresses using internet. TC script: DEV=eth0 # LAN SERVER_IP=192.168.1.2 # eth0 ip address tc qdisc add dev $DEV root handle 1: htb default 255 tc class add dev $DEV parent 1: classid 1:1 htb rate 384Kbit quantum 1500 tc class add dev $DEV parent 1:1 classid

[LARTC] Shaping by IP's

2006-02-21 Thread Laimis
If in one time 3 IP adresses using internet. TC script: DEV=eth0 # LAN SERVER_IP=192.168.1.2 # eth0 ip address tc qdisc add dev $DEV root handle 1: htb default 255 tc class add dev $DEV parent 1: classid 1:1 htb rate 384Kbit quantum 1500 tc class add dev $DEV parent 1:1 classid 1:20 htb rate 128

Re: [LARTC] Shaping traffic bound for the NAT'ed networks whithoutimq

2006-01-11 Thread Flemming Frandsen
> Yes (depending on exact setup/requirements) - it's just gone in the > latest net tree it's called ifb. > > http://www.mail-archive.com/netdev%40vger.kernel.org/msg05208.html Hmm, this sounds interesting, although it would mean upgrading the kernel to 2.6 on a router that's hard to get to physica

Re: [LARTC] Shaping traffic bound for the NAT'ed networks whithout imq

2006-01-10 Thread Andy Furniss
Flemming Frandsen wrote: I'm trying to set up a shaper that can shape the inbound traffic to around 40 subnets, that hang on 3 different interfaces of the router. As Linux can't do ingress shaping I'm left with having to set up 3 seperate shapers, one for each internal interface. This is not co

[LARTC] Shaping traffic bound for the NAT'ed networks whithout imq

2006-01-10 Thread Flemming Frandsen
I'm trying to set up a shaper that can shape the inbound traffic to around 40 subnets, that hang on 3 different interfaces of the router. As Linux can't do ingress shaping I'm left with having to set up 3 seperate shapers, one for each internal interface. This is not completely optimal as I'll ha

Re: [LARTC] shaping small rates

2005-12-07 Thread Sophana Kok
What do you call few seconds delay? What is your link speed, and rates? Damian Jakubowski wrote: What traffic shaper must I use to shape small rates (~1kBps) without significant latency? I have experience with htb and i now that htb is not very good solution in this case. With so low rates it g

[LARTC] shaping small rates

2005-12-06 Thread Damian Jakubowski
What traffic shaper must I use to shape small rates (~1kBps) without significant latency? I have experience with htb and i now that htb is not very good solution in this case. With so low rates it generates a few seconds delays beetwen sended packets. Such situation is described on htb homepage

Re: [LARTC] Shaping per machine

2005-12-05 Thread Kajetan Staszkiewicz
Dnia poniedziałek, 5 grudnia 2005 13:58, Dave Weis napisał(a): > > That's because you are putting all /24 network into one single HTB. You > > have to make one HTB (SFQ for every user helps a lot too) for each > > computer in the network: > > > > tc qdisc del root dev eth1 > > tc qdisc add root d

Re: [LARTC] Shaping per machine

2005-12-04 Thread Andreas Klauer
On Sunday 04 December 2005 23:11, Dave Weis wrote: > What should I be doing differently here? > > tc qdisc del dev eth0 root > > tc qdisc add dev eth0 root handle 1: htb default 10 > > tc class add dev eth0 parent 1: classid 1:1 htb rate 100MBit ceil > 100MBit > > tc qdisc add dev eth0 parent 1:10

Re: [LARTC] Shaping per machine

2005-12-04 Thread Kajetan Staszkiewicz
Dnia niedziela, 4 grudnia 2005 23:11, Dave Weis napisał(a): > I'm trying to shape each machine on an interface to 256k each, but I'm > getting stuck and only able to shape an entire interface to 256k. What > should I be doing differently here? > > tc qdisc del dev eth0 root > > tc qdisc add dev e

[LARTC] Shaping per machine

2005-12-04 Thread Dave Weis
I'm trying to shape each machine on an interface to 256k each, but I'm getting stuck and only able to shape an entire interface to 256k. What should I be doing differently here? tc qdisc del dev eth0 root tc qdisc add dev eth0 root handle 1: htb default 10 tc class add dev eth0 parent 1: cl

Re: [LARTC] shaping outboaud email

2005-11-26 Thread Nelson Castillo
> I thought sending email went out on port 25? > > When I look with ethereal, outbound email transfers were on port 58020. The destination port is 25. The source port is chosen by the kernel. -- Homepage : http://geocities.com/arhuaco The first principle is that you must not fool yourself and y

[LARTC] shaping outboaud email

2005-11-26 Thread nix4me
Hi, I thought sending email went out on port 25? When I look with ethereal, outbound email transfers were on port 58020. I assume it's choosing a random port for transfer? If so how do I tag it with iptables mark? I was hoping it was as simple as tagging port 25. Thanks, Mark _

Re: [LARTC] Shaping incoming bandwidth

2005-06-10 Thread Kiruthika Selvamani
Hi, Something like this should work I guess.. tc qdisc add dev eth1 ingress tc filter add dev eth1 parent : (some filter here to match all ip addresses) flowid :1 police rate 4kbps mtu 4k burst 4k drop On 6/10/05, Ankur Jain <[EMAIL PROTECTED]> wrote: > Hello Everyone, > > i'm having p

[LARTC] Shaping incoming bandwidth

2005-06-10 Thread Ankur Jain
Hello Everyone,   i'm having problem in limiting bandwith on my external interface in the server.   i'm having a network here which is online via a linux server with cbq compiled in kernel.   i'm having eth0 as internal network card, eth 1 as external network card   my internet bandwith line is 8kb

Re: [LARTC] Shaping of local transparent proxy services.

2005-06-09 Thread Andy Furniss
Przemyslaw Borkowski wrote: Hello. My situation looks like: localnet 10.2.1.0/24 | 10.2.1.1 eth0 (100Mbit) gateway ppp0 (DSL 1MBit/256kbit) | internet On gateway I have some transparent proxy services. I would like to shape traffic incoming from internet and guarantee some bandwidth f

[LARTC] Shaping of local transparent proxy services.

2005-06-07 Thread Przemyslaw Borkowski
Hello. My situation looks like: localnet 10.2.1.0/24 | 10.2.1.1 eth0 (100Mbit) gateway ppp0 (DSL 1MBit/256kbit) | internet On gateway I have some transparent proxy services. I would like to shape traffic incoming from internet and guarantee some bandwidth for non proxy services. When I

[LARTC] Shaping question - tunnel

2005-02-12 Thread Tanasescu Mihai
Hello, I'm being confrunted with the following situation and I'm trying to find the simplest solution possible as to also be easier to manage. 1) I have: ISP1 -- S1 (linux) S1's got: 512kbits external bandwidth from ISP1 20Mbits MAN bandwidth not including ISP2 17Mbit tunnel connection wh

Re: [LARTC] Shaping and forward

2005-02-08 Thread Andy Furniss
Kenneth Kalmer wrote: Lartc readers I have a peculiar problem with shaping and firewalling. My tc rules work great, below is a smaller version: #Root tc qdisc del dev eth0 root tc qdisc add dev eth0 root handle 1: htb default 100 #Root Class tc class add dev eth0 parent 1: classid 1:1 htb rate 1024

[LARTC] Shaping and forward

2005-02-08 Thread Kenneth Kalmer
Lartc readers I have a peculiar problem with shaping and firewalling. My tc rules work great, below is a smaller version: #Root tc qdisc del dev eth0 root tc qdisc add dev eth0 root handle 1: htb default 100 #Root Class tc class add dev eth0 parent 1: classid 1:1 htb rate 1024kbit quantum 2

Re: [LARTC] Shaping traffic with high priority hosts

2005-01-23 Thread Tóth Nándor
Hi! George Spiliotis wrote: Dear all My current setup is the following: Normal Hosts + eth0 eth1 |+--+ +-<->| F/W box |--<-> Internet |+--+ High priority hosts--+ Your questions are very typical.

[LARTC] Shaping traffic with high priority hosts

2005-01-23 Thread George Spiliotis
Dear all My current setup is the following: Normal Hosts + eth0 eth1 |+--+ +-<->| F/W box |--<-> Internet |+--+ High priority hosts--+ My eth0 is a normal 100MBps LAN and my Internet connectio

Re: [LARTC] Shaping the sum of incoming and outgoing traffic

2005-01-06 Thread Catalin(ux aka Dino) BOIE
Hello, Hello! See also http://www.docum.org/docum.org/faq/cache/69.html I cannot found one example on the new but maybe you have time to figure out how it works. --- Catalin(ux aka Dino) BOIE catab at deuroconsult.ro http://kernel.umbrella.ro/ ___ LARTC

Re: [LARTC] Shaping the sum of incoming and outgoing traffic

2005-01-06 Thread Andy Furniss
Jan Rovner wrote: Hello, does anyone have a working solution for the shaping both incoming and outgoing traffic in such way, that for a given client the *sum* of incoming and outgoing traffic is somehow defined? My ISP does the same thing, it gives me just a line of a defined rate, no matter the tr

[LARTC] Shaping the sum of in/out traffic (IMQ?)

2005-01-06 Thread Jan Rovner
Hello, does anyone have a working solution for the shaping both incoming and outgoing traffic in such way, that for a given class the sum of incoming and outgoing traffic is specified? My ISP does the same thing, it gives me just a line of a defined rate, no matter the traffic direction (i.e. her

[LARTC] Shaping the sum of incoming and outgoing traffic

2005-01-05 Thread Jan Rovner
Hello, does anyone have a working solution for the shaping both incoming and outgoing traffic in such way, that for a given client the *sum* of incoming and outgoing traffic is somehow defined? My ISP does the same thing, it gives me just a line of a defined rate, no matter the traffic direction

Re: [LARTC] Shaping traffic on heavily oversubscribed links?

2005-01-01 Thread Andy Furniss
Dimitris Kotsonis wrote: Justin Schoeman wrote: Hi all, I am having some fun with traffic shaping, and have run into an interesting situation. Here is South Africa, most internet links are heavily oversubscribed, which means that in most cases the local link is _not_ the bottleneck, and shaping

Re: [LARTC] shaping on tcp ports

2004-12-31 Thread Stef Coene
On Friday 31 December 2004 12:44, Paras pradhan wrote: > how do we mark in single iptables line using for ex: --dport 21 and -d > 192.168.3.88 > or have to do seperatly. I'm not sure if you can do it in 1 command. Just try it out. Stef ___ LARTC mailing

Re: [LARTC] shaping on tcp ports

2004-12-31 Thread Paras pradhan
> On Wednesday 29 December 2004 13:50, Paras pradhan wrote: >> hi all: >> >> the following scipt is wokring perfectly with limiting ...on limimitng >> per ip basis.. >> >> >> >> eth0=public static ip >> eth2= private ip ( 192.168.2.1) >> -- >> iptables -t mangle -A POSTROUTING -s ! 192.168.0.

Re: [LARTC] shaping on tcp ports

2004-12-30 Thread Stef Coene
On Wednesday 29 December 2004 13:50, Paras pradhan wrote: > hi all: > > the following scipt is wokring perfectly with limiting ...on limimitng per > ip basis.. > > > > eth0=public static ip > eth2= private ip ( 192.168.2.1) > -- > iptables -t mangle -A POSTROUTING -s ! 192.168.0.0/32 -d 192.16

[LARTC] shaping on tcp ports

2004-12-29 Thread Paras pradhan
hi all: the following scipt is wokring perfectly with limiting ...on limimitng per ip basis.. eth0=public static ip eth2= private ip ( 192.168.2.1) -- iptables -t mangle -A POSTROUTING -s ! 192.168.0.0/32 -d 192.168.2.101/32 -j MARK --set-mark 21012 tc class add dev eth2 parent 1:1 classid

Re: [LARTC] Shaping over multiple outgoing interfaces

2004-12-22 Thread Stef Coene
On Monday 20 December 2004 23:21, Miguel Sanz wrote: > Hi, > > I've a router configuration with a dsl connection and two ethernet NICs. > How can I control the traffic of the dsl connection when then destination > of the traffic can go out of the router using two diferent interfaces? > > ppp -- rou

[LARTC] Shaping over multiple outgoing interfaces

2004-12-20 Thread Miguel Sanz
Hi,   I've a router configuration with a dsl connection and two ethernet NICs. How can I control the traffic of the dsl connection when then destination of the traffic can go out of the router using two diferent interfaces?   ppp -- router --- lan |   DMZ   I've read that the s

Re: [LARTC] Shaping traffic on heavily oversubscribed links?

2004-12-19 Thread Dimitris Kotsonis
Justin Schoeman wrote: Hi all, I am having some fun with traffic shaping, and have run into an interesting situation. Here is South Africa, most internet links are heavily oversubscribed, which means that in most cases the local link is _not_ the bottleneck, and shaping on the local link does n

Re: [LARTC] Shaping with htb and VLAN

2004-12-19 Thread Stef Coene
On Friday 26 November 2004 00:59, [EMAIL PROTECTED] wrote: > Hello > > At first I must tell you that I´m a real newbie with Linux (and english as > well...) I´m using 2 vlans and shaping works quite well without vlan > Now I want to do load balancing at these vlans. > Any vlan should get the same m

Re: [LARTC] Shaping traffic on heavily oversubscribed links?

2004-12-19 Thread Jason Boxman
On Thursday 25 November 2004 13:01, Chris Bennett wrote: > Quick answer is: you can't. You need to know the bandwidth so that you can > control the queue. Indeed. I suffer from the same problem with my PPPoATM link, where my shaping configuration assumes I'm operating over an Ethernet link when

Re: [LARTC] Shaping traffic on heavily oversubscribed links?

2004-11-26 Thread Justin Schoeman
Thanks everybody for your advice... This is going to be an interesting one to try and solve ;-). -justin Justin Schoeman wrote: Hi all, I am having some fun with traffic shaping, and have run into an interesting situation. Here is South Africa, most internet links are heavily oversubscribed, w

[LARTC] Shaping with htb and VLAN

2004-11-25 Thread wschmid
Hello   At first I must tell you that I´m a real newbie with Linux (and english as well...) I´m using 2 vlans and shaping works quite well without vlan Now I want to do load balancing at these vlans. Any vlan should get the same minimum/maximum bandwidth of download and use the bandwidth tha

Re: [LARTC] Shaping traffic on heavily oversubscribed links?

2004-11-25 Thread Rick Marshall
--- From: "Justin Schoeman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 25, 2004 3:17 AM Subject: [LARTC] Shaping traffic on heavily oversubscribed links? Hi all, I am having some fun with traffic shaping, and have run into an interesting situation.

[LARTC] Shaping traffic on heavily oversubscribed links?

2004-11-25 Thread Justin Schoeman
Hi all, I am having some fun with traffic shaping, and have run into an interesting situation. Here is South Africa, most internet links are heavily oversubscribed, which means that in most cases the local link is _not_ the bottleneck, and shaping on the local link does not help that much...

Re: [LARTC] shaping without delay

2004-11-02 Thread Stef Coene
On Sunday 31 October 2004 18:51, you wrote: > Where can I get some tricks to minimize the delay or latency? Actually, I > have tried some configurations but I still get too big delay or latency. The prio parameter of htb classes can help. Remember, you can not remove the delay. You can only give s

Re: [LARTC] shaping without delay

2004-10-31 Thread Tiago Bruno Espírito Santo Silva
Minimize having a good CPU...every thing that travels lost some time...even in the wire or in the air :) or in the vacum the comunications with the MARS have biig delays :) Stef Coene wrote: On Saturday 30 October 2004 23:13, Avidianto Widodo wrote: Hi, How can I configure shaping ban

Re: [LARTC] shaping without delay

2004-10-31 Thread Stef Coene
On Saturday 30 October 2004 23:13, Avidianto Widodo wrote: > Hi, > > How can I configure shaping bandwidth on htb/cbq without delay or latency? > Please give some example. You can not shape without delay or latency. You can only try to minimize the delay or latency for certain connections. Stef

[LARTC] shaping without delay

2004-10-30 Thread CITIBIZNet
how can I configure for shaping bandwith using cbq/htb without delay or latency?

[LARTC] shaping without delay

2004-10-30 Thread Avidianto Widodo
Hi, How can I configure shaping bandwidth on htb/cbq without delay or latency? Please give some example. Thank's ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Re: [LARTC] Shaping on Ports, multiple IP Address's, and SFQ

2004-10-14 Thread Andreas Klauer
Dave Scott wrote: Another question, I was also thinking of limiting everyone's bandwidth to like say 500K each, so no connection can get more then 500k, then it would take about 6 people using full connections to max the line. And then what? If the line is maxed, then it's maxed, wether that's don

[LARTC] Shaping on Ports, multiple IP Address's, and SFQ

2004-10-14 Thread Dave Scott
Hi, I have a 3Mbit (up,down) connection going through a Linux box (Debian 600mhz, 500mb ram) using NAT to approx 125 users. Presently I am shaping by marking packets by their port numbers. I'm prioritizing 22, 23, 25, 80, 81, 110, 443, 500, 3389, 1214, 6881:6889, etc, into their appropriate cla

Re: [LARTC] shaping outbound ftp traffic

2004-10-11 Thread Ow Mun Heng
On Fri, 2004-10-08 at 23:46, [EMAIL PROTECTED] wrote: > Yes, inbound is affected even though outbound transfers are suspended. > The inbound in shaped to 39K. This is what totally confuses me. I thought > with my script that only traffic leaving source ports 5-51000 & 65437 > should be sh

Re: [LARTC] shaping outbound ftp traffic

2004-10-11 Thread Ow Mun Heng
On Fri, 2004-10-08 at 23:46, [EMAIL PROTECTED] wrote: > Yes, inbound is affected even though outbound transfers are suspended. > The inbound in shaped to 39K. This is what totally confuses me. I thought > with my script that only traffic leaving source ports 5-51000 & 65437 > should be sh

[LARTC] shaping outbound ftp traffic

2004-10-08 Thread nix4me
Yes, inbound is affected even though outbound transfers are suspended. The inbound in shaped to 39K. This is what totally confuses me. I thought with my script that only traffic leaving source ports 5-51000 & 65437 should be shaped. But it is also shaping traffic entering my machine on t

[LARTC] shaping outbound ftp traffic

2004-10-08 Thread nix4me
>In theory yes, but it is shaping inbound transfers to my server. >YOu're not doing any other sort of Ingress filters are you?? No >I dont care about destination port. That line was commented. BUT, incoming >transfers are being shaped for some reason. >Could this be shaping on the ISP side??

Re: [LARTC] shaping outbound ftp traffic on 1 nic not working properly

2004-10-08 Thread chris
Is the inbound rate affected even if there are no outbound transfers? Is the speed actually being "limited" to a certain speed, or are you just noticing that the inbound/upload traffic is slower than it should be. The reason I ask is because you're tagging all outbound ftp-data traffic (ports 500

[LARTC] shaping outbound ftp traffic on 1 nic not working properly

2004-10-07 Thread nix4me
>Theory is.. You can only shape outbound traffic. Inbound is via tcp windowshaping etc.. In theory yes, but it is shaping inbound transfers to my server. >> iptables -t mangle -A MYSHAPER-OUT -p tcp --sport 65437 -j MARK --set-mark 20 >> iptables -t mangle -A MYSHAPER-OUT -p tcp --sport 5:510

Re: [LARTC] Shaping not working

2004-09-30 Thread Cow
Try this link, might help:   http://omg.wp.gg/wshaper-howto/ - Original Message - From: Stephan M. Ott To: [EMAIL PROTECTED] Sent: Tuesday, September 28, 2004 8:57 AM Subject: [LARTC] Shaping not working Hi folks,   I’m trying to shape two clients

Re: [LARTC] Shaping not working

2004-09-29 Thread Stef Coene
On Tuesday 28 September 2004 08:57, Stephan M. Ott wrote: > Hi folks, > > I'm trying to shape two clients in my LAN when accessing the internet. > Actual situation is that EVERY traffic goes into 1:40, so the client > which should fall into 1:30 does not get the lower uplink it should > have, but t

[LARTC] Shaping not working

2004-09-28 Thread Stephan M. Ott
Hi folks,   I’m trying to shape two clients in my LAN when accessing the internet. Actual situation is that EVERY traffic goes into 1:40, so the client which should fall into 1:30 does not get the lower uplink it should have, but the uplink defined for the client defined as 1:30 When I

Re[2]: [LARTC] shaping fails when using p2p apps?

2004-09-23 Thread diab
Hi, D> Yoa are doing nat on the same machine, thus the filter above will not D> get the clients IP address but the NAT-ed address. Thats because TC D> stuff happens after all of the netfilter, routing and bridging stuff. D> You could MARK packet when they enter eth1 (with iptables) and then D> ma

Re: [LARTC] shaping fails when using p2p apps?

2004-09-23 Thread Damjan
> We're running a small ISP and all the users are shaped to 384/512/768k > both ways (whichever package they choose). > The router is a linux (debian sarge), the kernel is 2.4.25 right now. > All users are getting 10.1.1.* ip addresses (eth1) and eth0 connects > to the isp using ethernet (via a med

[LARTC] shaping fails when using p2p apps?

2004-09-23 Thread diab
Hi there, We're running a small ISP and all the users are shaped to 384/512/768k both ways (whichever package they choose). The router is a linux (debian sarge), the kernel is 2.4.25 right now. All users are getting 10.1.1.* ip addresses (eth1) and eth0 connects to the isp using ethernet (via a me

[LARTC] shaping outbound ftp without affecting inbound with 1 nic

2004-08-27 Thread nix4me
Hi, I am using the following script to limit my outbound traffic. This scipt runs on a box behind my firewall. It limits my outbound passive ftp traffic to 39K perfectlyjust like i want. However, i just noticed that it is also limiting uploads coming to my server. Is there something I c

[LARTC] shaping problems

2004-08-24 Thread nix4me
Hi, I am using the following script to limit my outbound traffic. This scipt runs on a box behind my firewall. It limits my outbound passive ftp traffic to 39K perfectlyjust like i want. However, i just noticed that it is also limiting uploads coming to my server. Is there something I c

Re: [LARTC] Shaping weirdness

2004-08-13 Thread sandr8_NOSPAM_
what's your MTU size? Scrive micah milano <[EMAIL PROTECTED]>: > I've been following the HOWTO, and reading mailing list discussions > about throttling bandwidth, and have had some success, but I just want > to tie off some loose ends. Essentially what I am wanting to do is to > keep our bandwidt

[LARTC] Shaping weirdness

2004-08-13 Thread micah milano
I've been following the HOWTO, and reading mailing list discussions about throttling bandwidth, and have had some success, but I just want to tie off some loose ends. Essentially what I am wanting to do is to keep our bandwidth usage below 1megabit, because if we go over we get charged for that tra

[LARTC] shaping ftp traffic

2004-08-08 Thread nix4me
I added a default class. It is no longer limiting the entire connection, but it is also not limiting ftp traffic for some reason. Any ideas? #!/bin/bash #shaping passive ftp traffic # mark the outbound passive ftp packets on ports 5-51000 iptables -t mangle -D POSTROUTING -o eth0 -j MYSHAPER

[LARTC] shaping ftp traffic

2004-08-08 Thread nix4me
I am trying to mark outbound passive ftp traffic with iptables and shape it to 35KBytes. I am using the following script on the computer that runs the ftp server. It is not working correctly, it seems to limit ALL traffic. Cant file share or anything. Anyone might know what is wrong? It see

Re: [LARTC] shaping marked packets

2004-07-27 Thread George Alexandru Dragoi
tc qdisc del dev ethx root tc qdisc add dev ethx root handle 1: htb tc class add dev ethx parent 1: classid 1:1 htb rate 30kbps tc filter add dev ethx parent 1: prio 0 protocol ip handle 1 fw flowid 1:1 On Tue, 27 Jul 2004 20:07:37 -0400, nix4me <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying t

[LARTC] shaping marked packets

2004-07-27 Thread nix4me
Hi, I am trying to figure out how to shape the following marked packets and limit them to a speed on 30KBytes. I have read the documentation but I am unsue of what to do. iptables -t mangle -A FTP-OUT -p tcp --dport 5:51000 -j MARK --set-mark 1 Mark ___

  1   2   >