LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to control the time of users on internet? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-control-the-time-of-users-on-internet-498962/)

xcore_on 11-05-2006 08:42 PM

how to control the time of users on internet?
 
hello all,


how to control the time of users on internet?

squid only control based in tyme
example: from 12:00 to 13:00

I d'like permit specifics users access internet only 15 minutes/day.

how to do this? what software to use?


thanks in advance.

Tinkster 11-05-2006 09:49 PM

If it was a given (static) period of time it would be quite easy, just
read the squid FAQ and combine time based access control with authentication.

If you want to be able to grant them 15 minutes a day at arbitrary times
you'll have to go into scripting, I'm afraid, and have some process that
watches squids logs, extracts access times per user, adds them up and modifies
the configuration on the fly (and HUPs squid).


Cheers,
Tink

xcore_on 11-05-2006 10:39 PM

your second narration is my objective.

so, no have "software/plugin" for this?!


thanks

smaudlin 11-05-2006 11:55 PM

some routers will do this as well by time and/or Ip address.

Tinkster 11-06-2006 01:01 AM

Quote:

Originally Posted by smaudlin
some routers will do this as well by time and/or Ip address.

But he's asking for accumulative time per user, not time-slot per IP.


Cheers,
Tink

Tinkster 11-06-2006 01:01 AM

Quote:

Originally Posted by xcore_on
your second narration is my objective.

so, no have "software/plugin" for this?!


thanks

I didn't say there isn't. I don't know of one, and squid, which
is what you asked for, doesn't provide this per se.



Cheers,
Tink


All times are GMT -5. The time now is 05:48 AM.