November 25, 2024, 09:50:44 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: squid proxy server not function  (Read 15575 times)

Offline mdhanapiah

  • Linux Noob !
  • *
  • Posts: 7
squid proxy server not function
« 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

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
squid proxy server not function
« Reply #1 on: February 27, 2007, 12:29:18 PM »
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

Offline mdhanapiah

  • Linux Noob !
  • *
  • Posts: 7
squid proxy server not function
« Reply #2 on: February 27, 2007, 03:54:51 PM »
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]

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
squid proxy server not function
« Reply #3 on: February 27, 2007, 05:11:44 PM »
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

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
squid proxy server not function
« Reply #4 on: February 27, 2007, 05:27:23 PM »
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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
squid proxy server not function
« Reply #5 on: February 27, 2007, 08:30:53 PM »
Quote
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 )

Offline mdhanapiah

  • Linux Noob !
  • *
  • Posts: 7
squid proxy server not function
« Reply #6 on: February 28, 2007, 01:48:40 AM »
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.

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
squid proxy server not function
« Reply #7 on: February 28, 2007, 12:00:04 PM »
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

Offline mdhanapiah

  • Linux Noob !
  • *
  • Posts: 7
squid proxy server not function
« Reply #8 on: February 28, 2007, 11:36:30 PM »
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.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
squid proxy server not function
« Reply #9 on: March 01, 2007, 09:17:32 PM »
show us complete squid configuration file.. btw.. mostly squid's port is 3128 if you have not changed it.

Offline mdhanapiah

  • Linux Noob !
  • *
  • Posts: 7
squid proxy server not function
« Reply #10 on: March 02, 2007, 10:29:35 AM »
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"...

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
squid proxy server not function
« Reply #11 on: March 02, 2007, 12:08:23 PM »
Sounds good :D