HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   How can a noob like me limit bandwidth in Debian (http://www.howtoforge.com/forums/showthread.php?t=1379)

mzabret 23rd November 2005 23:14

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.

till 23rd November 2005 23:27

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?

mzabret 28th November 2005 01:25

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.. :o

Best regards, Martin.

danf.1979 21st December 2005 14:15

I would like to know this too. Thank you.

till 21st December 2005 14:38

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.

danf.1979 21st December 2005 15:01

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.

till 21st December 2005 15:09

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?

danf.1979 21st December 2005 15:19

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.

falko 21st December 2005 15:53

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? :confused:
Please post the output of
Code:

ls -la /var/www/web<id>
(or wherever ISPConfig creates the web sites on your system).

danf.1979 21st December 2005 16:24

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?


All times are GMT +2. The time now is 10:58.

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