Go Back   TechArena Community > Technology > Networking & Security
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Thread Tools Search this Thread
Old 01-02-2005
Join Date: Jan 2005
Posts: 32
idea Howto Configure SQUID Proxy Server / LINUX

I see many people find difficulty to configure SQUID proxy server for internet sharing in Linux. So i write rough steps. I write these steps on Fedora Core 3

Consider 2 Machines A and B connected by LAN card

Machine A : Redhat linux | Fedora
Machine B: linux or Windows

Machine A Two Network cards. Plugin the CAT 5/6 cable of your broadband ISP in one LAN card and the other card connect your Machine B network card by another cable

Boot Machine A with redhat linux and login root

Type startx to boot to graphical mode

Press Ctrl T to open terminal

I assume you choose the SQUID Proxy server package when you install Redhat/Fedora.

To check if squid is installed
type command
rpm -qa squid
You should see something like depends on your version
Lets configure your network cards. Machine A has two NIC (Network Interface Card)
type command
This will open Netwok setup dialog. Check attached screenshot
My Realtek network card i.e eth1 is connected to my broadband ISP and the second card eth0 is connected to machine B's NIC i.e eth0.

To configure eth0 back in terminal type command :
ifconfig eth0 netmask
service network restart
or sometimes you will also have to type to activate
ifconfig eth0 up
similarly configure eth1 with IP settings provided by your ISP.

type > kwrite /etc/squid/squid.conf

Text editor opens the squid.conf file

Press Ctrl G and enter line no. 1674

Delete the comment sign " # " and Make entry like this:
acl unix.blachat src
Again Ctrl G and line 1837 and remove comment "#"
http_access allow unix.blackhat
Ctrl G and line 53 and only remove comment " # "

Ctrl G and line 2080 remove "#" and "none" and make entry
visible_hostname unix
Save the file and close.

In terminal type
squid -z
and see only this message if you followed my steps correctly:
Creating Swap Directories
Now type command
service squid start
To start this service everytime you boot machine A type command:
Scroll down till see:
[ ] Squid
Select and Check the above entry by hit spacebar and then quit.
Squid server now configures on Machine A

Boot your Machine B into either Linux or Windows.
Configure your single network card i.e etho
in terminal type
ifconfig eth0 netmask
service network restart
Open your browser Firefox and go to Proxy setings and see attached screenshot

Do same in Windows

If you use Windows on machine A then use this nice simple shareware:


Last edited by unix.blackhat : 01-02-2005 at 08:43 PM.
Reply With Quote
Old 04-02-2005
Join Date: Jul 2004
Location: Chennai
Posts: 57
Good work, very informative
Reply With Quote
Old 04-02-2005
Join Date: Sep 2004
Location: where you live
Posts: 9
good tut unix.
here is another resouce for learning squid http://squid-docs.sourceforge.net/la...tml/book1.html
After Death,
"I Wish to Get my Body Burnt with my Puter and Games, I will Play with Demons or Angels in Heaven or Hell"
- Double.Trouble
Reply With Quote
Old 04-02-2005
Join Date: Jan 2005
Posts: 32
ya double.trouble that is more helpful for setting folder/file permission against malicious users and other advance settings etc

my steps only to easy quick setup and test succesfully squid proxy
Reply With Quote
Old 12-05-2011
Posts: n/a
Good evening

The author really thinks so?
Reply With Quote
Old 05-10-2011
Join Date: Oct 2011
Posts: 1
Re: Howto Configure SQUID Proxy Server / LINUX

Sir thank you for explain the process......

i have one questions ....... i have 60 numbers of computer and every one using the internet, i want to disable some web page for particular users and want to maintain the record which user suffering whom web page. this is possible in squid proxy server.... and how many days suffering record is save in server computer....

Wait for your kind attention......

Jitender Rana
Reply With Quote
Old 06-10-2011
Join Date: Jun 2011
Posts: 451
Re: Howto Configure SQUID Proxy Server / LINUX

The history usually stays in the log files. If you do not want you can delete them out. But when the server is somehow restarted the settings are set to default wiping out the old settings. Below is an faq of squid logs that can guide you on how does the logs works and how to manage the history. Also there are some helpful commands that might be useful in future.

Squid Logs
Reply With Quote

  TechArena Community > Technology > Networking & Security
Tags: , , , ,

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads for: "Howto Configure SQUID Proxy Server / LINUX"
Thread Thread Starter Forum Replies Last Post
How to enable squid proxy support in Logitech VID application @nkit Trivedi Portable Devices 3 29-12-2011 08:52 PM
Squid Proxy Server issue emvy Technology & Internet 1 24-11-2011 12:33 AM
Block Google Talk with Squid proxy firewall LinuxeD Operating Systems 3 08-08-2009 01:56 PM
SQuid Proxy Server AND IpTables umer Networking & Security 2 23-05-2009 09:23 AM
install proxy server squid on ubuntu server (squid.conf) umer Operating Systems 5 24-04-2009 03:17 PM

All times are GMT +5.5. The time now is 10:11 AM.