SQUID proxy : How do I limit internet connectivity to X hrs/day


 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications SQUID proxy : How do I limit internet connectivity to X hrs/day
# 1  
Old 09-21-2011
SQUID proxy : How do I limit internet connectivity to X hrs/day

Hi Everyone!

A friend of mine is looking for a way to limit time his kids spent on the internet. I told him he should try out Squid proxy server. He now tries to find a way to limit total time spend on the internet to "X" hours a day, at any time during the day.
I remember there are built-in rules in Squid to "open" internet access in certain times of the day (you can say www.site.com is only reachable after 17:00 for example), but there seems no built-in rule to open internet access for total of say 2 hours a day anytime between 8am and 8pm.

I was wondering if someone could throw name of an external plugin/add-on to Squid that would provide such functionality ... ?

Kind regards,
T.
# 2  
Old 09-21-2011
You can't measure how long a chair is occupied from network connections. If you send one text message at 11:00, then send another at 11:15, does that mean you were sitting watching the phone for 15 minutes? Same problem. It gets even more difficult with how computers are so willing to access the internet of their own volition, for updates and the like. The computer could wake up at 2am and eat all his daily internet "time".

If you wish to measure occupancy of the chair, something local on the machine would work better.

This isn't the answer, but might be related. It forces Windows to logout when the screensaver goes on.

If a local solution won't do, then you'll need one of those obnoxious motel wireless systems that lock you out until you explicitly login, then kick you out again after a time limit.
# 3  
Old 09-22-2011
Quote:
If you send one text message at 11:00, then send another at 11:15, does that mean you were sitting watching the phone for 15 minutes?
This is true, I was thinking however of some sort of approximation, so that if Squid sees HTTP GET requests one after another within defined time window it sums up the time and calculates it as single uninterrupted session. When pause would exceed defined time window Squid would assume person had left the chair and would stop counting time.

Best regards,
# 4  
Old 09-22-2011
Quote:
Originally Posted by togr
This is true, I was thinking however of some sort of approximation, so that if Squid sees HTTP GET requests one after another within defined time window it sums up the time and calculates it as single uninterrupted session. When pause would exceed defined time window Squid would assume person had left the chair and would stop counting time.
I don't think this will work for other reasons I mentioned. Any kind of automatic update, which modern computers haul with them in droves, will mess this detection up.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Squid proxy shell script

i need squid proxy log file daily auto generate by shell script (1 Reply)
Discussion started by: sanjeetkumar086
1 Replies

2. Linux

Squid using 2 Ethernet in Proxy System

Hi All Im using squid Proxy in centos Squid version = squid.x86_64 7:3.1.10-20.el6_5 CentOS release 6.5 (Final) Router IP = 192.168.1.1 My proxy System have 2 Ethernet port eth0 eth1 Using IP address for eth0 = 192.168.1.15/24 using IP address for eth1 = 192.168.1.16/24 Default... (1 Reply)
Discussion started by: babinlonston
1 Replies

3. IP Networking

SQUID Proxy server configuration

Can any one direct me to the resources where I can find in-depth instructions on Squid Proxy server and its configuration? Thanks in advance.:) (1 Reply)
Discussion started by: admin_xor
1 Replies

4. UNIX for Advanced & Expert Users

Setup a Reverse Proxy on Squid

Hi all, The scenario is: http://img834.imageshack.us/img834/7990/1234z.jpg - With: + 192.168.100.0/24 : internet link (simulation) + Multiple Websites are hosting in local. + Complete DNS configuration. + OS: CentOS 5 - Requirements: Configure Squid Proxy as... (0 Replies)
Discussion started by: kidzer0
0 Replies

5. Linux

SFTP an internet address from a system behind an internet proxy

I was wondering if it is possible to setup SFTP to go through the internet proxy while connecting to an internet location. Problem: Client system is behind internet proxy. SFTP to any internet location fails as there is no documented way to configure SFTP to connect to internet locations through... (4 Replies)
Discussion started by: toobrown1
4 Replies

6. IP Networking

How to set up Squid Proxy as a web page

I have Squid set up, but when my friend wants to use it, he has to enter my IP and port in his browser settings every time. How can I make it so that he only has to go a webpage I create, and use the proxy from there instead of having to change his browser Network settings every single time? I also... (1 Reply)
Discussion started by: guitarscn
1 Replies

7. IP Networking

Blocking HTTP tunnel in squid proxy 2.5

Does any one know how to block HTTP Tunnel in squid proxy server. Pls reply (1 Reply)
Discussion started by: vishwanathhcl
1 Replies

8. IP Networking

SQUID Transparent Proxy Server

hi guys! We are setting up Squid Server. we want the server to be transparent. But I don't know how will i be able to set the network up. is it possible to set the squid server in the same LAN with the Squid Client and still functions as a transparent server? if so, can anybody help me do it? ... (1 Reply)
Discussion started by: init6_
1 Replies

9. IP Networking

Squid Proxy URL rewriting

I have an architecture as below <> <> There is a program in the AIX server which sends SMS to the internet, by sending HTTP request to the SMS processing server. Like, http://smsserver/mysms=test However the application does not have an option to specify where the Proxy server... (1 Reply)
Discussion started by: firdousamir
1 Replies

10. UNIX for Advanced & Expert Users

squid proxy and apache servers

hi. pardon my noob question id just like to have a quick answer. i am planning to install a jabber webclient and a jabber server in our apache server. my boss said this wouldnt work because squid filters port 5222 connections (jabber). i told him we can simply 'unfilter' the port then but he said... (0 Replies)
Discussion started by: marcpascual
0 Replies
Login or Register to Ask a Question