Displaying 20 results from an estimated 8000 matches similar to: "Bandwidth shaping per users with pam_auth"
2003 Aug 01
2
Bandwidth Monitor
Anybody knows about one bandwidth meter to use in Bering.
This is a script i built, it''s works wel, but it''s not very nice!!! =P
#!/bin/bash
# Bandwidth Monitor
device=eth0
bytes=`grep $device /proc/net/dev | cut -f 2 -d : | cut -d '' '' -f 2`
kbytes=`expr $bytes / 1024`
actual=$kbytes
i=1
x=0
total=0
while [ $i -le 2 ]
do
x=`expr $x + 1`
2006 Jun 22
1
iptables acknoledgment match
Hi:
Anybody have the iptables line to match ack?
iptables -t mangle -A QoS_Test -p tcp --tcp-flags SYN,RST,ACK ACK -m
length --length :128
I try this but it''s not working for me.
Best regards.
Sebastián A. Aresca
2006 Feb 21
0
Best internet traffic shaping for small lan
I''m admin of 50 clients. Sometimes I upgrading my internet traffic
shaping script. I think rules of inetrnet traffic
shaping is very important thing! I would like to ask some help from
people, who understand something about
SQUID ZPH and TC, to aim beter internet traffic shaping scripts.
Squid has ZPH suport, becouse its responds to such commands as:
zph_tos_local 8
zph_tos_peer 0
2007 Mar 28
1
traffic shaping with NAT: IFB as IMQ replacement?
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) <-> Linux Router <-> LAN
Linux router:
- does NAT for the LANs
- runs local processes
2006 Jan 10
2
Shaping traffic bound for the NAT''ed networks whithout imq
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 have to limit each of the 3
interfaces to 1/3 of the total
2005 Jul 04
0
ingress/imq shaping setup
hi list,
i''m about to setup traffic shaping on a server and got some small
questions about the setup. i read alot of docs/howto''s but there are
still some questions i''d like to ask.
setup on the box is:
- external if is ppp0 (dsl)
- internal if in eth0 (with ~15 nat''ed boxes)
- openvpn at tun1
since all ppl on the lan feel like they have to use p2p i decided
2004 Jun 24
1
Ingress shaping using IMQ
Hello people,
This the first time i post in list.
I read the lartc how-to and decided that IMQ with HTB was the solution to
solve my problem.
The ingress shaping i want is simple, shape the traffic to my ftp-server,
i just want to give 8kbps to each client because they only upload to my
ftp-server, and i dont want to any class borrowing, each client only
send(upload) at 8kbps, not above this
2004 Sep 08
3
Help! VLAN tagged traffic not shaping :-(
Hello,
I have a linux box sitting between (and bridging/firewalling) 2 LAN segments.
I''m using Bridge/Netfilter/IMQ/tc(htb) to control (shape) mail/web traffic that
traverses the 2 networks.
The networks also have some VLAN tagged traffic flying around. My linux box
behaves OK with VLAN traffic except that the shaping doesn''t seem to work.
Normal http shapes alright but as soon
2005 Jan 24
3
Htb, imq and sfq traffic shaping
Hello,
I wrote a simple traffic shaping script (below) that should have allowed me to shape my internet traffic a bit (ppp0 - adsl 128kbit/64kbit; local interface eth0).
The script works only partially - the speed is being limited but too much. Without running this script my download rate is about 10kBytes (with second computer also downloading at about 6kBytes). After running it my download speed
2005 Jan 06
0
Shaping the sum of in/out traffic (IMQ?)
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. here is the line, the clock speed
is 1024kbps, do what you want).
I''m a litte bit familiar
2006 Apr 14
3
Shaping per IP in PPPoE borrowing or sharing Uplink or Downlink
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.
ppp0, alone using HTB or the like. this means that i have to create for
another device, e.g. ppp1,
2004 Jan 30
0
IMQ or shaping tx on 2 NICs?
hi all, i have tried out both IMQ and shaping transmit on 2 NICS downstream and
upstream respectively, which method is preferred in terms of accuracy,
stability etc
pls advise
tc
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
2005 Feb 13
0
Shaping question - tunnel
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 which provider : 1 Mbit external bandwidth
and 16Mbit MAN bandwidth with
2004 Jan 19
3
Ingress Shaping using IMQ
Hi Guys,
Here is a question that is probably of concern to many of us.
I am under pressure to provide some solution for ingress traffic
shaping. What my customer demands is to divide the downstream (ingress)
of an ADSL lines to two classes of traffic - important traffic and non
important downloads. He has a very reasonable requirement: he wants a
guarantee of at least 1000kbps at all times for
2002 Dec 19
2
Shaping traffic to local users ?
Hello
Is it possible to shape incoming traffic for local linux users ?
Iptables can mark packets created from certain pid/uid/gid. Is there a
way to do the same for packets _destined_ for some pid/uid/gid so that I
can later shape them with IMQ ?
Thanks in advance
Dimitris Kotsonis
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
2005 Nov 01
0
ADSL-Bandwidth-Management-HOWTO
Hi,
I''ve read ADSL-Bandwidth-Management-HOWTO
http://www.tldp.org/HOWTO/ADSL-Bandwidth-Management-HOWTO/implementation.htm
l#AEN166
and I''ve a doubt from script:
[ ... ]
# DNS name resolution (small packets)
iptables -t mangle -A MYSHAPER-OUT -p udp -j MARK --set-mark 21
[ ... ]
That is a bug ?
I think that " DNS name resolution (small packets) " is better
2005 Jan 05
2
Shaping the sum of incoming and outgoing traffic
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 (i.e. here is your line, the clock speed is 1024kbps, do what
you want).
I''m a litte bit
2004 Jan 23
3
Traffic shaping and IP aliases
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 dev eth0:0 root handle 1: htb default 20 r2q 5 ...) for the eth0:0 and eth0:1
or can still be only tc rules for the eth0?
Thanks
2004 Dec 20
1
Shaping over multiple outgoing interfaces
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 solution could be IMQ, but i prefer to not to patch kernel and iptables. Any
2005 Jan 23
1
Shaping traffic with high priority hosts
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 connection
is a 1Mbps ADSL line. What I want to achieve is to have
normal hosts to share a big