I think the problem might have been my ISP - after messing around with the script for a day or two - and completely mangling it - I disabled the script - didn't bother checking how my FTP server was doing, but the next day everything was fine without the script. I reloaded the script and all was well.
<side note> I also added my own class (to the new package as well) for the file sharing program my brother uses. It seems to work fine if someone using an active connection connects to me (throttles the bandwidth appropriatly). Unfortunatly if they are using a passive connection I can't throttle them. Here is how the application works: Port 412 is forwarded to an internal computer. With active connections it is a direct (UDP) link 412 -> 412 so I just add a rule that says if the dport is 412 slow the connection down. With passive its (TCP) port 412 -> a random port. Adding a rule with a sport of 412 doesn't work cause it kills the incoming traffic as well. Here are the rules I came up with: tc filter add dev $EXTERN_IF parent 1:0 protocol ip prio 26 u32 match \ ip dport 412 0xffff flowid 1:10 tc filter add dev $EXTERN_IF parent 1:0 protocol ip prio 27 u32 \ match ip src 192.168.2.200/24 6 0xff \ match ip sport 412 0xffff \ flowid 1:20 The above filter doesn't seem to do anything at all. Any ideas would be appreciated. The reason my flow ids are different is because the first connection uses UDP and needs to go before the UDP filter (I think). The send is 1:20 just so I could keep everything together. </side note> Thanks again Sandro S >To: "Simon Bolduc" <[EMAIL PROTECTED]>, ><[EMAIL PROTECTED]> >Subject: RE: [Leaf-user] Traffic Shaping using TC >Date: Thu, 28 Mar 2002 20:09:18 +0100 > >Hi Simon > >Thanks again for the modified package! > >Do you notice that speed decrease only when uploading to this particular >FTP >server? > >Is it ok for you if we first try to find out why FTP uploads to this (or >every FTP) server gets slower and then begin to implement to "music" rule? > >best wishes > >--- >Sandro Minola | LEAF Developer (http://leaf.sourceforge.net) >mailto:[EMAIL PROTECTED] | mailto:[EMAIL PROTECTED] >http://www.minola.ch | http://leaf.sourceforge.net/devel/sminola > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Simon Bolduc > > Sent: Tuesday, March 26, 2002 6:24 PM > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Subject: RE: [Leaf-user] Traffic Shaping using TC > > > > > > When I'm talking about 8-12 K/s I mean Kilobytes per second. My > > connection > > is Cable with 384 Kilobits /s up, and 3 Megabits/s down. The FTP > > client is > > running on another ISP entirely so it looks like: > > > > My Client -> LEAF box (no QoS) -> Internet -> DCD box (QoS running) -> > > Server > > > > There is no DMZ in place. So thats what the FTP looks like. > > > > The other issue is the following: > > > > I have a file sharing program (family members getting music and > > such) that > > uses both TCP and UDP ports in order to communicate. The Port > > that I use is > > 412 TCP&UDP and is forwarded to a server not in a DMZ. My main > > goal is to > > limit the sending capabilities of the program to a value that is > > very low so > > it doesn't interfere with other more important outgoing information i.e. > > FTP, Mail, VPN. > > > > Any ideas or help would be appreciated. > > > > S > > > > > > >From: "Sandro Minola" <[EMAIL PROTECTED]> > > >To: "Simon Bolduc" <[EMAIL PROTECTED]>, "Leaf-User" > > ><[EMAIL PROTECTED]> > > >Subject: RE: [Leaf-user] Traffic Shaping using TC > > >Date: Tue, 26 Mar 2002 18:04:58 +0100 > > > > > >Hi Simon, hi all > > > > > > > slow - with a default setup my ftp server went from 40-43 K/s to > > > > 8-12 K/s. > > > > > >How are you connecting to your FTP server? Is this server located on >your > > >LAN, your DMZ or on the internet? > > >You wrote that you "portforward to an internal box". Is this internal >box > > >the FTP server? If yes, where is your client then? > > >Looks your setup like this: > > >My client --> internet --> Leaf box which is running my script --> FTP > > >server > > >? > > > > > >Are you always talking about KBits/s if you write "K/s"? > > > > > >If yes, I assume that you're using a dial-up connection!? > > >Well, I'm not sure if my script runs well with PPP (dial-up) >connections > > >becaus of the different MTU values. > > > > > >Please tell me more about your setup and what exactly goes wrong, and >in > > >which direction (up- or download)? > > > > > >I'm sure we can fix your problems. > > > > > >BTW: I didn't notice ANY problems yet and I'm even running a DMZ. > > > > > >--- > > >Sandro Minola | LEAF Developer (http://leaf.sourceforge.net) > > >mailto:[EMAIL PROTECTED] | mailto:[EMAIL PROTECTED] > > >http://www.minola.ch | http://leaf.sourceforge.net/devel/sminola > > > > > > > -----Original Message----- > > > > From: Simon Bolduc [mailto:[EMAIL PROTECTED]] > > > > Sent: Tuesday, March 26, 2002 3:56 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: RE: [Leaf-user] Traffic Shaping using TC > > > > > > > > > > > > I installed the script - and certain parts work - but somethings > > > > got really > > > > slow - with a default setup my ftp server went from 40-43 K/s to > > > > 8-12 K/s. > > > > While that doesn't really concern me it is a little > > frustrating. I also > > > > tried (to no avail) to add rules that would govern traffic that uses > > >both > > > > UDP and TCP port 412 (thats the port I'm sending from internally and > > > > receiving to internally) which are both port forwarded to an > > > > internal box. > > > > This box also runs other 'net services so I can't just throw the > > > > IP into the > > > > filter and make it work that way. The rules I added were (just as I > > >test > > > > setup - I know it'd be abismally slow - but they should indicate > > > > that I have > > > > set things up correctly) are: > > > > > > > > tc class add dev $EXTERN_IF parent 1:1 classid 1:30 cbq rate > > 40kbit / > > > > allot 1600 prio 3 avpkt 1000 bounded > > > > > > > > tc qdisc add dev $EXTERN_IF parent 1:30 handle 30: sfq perturb 10 > > > > > > > > tc filter add dev $EXTERN_IF parent 1:0 protocol ip prio 25 > > u32 match / > > > > ip dport 0x019c 0xffff flowid 1:30 > > > > > > > > and I moved the bulk class/filter to 1:40 > > > > > > > > I'm afraid I may have done this on the wrong interface - and I'm not > > >sure > > > > whether this rule actually has to come before the high priority > > > > class or not > > > > as I think the first filter/class that applies to a packet is used. > > >Also > > > > I'm unsure of how to specify a group of ports like the passive > > > > ones used for > > > > ftp would be setup. Through your script I've learned a lot more >about > > > > Traffic shaping but obviously not enough. > > > > > > > > S > > > > > > > > > > > > > > > > > > > > > > > > > _________________________________________________________________ > > Get your FREE download of MSN Explorer at >http://explorer.msn.com/intl.asp. > > >_______________________________________________ >Leaf-user mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/leaf-user > _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user