LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 05-28-2008, 11:09 AM   #1
abailore
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: 192.168.0.204
Other Pcs: 192.168.0.215, 192.168.0.206

I tried the following, it did not work:

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

http_port = 808

acl one 192.168.0.215
acl two 192.168.0.205

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, 01:19 PM   #2
dkm999
Member
 
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.

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

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
Quote:
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.
 
  


Reply


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


All times are GMT -5. The time now is 08:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration