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
You should see something like depends on your versionrpm -qa squid
Lets configure your network cards. Machine A has two NIC (Network Interface Card)squid-2.5.STABLE6-3
type command
This will open Netwok setup dialog. Check attached screenshotneat
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 192.168.0.1 netmask 255.255.255.0or sometimes you will also have to type to activateservice network restart
similarly configure eth1 with IP settings provided by your ISP.ifconfig eth0 up
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:
Again Ctrl G and line 1837 and remove comment "#"acl unix.blachat src 127.0.0.1 192.168.0.0/255.255.255.0
Ctrl G and line 53 and only remove comment " # "http_access allow unix.blackhat
Ctrl G and line 2080 remove "#" and "none" and make entry
Save the file and close.visible_hostname unix
In terminal type
and see only this message if you followed my steps correctly:squid -z
Now type commandCreating Swap Directories
To start this service everytime you boot machine A type command:service squid start
Scroll down till see:ntsysv
Select and Check the above entry by hit spacebar and then quit.[ ] Squid
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 192.168.0.2 netmask 255.255.255.0Open your browser Firefox and go to Proxy setings and see attached screenshotservice network restart
Do same in Windows
If you use Windows on machine A then use this nice simple shareware:
http://www.winproxy.net/
bye.
Bookmarks