Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-28-2008, 12:09 PM   #1
LQ Newbie
Registered: May 2008
Posts: 1

Rep: Reputation: 0
share internet connection - configure squid

I have an internet connection. It works fine on linux. I need to share the nternet connection to two other pcs ( Win XP ) which are connected to my pc. Can you please tell me all the steps to configure squid?

My IP:
Other Pcs:,

I tried the following, it did not work:

I made few chages to /etc/squid.conf file:

http_port = 808

acl one
acl two

http_access allow one
http_access allow two

And I restarted the squid service:
service squid restart

But I checked on the other pcs, it did not work.

What are the steps I need to do?
Old 05-28-2008, 02:19 PM   #2
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
You do not need squid to do this. I assume your Linux box is the one that is connected both to the Internet and to your local net (the 192.168.0.x net). You can use a facility called iptables to do this, and at the same time, you can set up firewall rules to protect the whole net (somewhat) from intrusions. I have written one of a large number of tutorials on this topic, available here

Once you get that firewall set up to filter and to do Network Address Translation, then all you need to do to your XP machines is to make sure that they are configured so that the Default Gateway address is your Linux box 192.168.0.x address.

Old 05-28-2008, 04:01 PM   #3
Senior Member
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,064

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
http_port = 808
This is unconventional (unless a typo): maybe you mean 80? Or 8080?

However that shouldn't stop it working, provided everybody agrees about the port that will be used. Otherwise, it will fail.


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
share internet connection sujitkale Linux - Newbie 5 09-23-2007 10:50 PM
Share Internet Connection sam_casperson Linux - Networking 3 02-03-2005 07:07 PM
How do I share my Internet Connection? sagi7ario Linux - Networking 3 03-16-2004 06:17 PM
Help! Cannot share my Internet connection... Domiriel Linux - Networking 2 11-25-2003 02:27 PM
how to share internet connection digihall7 Linux - Networking 5 10-23-2003 12:53 AM > Forums > Linux Forums > Linux - Newbie

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