LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Help with squid. (https://www.linuxquestions.org/questions/linux-networking-3/help-with-squid-233888/)

buckwheat12 09-22-2004 12:33 PM

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.

cadj 09-22-2004 10:24 PM

install an app called webmin, it has heaps of features to control samba, squid and heaps of others

m4dj4ck 09-23-2004 01:06 AM

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.

buckwheat12 09-23-2004 10:15 AM

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.

m4dj4ck 09-23-2004 10:41 AM

do u confirmed that u put in the correct port number? 3128.

buckwheat12 09-23-2004 11:45 AM

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.

buckwheat12 09-23-2004 01:18 PM

I finally got it working. I turned of iptables and now can access the internet. Thanks for the help.

win32sux 09-23-2004 01:36 PM

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...


sti2envy 09-23-2004 08:05 PM

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.



All times are GMT -5. The time now is 02:06 PM.