LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-16-2008, 11:02 PM   #1
hocheetiong
Member
 
Registered: Jul 2007
Location: Penang , Malaysia.
Distribution: red hat linux
Posts: 133

Rep: Reputation: 15
Smile How to configure squid proxy server with basic user security.


Hi, i have configure a squid proxy server for simple use below is what i have change on /etc/squid/squid.conf

I just configure 3 lines in /etc/squid/squid.conf

1. Visible_hostname

2. acl our_networks src 192.168.1.0/24
http_access allow our_networks

3. #http_access deny all

than run command # squid -z to create a swap file.

i try on client side is ok. But i need a basic security, like when client want to use it than need to keyin username and password, how to configure in squid?

Thank.
 
Old 03-16-2008, 11:32 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
There's some useful info on this at the Squid FAQ. If you search that page for basic, you should find what you need.
 
Old 03-16-2008, 11:35 PM   #3
markdueck
LQ Newbie
 
Registered: Oct 2006
Location: Belize, Central America
Distribution: CentOS
Posts: 4

Rep: Reputation: 0
Why not use a routing distro that has this built in into the web gui.

Try PFSense
 
Old 03-17-2008, 11:54 AM   #4
saravanannarayanan
LQ Newbie
 
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
Hi,

I like to share with u the squid conf file that we used to administer a academic environment with different ip range on different lab. Actually, I had edited some lines for easy understanding. If u want to ban some sites u can add an entry on /etc/banlist file and then
reload the squid.

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT

acl mil src 192.168.2.0/255.255.255.0
#acl barch src 192.168.5.0/255.255.255.0
acl mca src 192.168.3.0/255.255.255.0
#acl cadcam src 192.168.9.0/255.255.255.0
acl dsplab src 192.160.70.0/255.255.255.0
#acl melab src 192.168.6.0/255.255.255.0
acl eeelab src 192.168.12.0/255.255.255.0
acl itlab src 192.168.7.0/255.255.255.0
acl aero src 192.168.59.0/255.255.255.0
acl civil src 192.168.15.0/255.255.255.0




acl cadcam src 192.168.9.251 192.168.9.252 192.168.9.253
acl melab src 192.168.6.5 192.168.6.6 192.168.6.10 192.168.6.11
acl barch src 192.168.5.10 192.168.5.11 192.168.5.12 192.168.5.13
192.168.5.14

acl banned url_regex -i "/etc/banlist"
acl banned url_regex "/etc/banlist"

http_access allow manager localhost
http_access deny manager


http_access allow melab
http_access allow barch
http_access allow dsplab
http_access allow cadcam
http_access allow mil
http_access allow eeelab
http_access allow itlab
http_access allow aero
http_access allow civil
http_access allow mca


http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

http_access allow localhost
http_access deny all
 
Old 03-17-2008, 02:09 PM   #5
TheDirtyScreech
Member
 
Registered: Jul 2007
Distribution: Gentoo, LFS
Posts: 42

Rep: Reputation: 15
Quote:
Originally Posted by markdueck View Post
Why not use a routing distro that has this built in into the web gui.

Try PFSense
Usually switching distros isn't an option in a production environment.

Hocheetiong, if you follow the link gilead posted, you should find what you need.

-TDS-
 
Old 03-17-2008, 08:59 PM   #6
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
http://www.opensourcehowto.org/how-t...ntication.html
 
  


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
configure squid proxy with cc proxy as a parent proxy faisi Linux - Networking 1 08-10-2010 01:16 PM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
security problem for squid proxy owk688 Linux - Security 1 12-19-2005 03:48 PM
How to configure Squid to communicate with another proxy server? davidas Linux - Networking 1 05-19-2004 04:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:24 AM.

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