Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-11-2006, 06:57 PM   #1
LQ Newbie
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
Squid with port manager

Can we use the squid for authorizing the ports based on user authentication.

By default squid only authorize http/ftp/https ports depending upon user login/passwd. Can you manange different ports based on user login authentication.

Nadeem, San Jose
Old 09-12-2006, 06:58 AM   #2
Registered: Jul 2006
Location: Suburbs of Lisbon, Portugal
Distribution: Slackware, FreeBSD
Posts: 75

Rep: Reputation: 16
Hi there...

The answer is yes, you can... You'll have to define acl's for both the ports you want to authorize and users who will be allowed such ports and then combine them both on one 'http_access' line.

Old 09-13-2006, 05:47 PM   #3
Registered: Jul 2006
Location: Suburbs of Lisbon, Portugal
Distribution: Slackware, FreeBSD
Posts: 75

Rep: Reputation: 16

What you want would require, at least, the creation of 3 ACL's. One would make it mandatory for a user to authenticate:

"acl password proxy_auth REQUIRED"

The other would define a group or class of users which will be allowed to access to some specific ports:

"acl good_guys proxy_auth username1 username2 etc"

The third will the set of ports you want to give access to:

"acl nice_port port 6666 7777 8888"

After that, you define an http_access line that will combine those 3 ACL's:

"http_access allow password good_guys nice_port"

This line means: "Allow access throught this proxy, to the ports specified in the nice_port ACL, to all the authenticated users who are part of the good_guys ACL".
Any other users, although authenticated, would not be allowed to connect to those example ports...

Hope that helps...




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
can not connect to squid cache manager via webmin anymore lovswr Linux - Software 3 04-24-2012 01:44 AM
Squid - Cache Manager ScooterB Linux - Networking 23 06-03-2008 09:15 AM
debian iptables squid - redirect port 80 to port 8080 on another machine nickleus Linux - Networking 1 08-17-2006 12:59 AM
Squid Cache Manager Replacement Suggestions... kemplej Linux - Software 0 03-15-2004 11:30 AM
Can someone pls take a look at my Squid Cache Manager info and tell me whats wrong!!! debloxie Linux - Networking 1 02-05-2004 03:32 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:04 AM.

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