LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-26-2006, 11:12 PM   #1
critical
Member
 
Registered: Feb 2005
Location: New Zealand
Distribution: Debian, Ubuntu
Posts: 46

Rep: Reputation: 15
Question Setting up a gateway server with bandwidth monitoring?


Howdy,

I'm setting up a ubuntu machine as an internet gateway,

I've set one up previous using iptables & firestarter which was fairly straight forward,

A couple of things I would like to do

- Monitor monthly bandwidth usage based on lan ip
- Restrict bandwidth on certain ips? maybe even restrict bandwidth during certain times?

I don't nessessarily need a step by step guide, just a point in the right direction and I should be able to figure out the rest

(I've looked into solutions which turn the machine into a dedicated gateway however that doesn't really work for me)

(Also the reason why this isn't in the ubuntu thread is because I'm considering doing this in either debian or freebsd)

Cheers!
 
Old 03-27-2006, 12:12 AM   #2
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
well you could look into a program called squish, i've writtern a how-to about it on my website using pam auth, i think it can be used with IP addresses instead of usernames

http://www.yourhowto.org/content/view/24/9/
 
Old 03-27-2006, 01:35 AM   #3
critical
Member
 
Registered: Feb 2005
Location: New Zealand
Distribution: Debian, Ubuntu
Posts: 46

Original Poster
Rep: Reputation: 15
Looks like Squish is used for a proxy server however unfortunately my gateway users need all types of internet access
 
Old 03-27-2006, 03:37 AM   #4
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
what do you mean all types? any type of interent access is not offered by a proxy server?
 
Old 03-27-2006, 07:32 AM   #5
~=gr3p=~
Member
 
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227

Rep: Reputation: 30
for some reason your squish howto does'nt work on my setup (Fedora Core 3 and squid with proxy_auth (pam_auth) and dansguardian). I thought of alternate way since i only want per user bandwidth limiting. I modified the squish perl script to echo the offending users to a file in /etc/security/squish and then add this line in /etc/pam.d/squid:

Quote:
auth required pam_listfile.so item=user sense=deny file=/etc/security/squished onerr=succeed
hope that makes sense
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a gateway server with bandwidth monitoring? critical Linux - Software 1 03-27-2006 12:38 AM
Setting up a gateway server with bandwidth monitoring? critical Linux - Software 0 03-26-2006 09:52 PM
Help in setting up Gateway, DHCP and DNS Server depam Linux - Software 1 10-06-2005 11:52 AM
Setting up a gateway/dhcp server. chaosego Linux - Wireless Networking 33 09-26-2004 07:50 AM
Bandwidth monitoring vinhhv Linux - Networking 8 07-21-2003 04:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration