Displaying 20 results from an estimated 10000 matches similar to: "Simple traffic shaping"
2006 Mar 04
3
my shaping rules wont work on nat box
I am currently running the following script on an internal machine to
shape outbound ftp and email traffic.
I am trying to move the script to my nat router (ipcop with 2 nic cards)
so that it shapes the whole network and not only the outbound of 1 box.
I have cable modem -> ipcop (eth1) >(eth0 - 192.168.1.1) >
192.168.1.100 and 192.168.1.101.
The scripts works great running on
2004 Jul 09
3
tc filter + bridging + htb -- works only if ip_forward = 0
I thought that the below email would be of interest to LARTC readers. I
wasted quite a bit of time tracking down this "feature" (bug?). Any
comments that shed light on this would be appreciated. In short, "tc
filter" + htb + bridging works only with ip_forward off.
Andrew Athan
-----------------------------------------------------------------------
All:
It seems that
2006 Feb 19
1
controlling traffic going via FTP using tc
hi
how does one control traffic of ftp using tc.I tried few things ,dont know
how to do it.Could you please guide me in it.
Thanks in advance
Nampreet
_________________________________________________________________
All that you wanted to know about Ms Beautiful Lips
http://server1.msn.co.in/Profile/katrina.asp
2004 Oct 07
2
shaping outbound ftp traffic on 1 nic not working properly
>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 50000:51000 -j MARK --set-mark 20
>> iptables -t mangle -A MYSHAPER-OUT -m mark --mark 0
2004 Aug 08
1
shaping ftp traffic
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 seems that I might need to add a
''lan limit'' so all traffic that is not marked still
2004 Oct 08
3
shaping outbound ftp traffic
>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?? What >happens when the tc rules
>are shut off??
No, everything works fine
2004 Jul 23
2
marking and shaping outbound passive ftp traffic
Will the following rules work to mark and shape OUTBOUND ftp speed
(passive ftp ports 50000-60000) on my linux server?
I want to be able to run these commands on the actual computer that is
running the ftp server.
iptables -t mangle -N MYSHAPER-OUT
iptables -t mangle -I POSTROUTING -o eth0 -j MYSHAPER-OUT
iptables -t mangle -A MYSHAPER-OUT -p tcp --dport 50000:60000 -j MARK
--set-mark 1
tc
2004 Nov 24
17
outbound shaping
Well it appears i have no clue what im doing. I thought i had the below
script working to shape outbound ftp traffic....however, it is shaping
inbound traffic too. I have NO clue why.
Please comment if anyone has any ideas why this doesnt work. I want to
shape only outbound ftp traffic and not inbound or lan traffic.
#!/bin/bash
#shaping passive and active outbound ftp traffic on an
2004 Oct 06
1
shape outbound ftp with 1 nic
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 perfectly....just like i want. However, i just noticed that it is also limiting uploads coming to my server.
Is there something I can change to make it not limit uploads to my server?
#!/bin/bash
#shaping passive ftp traffic
# mark the
2005 Feb 11
1
Help!!! Bandwith Control with a NAT machine
Hello everyone,
First of all, sorry for my poor english.
I''ve been working with this for a few weeks and I''m getting sick...
I''m trying to control the bandwith in my network using the following script. The machine where the script is running makes NAT, eth0 is connected to the router and eth1 is connected to the Lan. When I run the script it doesn''t appear any
2006 Jan 04
3
TC/CBQ shaping problems
Hello everyone,
I''m a newbie experimenting with CBQ shaping and am facing a few problems.
Can any of you please help?
TEST SETUP:
+---------------+ +----------------+
| 10.0.0.103 |----------->| 10.0.0.102 |
+---------------+ +----------------+
10.0.0.103: Linux, 100Mbit/s NIC
10.0.0.102: Windows, 100Mbit/s NIC, iperf tcp server (ports 2000 and 2001)
WHAT I
2007 Sep 01
9
complete linux and shaping newbie needs help
Hi there good people,
I''m a newbie in what concerns running Linux on machines other than
desktops, so I need help from all you gurus out there :-)
I have Linux installed on an old computer (Winchip C6, Pentium clone),
acting as a router/firewall for two other computers. Both these
machines are connected to the firewall via a dedicated ethernet card
each, on different subnets,
2007 May 24
2
tc-htb traffic shaping script
Hi,
Is there any tested good HTB script for traffic shaping available like as
that of CBQ available at.
http://freshmeat.net/projects/cbq.init
I am n new bie and need to work on htb.
--
Regards,
M Arman
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
2004 Oct 18
11
IP based bandwith limit
Hi,
i''ve following problem. One of our gateway router, which connects some
of our customers should have bandwith limit.
So customer A with IP XX should have 2 Mbit, customer B with IP YY
should have 10 Mbit. There is no need of borrowing bandwith so no
fairness needed.
My simple question: with which technique should I manage this shaping?
Or is there any existing project which
2003 Aug 08
1
Looking for a good htb traffic shaping script to prioritize incoming traffic
I am looking for a good htb traffic shaping script to prioritize incoming
traffic over outgoing traffic for my machine. I have a 100mbit line, ftp
up, backup data comming in, but whenever mirrors starts grabbing it they use
all the traffic and the backup data comming in (the important data) drops to
like 300kb/sec. I was thinking some script doing
sleep 60
[if downstream > 1mb/sec, limit
2006 May 27
14
HTB shaping & borrowing info
Hello to everybody,
We want integrate in a router/firewall (Debian Based, 2.6 Kernel), an HTB
shaper.
The goal is to divide the traffic for classes of workstations, at example in
three classes,
let say A, B and C.
Example:
A 70 Mb/s
B 20 Mb/s
C 10 Mb/s
If B don''t make traffic, 7/8 of 20Mb/s must be assigned to A and all the
rest at B
We have used CBQ and HTB, with poor succes.
Anybody
2007 Mar 20
3
Divide bandwidth between 4 groups of ip with the same rate
Hello, I have begun to use the tc scripts since 2 weeks ago, so I am beginner. I am trying to divide my bandwidth in 4 independent ones. Each of these sub-bandwidths is assigned to 4 different groups of ip. Bandwidth sharing is allowed. I put a Linux with two Ethernet card between the router and the LAN. Eth1 is the card connected to the router and eth0 is the one connected to the LAN. My ISP
2007 Jun 19
4
Why does this script noet work (bandwidth, tc en u32)
Hi,
Can anyone point me out where the script below is wrong?
All I want is that host 172.31.1.1 can only use 10 megabit. If I run
this script on the in-between router nothing happens (the host uses
still the full 100 mbit, tested with iperf) , so i assume that something
must be wrong....
#!/bin/sh
# LAN1 NIC
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb
tc class add dev
2004 Sep 28
2
Shaping not working
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 disable the definition of 1:40, every traffic falls into 1:30
(except for the traffic defined to be in
2005 Dec 04
3
Shaping per machine
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: classid 1:1 htb rate 100MBit ceil 100MBit
tc qdisc add dev eth0 parent 1:10 handle 110: