Koozali.org: home of the SME Server

User Traffic Control

Offline hawk

  • *
  • 141
  • +0/-0
    • hawkelectronics
User Traffic Control
« on: March 05, 2015, 05:29:23 PM »
hi
I have a problem with students abusing the internet, i have been using sarg to monitor and web filtering for blocking, can anyone direct me in the right direction for a contrib i could install that will allow me to allocate a certain amount of bandwidth per user per month.

many thanks
john

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: User Traffic Control
« Reply #1 on: March 05, 2015, 05:38:21 PM »
the short answer is: "you can't"

you'd do traffic shaping in front of your server, using something like m0n0wall, or other firewall oriented distro

All IMVHO

guest22

Re: User Traffic Control
« Reply #2 on: March 05, 2015, 10:30:56 PM »
Another answer could be, depends on in which country you are, for in some countries filtering web access is illegal, even if they are students. Next to that, 'abusing internet' is very broad concept. Can you be more specific?

Offline hawk

  • *
  • 141
  • +0/-0
    • hawkelectronics
Re: User Traffic Control
« Reply #3 on: March 06, 2015, 12:00:11 PM »
hi thanks for the info,
looked into m0n0wall but it has been discontinued. I would also prefer if i could get something that runs on SME.

We are in South Africa, and we can filter web access. When i mean abuse we have very limited internet.
I have a 4MB line speed and lucky if we get 2.5mb. Have an uncapped data account that gets throttled after about 150Gb of internet.
This is for about 120 students. Every new year we get the same problem, new students new devices, most of these devices have never been connected to the internet before and most of the students have never had internet before, so things like social networking is a new experience. The institution supplies free internet but only for educational purposes. Students get this internet 24/7, 90% of the usage goes on facebook, so now because the throttling we now block facebook. But the students have asked can they not be issued with a limited amount of bandwidth for a particular month, so those that want to abuse the system will get blocked when they have used their allocation.

I think that with internet getting more readily available around the world i might be taking a step backwards.

thanks
john




Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: User Traffic Control
« Reply #4 on: March 06, 2015, 12:23:25 PM »
I'd:

- filter web traffic using rules to block facebook and other social network.. you can do it with custom squid rules to block  authentication
- shape bandwidth using something in front of your server

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: User Traffic Control
« Reply #5 on: March 06, 2015, 12:38:21 PM »
looked into m0n0wall but it has been discontinued.

there are many linux distro firewall oriented.. dozens

Quote
I would also prefer if i could get something that runs on SME.

not so easy.. if you search for "squid limit internet traffic quota" with google you'll see that:
- such a feature is not present in squid
- you need to install and configure sw, compiling it from source.. and maybe you need to install something on the clients

SME can be used as auth server via samba, radius and openldap..


Offline Fumetto

  • *
  • 899
  • +1/-0
Re: User Traffic Control
« Reply #7 on: March 06, 2015, 05:39:02 PM »
I use pfSense into a school enviroment as gateway; with squid, squidguard, snort and captive portal function the only difficulty was to enter data for each user, but you can also take them to a domain controller or a Kerberos servers (which are integrated in SME). With captive portal function can limit user by time usage, data usage...

SME can act as a gateway, but the advanced functions of a gateway are easier to manage with an firewall-gateway oriented distro.

Offline hawk

  • *
  • 141
  • +0/-0
    • hawkelectronics
Re: User Traffic Control
« Reply #8 on: March 09, 2015, 02:52:08 PM »
hi thanks i will try pfsense

thanks