Begränsa bredband

Frågor kring allt som rör systemadministration.
Post Reply
klein
Posts: 4886
Joined: 1 April 2002, 02:00
Location: 43,41,41N, 7,15,47Ö

Begränsa bredband

Post by klein » 16 August 2012, 10:02

Har en 10 Mbit linna och ett antal användare. Problemet är att en ett antal användare tanka väldigt mycket via torrent.

Tanken är att sätta ubuntu maskin mellan operatören och vårt nät, för begränsa bandbredden.

Men hur gör man det rent teknisk? Vilka applikation skall man köra på ubuntu maskinen?

User avatar
kjell-e
Posts: 2816
Joined: 21 December 2002, 16:27
Location: Linköping
Contact:

Re: Begränsa bredband

Post by kjell-e » 16 August 2012, 18:29

Du borde ta en titta på tc och iptables.
tc - show / manipulate traffic control settings

Tc is used to configure Traffic Control in the Linux kernel. Traffic Control consists of the following:

SHAPING
When traffic is shaped, its rate of transmission is under control. Shaping may be more than lowering
the available bandwidth - it is also used to smooth out bursts in traffic for better network behav-
iour. Shaping occurs on egress.

SCHEDULING
By scheduling the transmission of packets it is possible to improve interactivity for traffic that
needs it while still guaranteeing bandwidth to bulk transfers. Reordering is also called prioritiz-
ing, and happens only on egress.

POLICING
Where shaping deals with transmission of traffic, policing pertains to traffic arriving. Policing
thus occurs on ingress.

DROPPING
Traffic exceeding a set bandwidth may also be dropped forthwith, both on ingress and on egress.

Processing of traffic is controlled by three kinds of objects: qdiscs, classes and filters.
Här t.ex. hittar du lite mer om hur du kan göra. http://www.knowplace.org/pages/howtos/t ... amples.php

Post Reply