Re: Speed limit for shared Internet connection
From: Mihai Osian (zzz_at_zzz.com)
Date: 09/29/05
- Next message: mrbrklyn: "Re: vi editor file limitation"
- Previous message: Mihai Osian: "Re: Replay Radio replacement in Linux?"
- In reply to: Yvan_at_office: "Speed limit for shared Internet connection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Sep 2005 13:14:57 +0200
Yvan@office wrote:
>I have ISDN connection to Internet that I share with few other offices
>at work. I have a line in /etc/rc.d/rc.local (Fedora Core 1):
>
>/home/iva/bin/internetPoIP-u
>
>and:
>...............................................
>more /home/iva/bin/internetPoIP-u
>#!/bin/bash
># echo " - Setting the default FORWARD policy to DROP"
>/sbin/iptables -P FORWARD DROP
>
># echo " - Enabling SNAT (IPMASQ) functionality on ippp0"
>/sbin/iptables -t nat -A POSTROUTING -o ippp0 -s 192.168.0.9/32 \
> -j MASQUERADE
>/sbin/iptables -t nat -A POSTROUTING -o ippp0 -s 192.168.0.6/32 \
> -j MASQUERADE
>/sbin/iptables -t nat -A POSTROUTING -o ippp0 -s 192.168.0.15/32 \
>-j MASQUERADE
>
># echo " - Setting the FORWARD policy to 'DROP' all incoming /
>unrelated traffic"
>/sbin/iptables -A INPUT -i ippp0 -m state --state NEW,INVALID -j DROP
>/sbin/iptables -A FORWARD -i ippp0 -m state --state NEW,INVALID -j DROP
>echo 1 > /proc/sys/net/ipv4/ip_forward
>...............................................
>
>
>
>But sometimes someone starts downloading big files, and all of the other
>users can not do anything.
>
>How can I put some speed limit to such users? Say 1/3 of a full speed,
>or 2000 bytes/sec or something?
>
>
>
>
Search on Google for "traffic shaping", CBQ and/or HTB.
Mihai
- Next message: mrbrklyn: "Re: vi editor file limitation"
- Previous message: Mihai Osian: "Re: Replay Radio replacement in Linux?"
- In reply to: Yvan_at_office: "Speed limit for shared Internet connection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|