LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-24-2006, 03:16 PM   #1
DvG
LQ Newbie
 
Registered: Feb 2006
Location: NL
Distribution: Suse 8.2
Posts: 4

Rep: Reputation: 0
Cool HTTP access control for kids?


Hi there,

I'm running a Suse 8.2 server with a couple of MS XP workstations. I'd like to control the outward (and inbound) HTTP traffic of the users by limiting the daily access time per user-id. Is there any software package for Linux available with such a feature?

Dirk
 
Old 02-24-2006, 03:22 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Are you using the server as a gateway/router or just as a web proxy?

Not sure about by username, but for sure by IP address. You can use any firewall to do that.

By username, you might actually have to create an LDAP server or something like that for the win boxes so that they have to log onto the network and then your machine would validate the services they were allowed.

Also, you can set up a web proxy and use Dan's Guardian to filter out bad content (or any content for that matter).
 
Old 02-24-2006, 03:25 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Squid can do that - but it can be a fiddly thing to configure. You'd create an access control entry like (you'd need other entries for users, IP addresses, etc.):
Code:
acl kidstime time  F  09:00-12:00
This would allow access on a Friday from 9am to 12 noon. Then you enable the acl:
Code:
http_access allow kidstime
The thing is, the entries have to be in the right place in relation to the other acl entries. Fortunately you can turn up the debug level and get back plenty of info from the logs, but it's not something you do in 5 minutes unless you're familiar with this sort of thing.
 
Old 02-24-2006, 03:27 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Just because I'm curious, how would the squid server know who was on the windows boxes?
 
Old 02-24-2006, 03:36 PM   #5
DvG
LQ Newbie
 
Registered: Feb 2006
Location: NL
Distribution: Suse 8.2
Posts: 4

Original Poster
Rep: Reputation: 0
If there is a way to let Squid know what the user is, then it's the solution. I'm using a DHCP server and no static IP addresses (kids are demanding these day's).
Any suggestions?
(by the way the server is used as gateway and file server. It also hosts a MTA. offcourse it's all firewalled.)
 
Old 02-24-2006, 03:41 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
The users would have to sign in to the proxy server - Squid can use authentication. There needs to be a passwd file (it can be created with the htpasswd app that comes with Apache) and the squid.conf file needs to contain something like the following in the acl lists:
Code:
acl internet proxy_auth REQUIRED
and the following in the access section:
Code:
http_access allow internet
Squid supports other forms of authentication as well but that's the only one I've set up. My users have Firefox as their browser and just save the proxy username/password. Since they also have to sign in to their PC, it's only a small risk saving the proxy details.

Last edited by gilead; 02-24-2006 at 03:43 PM.
 
Old 02-24-2006, 03:44 PM   #7
DvG
LQ Newbie
 
Registered: Feb 2006
Location: NL
Distribution: Suse 8.2
Posts: 4

Original Poster
Rep: Reputation: 0
Smile

Sounds good. I give it a try. Thanks!
 
Old 02-24-2006, 03:51 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I used the info at http://www.squid-cache.org/Doc/FAQ/FAQ-19.html#ss19.6 and it worked for me after a couple of attempts (I didn't read it the way they wrote it). Let me know if you have any problems
 
Old 02-24-2006, 03:57 PM   #9
DvG
LQ Newbie
 
Registered: Feb 2006
Location: NL
Distribution: Suse 8.2
Posts: 4

Original Poster
Rep: Reputation: 0
Do I need to upgrade to a more actual verion of Suse?
 
Old 02-24-2006, 04:15 PM   #10
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I don't think so - squid-2.5.STABLE9-4.1.i586.rpm is on disk 4 of my copy of SUSE 9.3

Dang - I could have sworn I read SUSE 10 in your first post. Sorry, my mistake. Possibly you can download a squid package from http://download.novell.com/index.jsp...t=hdr_download

Last edited by gilead; 02-24-2006 at 04:18 PM.
 
  


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
iptables, no access through http Israfel2000 Linux - Security 5 10-14-2005 06:01 PM
http access denied em22604 Linux - Enterprise 3 05-29-2005 04:54 PM
Only allow HTTP access through proxy? gjhicks Linux - Security 7 05-12-2005 04:52 AM
Not able to access http service curious_srk Linux - Software 5 11-30-2004 10:10 AM
access http when itz blocked zero_kewl Linux - General 5 08-22-2003 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:32 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