LinuxQuestions.org
Register a domain and help support LQ
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 06-01-2005, 04:27 AM   #1
ikillu
Member
 
Registered: Jul 2004
Posts: 34

Rep: Reputation: 15
Unhappy Is it possible in Linux to limit internet uses time


Hi guys,
I provide internet service in my local area. In our area Broadband service is not available so I take Internet Connection 32/32 kbps from an ISP and make a server (redhat 7.2, still use masquerading) then share internet who are in 100 meters. now I want to make a system that user can use Internet only 500 minutes within A MONTH. is it possible? if yes then how?? if anyone know pls help me...
 
Old 06-01-2005, 06:04 AM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
what kinda authentication are you using??
 
Old 06-01-2005, 07:17 AM   #3
ikillu
Member
 
Registered: Jul 2004
Posts: 34

Original Poster
Rep: Reputation: 15
No athentication still now. just using masquerading. my client using 24 hour. no restriction.

this is simple structure of my network

http://img124.echo.cx/img124/7846/untitled14lu.gif

Last edited by ikillu; 06-01-2005 at 07:19 AM.
 
Old 06-01-2005, 07:56 AM   #4
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
well you'd probably need to install a proxy server, for starters...

http://www.squid-cache.org

then you'd need to script something-up so that when a user starts using his account it starts counting and when they stop using it it stops counting... once the target time amount is reached, access will be denied until next month... you could probably find some ready-made scripts or software that do this... it sounds like something an internet cafe would be using... maybe search for that kinda software and see if you find anything useful...

but doing this using pure NAT with no proxy could also work, i think...

AFAIK, what you'd wanna set-up is an authenticating gateway / dynamic firewall:

http://www.faqs.org/docs/Linux-HOWTO...way-HOWTO.html

http://www.google.com/linux?hl=en&lr...ay&btnG=Search

http://www.google.com/linux?hl=en&lr...ll&btnG=Search

i've never done this kinda stuff, so i'm not sure...

just my ...


Last edited by win32sux; 06-01-2005 at 08:08 AM.
 
Old 06-01-2005, 08:31 AM   #5
ikillu
Member
 
Registered: Jul 2004
Posts: 34

Original Poster
Rep: Reputation: 15
thanks win32sux. thanks for your reply and info. but this is not enough for complating my task. however, u r more more expreince and much better knows about LINUX then me. if u find any more info about THIS TOPIC pls pls inform me. THANKS
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how can I limit time access with pam hichem Linux - Security 4 11-17-2005 01:58 AM
setting time limit on internet exalted Linux - Security 7 07-07-2005 03:53 AM
Bootloader Time Limit KissDaFeetOfSean Linux - Newbie 3 06-16-2005 12:54 AM
Limit internet access for certain hosts during certain time i16978 Linux - Newbie 2 05-05-2005 01:19 AM
time limit for select jhon Linux - Networking 1 09-08-2004 10:03 AM


All times are GMT -5. The time now is 04:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration