Hi, i have one question:
I install a linux in one machine to test the qos and bandwidth feature.
This machine have one lan interface , only for a test purpose, my ideia
is limit and control the traffic above the interface and tcp 80 port.
I create one rule in shorewall to permit the lan machine access the wan
port 80, my ideia is download with wget one ISO file to control the
speed of download....
For sample, with shorewall stopped can i download with 123 K/s this ISO.
[root@australia shorewall]# wget -c
http://ftp.club-internet.fr/pub/linux/Mandrakelinux/official/iso/2006.0/x86_64/Mandriva-Linux-Free-2006-CD2.x86_64.iso
--10:53:43--
http://ftp.club-internet.fr/pub/linux/Mandrakelinux/official/iso/2006.0/x86_64/Mandriva-Linux-Free-2006-CD2.x86_64.iso
=> `Mandriva-Linux-Free-2006-CD2.x86_64.iso''
Resolving ftp.club-internet.fr... 194.158.99.22,
2001:860:0:7fff:202:b3ff:fe46:323e
Connecting to ftp.club-internet.fr|194.158.99.22|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location:
http://mirrors-av.club-internet.fr/pub/linux/Mandrakelinux/official/iso/2006.0/x86_64/Mandriva-Linux-Free-2006-CD2.x86_64.iso
[following]
--10:53:45--
http://mirrors-av.club-internet.fr/pub/linux/Mandrakelinux/official/iso/2006.0/x86_64/Mandriva-Linux-Free-2006-CD2.x86_64.iso
=> `Mandriva-Linux-Free-2006-CD2.x86_64.iso''
Resolving mirrors-av.club-internet.fr... 194.158.97.180,
2001:860:0:7fff:203:baff:fe5a:4492
Connecting to mirrors-av.club-internet.fr|194.158.97.180|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 730,896,384 (697M), 722,397,012 (689M) remaining [text/plain]
1%
[>
] 9,528,453 123.02K/s ETA 1:52:09
Now the same file and mirror with the shorewall started:
1%
[+
] 9,667,166 5.66K/s ETA 39:33:09
My question is:
If in tcclasses file i change the full/2 to full/4 the speed couldnt
change to 3.33K/s?
whats wrong?
my tcclasses file:
###############################################################################
#INTERFACE MARK RATE CEIL PRIORITY OPTIONS
eth0 1 10kbit 10kbit 1 default
eth0 4 full/2 full/2 4
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
my tcdevices file:
#INTERFACE IN-BANDWITH OUT-BANDWIDTH
eth0 50kbit 50kbit
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
my tcrules file:
###############################################################################
#MARK SOURCE DEST PROTO PORT(S) CLIENT
USER TEST
1:P 0.0.0.0/0 0.0.0.0/0 icmp echo-request
1:P 0.0.0.0/0 0.0.0.0/0 icmp echo-reply
4 0.0.0.0/0 0.0.0.0/0 tcp 80
4 0.0.0.0/0 0.0.0.0/0 tcp - 80
# PORT(S)
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Marcelo Leão Caffaro wrote:> > > whats wrong? >It looks to me like you are trying to shape *INCOMING* traffic even though the Shorewall traffic shaping documentation clearly states that only *OUTGOING* traffic may be shaped. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
If, this feature just works in outgoing traffic, Why does my download speed decrease after I started the shorewall? Tom Eastep escreveu: Marcelo Leão Caffaro wrote: whats wrong? It looks to me like you are trying to shape *INCOMING* traffic even though the Shorewall traffic shaping documentation clearly states that only *OUTGOING* traffic may be shaped. -Tom ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Marcelo Leão Caffaro wrote:> If, this feature just works in outgoing traffic, Why does my download > speed decrease after I started the shorewall? >Because you specified a tiny (50kbit) IN-BANDWIDTH. The ingress qdisc configured by Shorewall is dropping traffic in excess of that, REGARDLESS OF WHAT KIND OF TRAFFIC IT IS. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642