Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Network Troublshooting => Linux Proxy Server Support => Topic started by: mdhanapiah on February 26, 2007, 11:36:08 PM
-
Hi,
I'm trying to configure squid proxy using SuSE 10.2 and follow step-by-step tutorial in this forum with a small cahnges in squid.conf as below:
http_port 8080
#Default:
# cache_mem 8 MB
#Default:
# cache_dir ufs /var/cache/squid 100 16 256
acl S4 src 192.168.3.4/32
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
http_access allow S4
Everything look ok when run from terminal program....
SUSESRV:~ # rcsquid restart
Shutting down WWW-proxy squid - Warning: squid not running ! done
Starting WWW-proxy squid done
SUSESRV:~ # rcsquid status
Checking for WWW-proxy squid running
SUSESRV:~ # rcsquid restart
Shutting down WWW-proxy squid - wait a minute or two... ...................
......................................... done
Starting WWW-proxy squid - Warning: /var/run/squid.pid exists ! done
SUSESRV:~ #
The problem is, when I try to connect from client PC through this server, the squid proxy does not function properly. What I means is, client cannot go through the internet with the error "Cannot display the webpage"
Pls anyone to help me. Thanks
-
ok .............according to me, u haven't specified dns entry in squid
there is a entry in squid.conf i.e DNS_NAMESERVERS .just search that and give entry of ur DNS servers there
Gaurav
-
I have add DNS_NAMESERVERS 202.188.0.133 202.188.1.5 as provided by my ISP provider but Clients PC still unable go through the Internet.
Pls advise.[/b]
-
Please try to ping the DNS NAMESERVERS ...................................
If it wil give response
Please add the nameservers as:
dns_nameservers x.x.x.x y.y.y.y
Gauav
-
Have u given the proxy server ip and port to clients Internet Browser?
Try it without using squid i.e give the entries of DNS servers in Windows and try to browse that without squid.
Let me know if it works
-
acl S4 src 192.168.3.4/32
This is only allowing client with IP 192.168.3.4 to access the net through squid.
BTW, if you are getting page cannot be displayed then it means it is not going through squid as squid shows its own error page.
I think you hv not configured your browswer to use squid properly.
And thnx Gaurav for your help .. (as you do always)
(We really need something to do about Linuxsolved.com so that it can move with rest of the world though I have forwarded this to Admin )
-
Thank you to both of you...
For your information, it response when I ping to both DNS IP server and already given the proxy server ip and port to clients Internet Browser.
Also, it work when I give the entries of DNS servers in Windows and browse without squid.
By the way, how to configured our browser to use squid properly other than to add proxy server ip and port to clients Internet Browser?
Thank you.
-
Can u please tell whats the port u are using in squid.....or whats the port u have given in Client IP browser.......
Check wheather squid is runnig .using
#rcsquid status
Thanks
Gaurav
-
Squid is running :
SUSESRV:~ # rcsquid status
Checking for WWW-proxy squid running
Also, I'm using port 8080 for both Squid and client browser.
OR....
Is that the problem because of this WARNING message ?
"Warning: /var/run/squid.pid exists !"
SUSESRV:~ # rcsquid restart
Shutting down WWW-proxy squid - wait a minute or two... ...................
......................................... done
Starting WWW-proxy squid - Warning: /var/run/squid.pid exists ! done
SUSESRV:~ #
Thanks.
-
show us complete squid configuration file.. btw.. mostly squid's port is 3128 if you have not changed it.
-
The Squid server is OK now and clients PC can go to Internet through this Gateway...
I just want to share with you all, squid will fail to start if we don't give our server a hostname. We can set this with the visible_hostname parameter.
# I just add in the /etc/squid/squid.conf File with this line:
visible_hostname xyz
and it solved my problem.
However, thank you for both of you and "Linux Home Networking"...
-
Sounds good :D