Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
limiting traffic of a certain range of internal IPs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Aphex3K
Apprentice
Apprentice


Joined: 18 Nov 2003
Posts: 182
Location: Germany

PostPosted: Mon Nov 22, 2004 9:29 pm    Post subject: limiting traffic of a certain range of internal IPs Reply with quote

Hey Folks,

I'm using my GentooBox as Router for a long time now. I'm using IPtables for forwarding the DSL Internet Traffic to my internal LAN.

Now I want to limit the traffic of the IP Range 192.168.0.XXX where XXX is a number above 29.

Anobody having experience with that?

Thanks in Advance
_________________
managing a server running gentoo...
Back to top
View user's profile Send private message
aetius
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2004
Posts: 118

PostPosted: Mon Nov 22, 2004 9:44 pm    Post subject: Reply with quote

define "limit the traffic".
Back to top
View user's profile Send private message
Aphex3K
Apprentice
Apprentice


Joined: 18 Nov 2003
Posts: 182
Location: Germany

PostPosted: Mon Nov 22, 2004 9:47 pm    Post subject: Reply with quote

All IPs above something like 192.168.0.29 should only use 50KByte/s of my 1,5MBit ADSL Internet connection.

I googled a bit, and found out that wondershaper might be a proper solution but i haven't used it yet.
_________________
managing a server running gentoo...
Back to top
View user's profile Send private message
aetius
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2004
Posts: 118

PostPosted: Tue Nov 23, 2004 2:14 pm    Post subject: Reply with quote

The shaping solutions do have the ability to work on specific addresses or ranges. You might find it easier to separate those machines onto a different subnet. The HOWTO has that information (section 9.6.2). You'll need the right options in your kernel config -- they are under:

Device Drivers -> Networking Support -> Networking Options -> QoS and/or fair queueing

in menuconfig. Remember that you can only rate-limit traffic that is leaving the machine, unless you want to try the ingress qdisc. That means you should rate-limit incoming traffic on the internal interface (leaving your router for the internal network), and outgoing traffic on the external interface (leaving your router for the outside world).

Also, you'll probably want to modify the shaper commands in wondershaper to control the traffic at a much lower rate -- since your goal is not to improve interactivity, but rather to control the raw amount of traffic.
Back to top
View user's profile Send private message
Aphex3K
Apprentice
Apprentice


Joined: 18 Nov 2003
Posts: 182
Location: Germany

PostPosted: Tue Nov 23, 2004 8:27 pm    Post subject: Reply with quote

O k, sounds pretty logical to my but how do i do this exactly? Which HOWTO do you mean? Got a link?
_________________
managing a server running gentoo...
Back to top
View user's profile Send private message
aetius
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2004
Posts: 118

PostPosted: Wed Dec 08, 2004 6:00 pm    Post subject: Reply with quote

Since you mentioned Wondershaper I thought you were already there:

http://lartc.org/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum