Skip to contentSkip to conversation

The Wonder Shaper problem

LARTC Rudi Hansen 4 participants 7 messages Jul 4, 2003 – Jul 25, 2003

lore
Share & tools
lore
#0 lore raw

Hi, i don't know if anyone can help me.

I Have and Linux RedHat 9.0 machine, where i have installed the wondershaper script to limit my inbound internet speed.
And on the Linux it works fine, but then i have an Windows machine that uses the linux machine to get to the internet.
And this on this machine the script does not seam to have any impact.

I'm trying to limit my upload speed.

If i upload a file from the linux machine my max speed is 9Kbit, but on the windows its 40Kbit.

Can anyone help??

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 2 lines · Rudi Hansen

I Have and Linux RedHat 9.0 machine, where i have installed the wondershaper script to limit my inbound internet speed.

Your message does not entirely make sense. Here you are talking about inbound.

Quoted 2 lines

If i upload a file from the linux machine my max speed is 9Kbit, but on the windows its 40Kbit.

This is about outbound. So I'm not entirely sure what you mean. Make sure you run the wondershaper on the correct interface though.

Good luck.

Signature · 5 lines
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Rudi Hansen
Quoted 2 lines

Your message does not entirely make sense. Here you are talking about inbound.

Ok let's se if I can explain it properly.

I have a small home network with an ADSL router fore my internet connection, and some computers all connected to the ADSL Router through a switch.

Now my problem is that I would like to be able to restrict the internet bandwidth on some of my machines.

Now I have used The Wonder Shaper script to restrict the bandwidth on my Linux machine, and it works on that machine.

But now my problem is if I setup one of my Windows machines to use the Linux machine as gateway, but I can still access the internet with full bandwidth from that machine.

Now what am I doing wrong?

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Rudi Hansen
Quoted 20 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Rudi Hansen
Sent: Sunday, July 06, 2003 5:27 PM
To: [email protected]
Cc: bert hubert
Subject: Re: [LARTC] The Wonder Shaper problem

Quoted 2 lines

Your message does not entirely make sense. Here you are talking about inbound.

Ok let's se if I can explain it properly.

I have a small home network with an ADSL router fore my internet connection, and some computers all connected to the ADSL Router through a switch.

Now my problem is that I would like to be able to restrict the internet bandwidth on some of my machines.

Quoted 8 lines

Now I have used The Wonder Shaper script to restrict the bandwidth on my Linux machine, and it works on that machine.

But now my problem is if I setup one of my Windows machines to use the Linux machine as gateway, but I can still access the internet with full bandwidth from that machine.

Now what am I doing wrong?

If I understand the topology of your network correctly, all packets coming from the Internet through your ADSL router come back in onto your network and travel directly to the Windows machines without passing the linux router. That's why they are not shaped.

One solution would be to put your linux router in between the ADSL router and your client network. You'll need to add a network card to you linux router, modify routing on the ADSL router to reach your client network, and point the default gateway on the linux router to the ADSL router.

In that case you are no longer using the ADSL router as a network address translating router but simply as an ADSL modem.

Signature · 5 lines
Vik

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#4 lore raw
In reply to Rudi Hansen
Quoted 1 line
Quoted 1 line

I have a small home network with an ADSL router fore my internet

connection,

Quoted 2 lines
Quoted 1 line

and some computers all connected to the ADSL Router through a switch.

One solution would be to put your linux router in between the ADSL router

and

Quoted 1 line

your client network. You'll need to add a network card to you linux

router,

Quoted 1 line

modify routing on the ADSL router to reach your client network, and point

the

Quoted 4 lines

default gateway on the linux router to the ADSL router.

In that case you are no longer using the ADSL router as a network address translating router but simply as an ADSL modem.

Is that really the only way it can be done?
I would really like to be able to do this without putting the Linux machine between the network and my ADSL Router.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#5 lore raw
In reply to Rudi Hansen
Quoted 4 lines · Rudi Hansen

Is that really the only way it can be done?
I would really like to be able to do this without putting the Linux machine between the network and my ADSL Router.

For the linux box to do the shaping, all the traffic must go in to, and out of its interfaces.
There's a small chance you might be able to get away with using a single network card and aliased interfaces in the linux machine, but this would make traffic shaping much more difficult than it needs to be (and probably slower too).

Signature · 10 lines
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer  email:     [email protected]
SnapGear ---                           ph:         +61 7 3435 2809
  | Custom Embedded Solutions          fax:         +61 7 3891 3630
  | and Security Appliances            web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#6 lore raw
In reply to Rudi Hansen
Quoted 17 lines · Rudi Hansen
Quoted 2 lines

Your message does not entirely make sense. Here you are talking about inbound.

Ok let's se if I can explain it properly.

I have a small home network with an ADSL router fore my internet connection, and some computers all connected to the ADSL Router through a switch.

Now my problem is that I would like to be able to restrict the internet bandwidth on some of my machines.

Quoted 8 lines

Now I have used The Wonder Shaper script to restrict the bandwidth on my Linux machine, and it works on that machine.

But now my problem is if I setup one of my Windows machines to use the Linux machine as gateway, but I can still access the internet with full bandwidth from that machine.

Ah, I get it. You need to disable icmp redirects, your linux box is sending the windows machine directly to the adsl router!

Check out /proc/sys/net something or order.

Good luck!

Quoted 4 lines

Now what am I doing wrong?

Signature · 5 lines
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/