LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Matthew Moyle-Croft <mmc@mmc.com.au>
  To  : Ryan Verner <xfesty@computeraddictions.com.au>
  Date: Tue, 8 Jul 2003 22:15:59 +0930 (CST)

Re: ADSL Shaper

> > iptables -t mangle -A POSTROUTING -s 192.207.120.0/255.255.255.128 -j MARK
> --set-mark 0x5
> 
> 192.207.120/25 is your internal lan?

Yes.  I have my own portable ip space (geeze was I thinking right in '92)

So essentially that makes MY internal stuff get priority going out.

I run a website that sends out a fairbit of traffic (5GB per month) so I DO 
notice people d/l from the website.  [car geeks on that website]

> > iptables -t mangle -A POSTROUTING -s 150.101.234.58 -p tcp -m tcp --sport 80
> -j MARK --set-mark 0xf
> 
> Is that the static IP of your ADSL connection?  I'm doing stuff through PPPoE
> (which makes me wonder if the shaping concept's going to be slightly
> different, given PPPoE wierdness), I'm assuming I can knock out the -s line
> and replace with -i ppp0?

Yes.  Indeed - 150.101.234.58 - most external services hang off that (mainly 
because of the way Internode do routing of extra ip space to get around 
Tel$tra wierdness).  So this drops the priority of my websites' outgoing 
packets.

> > # Set the following values to somewhat less than your actual download
> > # and uplink speed. In kilobits
> > DOWNLINK=512
> > UPLINK=128
> > DEV=eth1
> 
> Hmm.  Are the comments valid (seeing as I'm assuming you're on 512/128)?

Yep.  Valid, and yes on 512/128.  Downlink's pretty much irrelevant as we 
don't shape it - but hey.


> In the case of PPPoE, I'm assuming DEV will be ppp0?

Yep.

MMC

-- 
Matthew
--
Matthew@Moyle-Croft.com    | mmc@mmc.com.au        |    mmc@206gti.net
http://www.Moyle-Croft.com | http://www.mmc.com.au | http://206gti.net

-- 
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.freenode.net
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page