[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Network Troublshooting  |  Linux Proxy Server Support  |  Topic: squid proxy server not function
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: squid proxy server not function  (Read 1835 times)
0 Members and 1 Guest are viewing this topic.
mdhanapiah
Linux Noob !
*
Offline Offline

Posts: 7


View Profile
« on: February 26, 2007, 06: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
Logged
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 597


View Profile
« Reply #1 on: February 27, 2007, 07:29:18 AM »

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
Logged
mdhanapiah
Linux Noob !
*
Offline Offline

Posts: 7


View Profile
« Reply #2 on: February 27, 2007, 10:54:51 AM »

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]
Logged
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 597


View Profile
« Reply #3 on: February 27, 2007, 12: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
Logged
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 597


View Profile
« Reply #4 on: February 27, 2007, 12: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
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #5 on: February 27, 2007, 03: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 )
Logged
mdhanapiah
Linux Noob !
*
Offline Offline

Posts: 7


View Profile
« Reply #6 on: February 27, 2007, 08:48:40 PM »

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.
Logged
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 597


View Profile
« Reply #7 on: February 28, 2007, 07:00:04 AM »

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
Logged
mdhanapiah
Linux Noob !
*
Offline Offline

Posts: 7


View Profile
« Reply #8 on: February 28, 2007, 06: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.
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #9 on: March 01, 2007, 04:17:32 PM »

show us complete squid configuration file.. btw.. mostly squid's port is 3128 if you have not changed it.
Logged
mdhanapiah
Linux Noob !
*
Offline Offline

Posts: 7


View Profile
« Reply #10 on: March 02, 2007, 05: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"...
Logged
gauravbajaj
LST CareTaker
Experienced
*****
Offline Offline

Posts: 597


View Profile
« Reply #11 on: March 02, 2007, 07:08:23 AM »

Sounds good Cheesy
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Configuring Squid Proxy server & Transparent Proxy Linux Tutorials & How To's « 1 2 ... 10 11 » Ricky 163 91390 Last post September 11, 2006, 03:09:34 PM
by Ricky
HOW TO COFIGURE SQUID AS A PROXY SERVER Linux Servers Support ozioma 7 1505 Last post July 29, 2004, 06:01:20 AM
by hp
squid proxy server problem Linux Servers Support butchy 1 843 Last post September 05, 2004, 12:40:45 AM
by Ricky
how do i forward http requests in a squid proxy server Linux Proxy Server Support roxyboby 4 1150 Last post January 03, 2005, 03:34:38 AM
by Ricky
Squid Proxy and Ftp server Linux Proxy Server Support rana28 8 1593 Last post June 16, 2005, 01:49:27 AM
by ilias
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 05:37:06 PM

Login with username, password and session length
Navigation
Recent Discussions
[Today at 02:29:08 PM]

[November 20, 2008, 11:30:52 PM]

[November 19, 2008, 07:52:41 PM]

[November 19, 2008, 07:52:36 PM]

[November 17, 2008, 10:42:59 AM]

[November 16, 2008, 12:49:47 AM]

[November 16, 2008, 12:48:58 AM]

[November 15, 2008, 08:29:02 AM]

[November 15, 2008, 08:24:41 AM]

[November 14, 2008, 05:11:50 AM]
Members
Total Members: 6229
Latest: razon_nnn
Stats
Total Posts: 8270
Total Topics: 2254
Online Today: 14
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 12
Total: 12
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc