Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd November 2005, 23:14
mzabret mzabret is offline
Junior Member
 
Join Date: Nov 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can a noob like me limit bandwidth in Debian

Hello.

Im a newbie in Linux operating system, and was wondering if you can tell me in simple steps or step by step tutorial that works, how can I limit to a user, let's say he can transfer 20 GB per month?

Any program, script, as long as it is working and that it doesnt eat a lot of CPU and RAM would be fine.

Please.


Best regards, Martin.
Reply With Quote
Sponsored Links
  #2  
Old 23rd November 2005, 23:27
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,504
Thanks: 813
Thanked 5,265 Times in 4,129 Posts
Default

Do you want to limit a specific service, like FTP downloads from this server or do you want to limit the traffic on a gateway server?
Reply With Quote
  #3  
Old 28th November 2005, 01:25
mzabret mzabret is offline
Junior Member
 
Join Date: Nov 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I want to limit the users traffic.

Like user 'example' is running a website from his folder, and let's say I wan't to give him 20 GB of traffic per month.

How would this easily be done? If you can..

Best regards, Martin.
Reply With Quote
  #4  
Old 21st December 2005, 14:15
danf.1979 danf.1979 is offline
Senior Member
 
Join Date: Dec 2005
Location: Chile
Posts: 247
Thanks: 4
Thanked 3 Times in 2 Posts
Send a message via MSN to danf.1979
Default

I would like to know this too. Thank you.
Reply With Quote
  #5  
Old 21st December 2005, 14:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,504
Thanks: 813
Thanked 5,265 Times in 4,129 Posts
Default

You can either do traffic limits like ISPConfig is doing them by analysing the logfiles for web, ftp and email traffic and resolve the user.

Or you can limit the traffic for ports on your network card, but this is not user specific.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 21st December 2005, 15:01
danf.1979 danf.1979 is offline
Senior Member
 
Join Date: Dec 2005
Location: Chile
Posts: 247
Thanks: 4
Thanked 3 Times in 2 Posts
Send a message via MSN to danf.1979
Default

I dont know if this feature is really OK. I have traffic limits for 200MB for my website, and total traffic is now of 319MB and I can still get to see it through mozilla firefox without any warning. I dont know what to check. Any ideas?
Thanks for your help.
Reply With Quote
  #7  
Old 21st December 2005, 15:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,504
Thanks: 813
Thanked 5,265 Times in 4,129 Posts
Default

Which action have you enabled in ISPConfig? Warning or site suspension?

Are the 319 MB shown in ISPConfig traffic stats for this site or in any other monitoring software?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 21st December 2005, 15:19
danf.1979 danf.1979 is offline
Senior Member
 
Join Date: Dec 2005
Location: Chile
Posts: 247
Thanks: 4
Thanked 3 Times in 2 Posts
Send a message via MSN to danf.1979
Default

I have suspension, and the data is reported by ispconfig. What should I look for? Because ispconfig reports the website as "suspended" and not active, but I can reach it with no effort with mozilla firefox...
Thanks for your time.
Reply With Quote
  #9  
Old 21st December 2005, 15:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by danf.1979
I have suspension, and the data is reported by ispconfig. What should I look for? Because ispconfig reports the website as "suspended" and not active, but I can reach it with no effort with mozilla firefox...
Thanks for your time.
Maybe your browser cache?
Please post the output of
Code:
ls -la /var/www/web<id>
(or wherever ISPConfig creates the web sites on your system).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 21st December 2005, 16:24
danf.1979 danf.1979 is offline
Senior Member
 
Join Date: Dec 2005
Location: Chile
Posts: 247
Thanks: 4
Thanked 3 Times in 2 Posts
Send a message via MSN to danf.1979
 
Default

I deleted the browser cache and still could view the webpage. This is what i get with the command:
Code:
dan@alcon:~$ ls -la /var/www/web1
total 16
drwxr-xr-x  8 dampalacios web1 368 2005-12-20 23:47 .
drwxr-xr-x  8 root        root 328 2005-12-21 04:11 ..
-rw-------  1       10001 web1  27 2005-12-19 01:07 .bash_history
drwxrwxr-x  2 dampalacios web1 104 2005-12-15 16:43 cgi-bin
-rw-------  1 dampalacios web1  24 2005-12-20 23:47 .forward
-rw-rw-r--  1 root        web1  26 2005-12-21 04:00 .htpasswd
drwxr-xr-x  3 dampalacios web1 160 2005-12-19 00:30 log
lrwxrwxrwx  1 root        root  38 2005-12-20 23:47 Maildir -> /var/www/web1/user/dampalacios/Maildir
drwxrwxr-x  2 dampalacios web1  80 2005-12-15 16:43 phptmp
-rw-r--r--  1 root        root 444 2005-12-20 23:47 .procmailrc
drwxr-xr-x  2 dampalacios web1  80 2005-12-15 16:43 ssl
drwxr-xr-x  3 dampalacios web1 112 2005-12-20 08:11 user
lrwxrwxrwx  1 root        root  46 2005-12-20 23:47 .vacation.cache -> /var/www/web1/user/dampalacios/.vacation.cache
drwxrwxr-x  4 dampalacios web1 168 2005-12-20 09:28 web
Is that ok?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Perfect Setup - Debian Woody (3.0)... sending mail from my XP box? ExCIA HOWTO-Related Questions 17 27th June 2007 18:31
Debian Sarge RAID5 killfrog Installation/Configuration 2 23rd October 2005 21:43
Bandwidth Speed limit adamluz Feature Requests 3 26th September 2005 21:58
Traffic Limit katschi Feature Requests 2 16th August 2005 23:40
Why install from source instead of debian packages? TheMike HOWTO-Related Questions 3 27th July 2005 10:40


All times are GMT +2. The time now is 00:35.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.