LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-22-2004, 12:33 PM   #1
buckwheat12
Member
 
Registered: Jan 2004
Distribution: PCLOS 2007
Posts: 91

Rep: Reputation: 15
Help with squid.


I have squid installed and running on my RedHat 9 machine. I wanted to use it as a proxy server, where I would setup my brower (Firefox) on my XP machine to run through the proxy in order to access the internet. I'm not worried about caching or anything like that, I just want to get to access to the internet through the proxy and thats it. I'm not worried about denying access to any particular user either since I'm the only user that will be attemping access to the proxy server. Can someone give me an example of a simple squid.conf file that will accomplish what I want? I'm a little fuzzy on what exactly I need to do in order to allow my XP machine to access the proxy and connect the the internet. Right now, I can ping the proxy but when I put in the ip address and port in Firefox I'm getting an access denied message when attempting to access a website.
 
Old 09-22-2004, 10:24 PM   #2
cadj
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
Posts: 374

Rep: Reputation: 32
install an app called webmin, it has heaps of features to control samba, squid and heaps of others
 
Old 09-23-2004, 01:06 AM   #3
m4dj4ck
Member
 
Registered: Aug 2004
Location: the coven
Distribution: slackies
Posts: 55

Rep: Reputation: 15
you need to change something minor inside squid.conf configuration file. Since the config file is quite long, i recommend using Find function in ur text editor. e.g. gedit. and find this --> http_access.

make sure that :-

http_access allow all

is ABOVE any other http_access list.

cheers.
 
Old 09-23-2004, 10:15 AM   #4
buckwheat12
Member
 
Registered: Jan 2004
Distribution: PCLOS 2007
Posts: 91

Original Poster
Rep: Reputation: 15
Ok, I added set http_access allow all to my squid.conf file. I'm still not able to gain access to from my XP client.
 
Old 09-23-2004, 10:41 AM   #5
m4dj4ck
Member
 
Registered: Aug 2004
Location: the coven
Distribution: slackies
Posts: 55

Rep: Reputation: 15
do u confirmed that u put in the correct port number? 3128.
 
Old 09-23-2004, 11:45 AM   #6
buckwheat12
Member
 
Registered: Jan 2004
Distribution: PCLOS 2007
Posts: 91

Original Poster
Rep: Reputation: 15
Yep, confirmed that the port is 3128. I've double check both the browser settings and squid.conf.

When I try to connect to a site on the internet from the client PC I get a page that comes up showing the proxy's host name saying that access is denied. So I believe I am at least hitting the server initially.
 
Old 09-23-2004, 01:18 PM   #7
buckwheat12
Member
 
Registered: Jan 2004
Distribution: PCLOS 2007
Posts: 91

Original Poster
Rep: Reputation: 15
I finally got it working. I turned of iptables and now can access the internet. Thanks for the help.
 
Old 09-23-2004, 01:36 PM   #8
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
make sure that you got squid listening only on the internal network and not on the internet interface, or the spammers will have a feast with your bandwidth... if the address of your internal network interface is (for example) 192.168.0.1, then you should have a line like this in your squid.conf:

Code:
http_port 192.168.0.1:3128

you can also use that line to make squid listen on another port if you want...


Last edited by win32sux; 09-23-2004 at 01:38 PM.
 
Old 09-23-2004, 08:05 PM   #9
sti2envy
Member
 
Registered: Sep 2004
Posts: 43

Rep: Reputation: 15
in your squid.conf file...
did u add ur network into a acl and http_access to allow your network to squid?
sometihng like:

acl mynetwork 192.168.1.0/24
http_access allow mynetwork

does browsing with proxy works on localhost pc- the one with squid server on it?


Quote:
Originally posted by buckwheat12
Yep, confirmed that the port is 3128. I've double check both the browser settings and squid.conf.

When I try to connect to a site on the internet from the client PC I get a page that comes up showing the proxy's host name saying that access is denied. So I believe I am at least hitting the server initially.
 
  


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
SQUID for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 08:33 AM
squid message customization, hiding squid versioin rajnishmishra Linux - Networking 0 11-27-2004 03:55 AM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 02:29 PM
I can't "service squid start" , and chkconfig squid on not working Niceman2005 Linux - Software 0 11-10-2004 08:18 PM
Squid load testing software / Squid optimisation? gundelgauk Linux - Networking 2 08-31-2004 07:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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