LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-03-2008, 04:49 PM   #1
venish
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Rep: Reputation: 0
Squid Problem


hello friends,

when i restart the squid that perfectly run.
But when i run the any site thatime generated error msg.
This two msg I find in log file of squid.

access===>
1207235839.042 155014 192.168.1.3 TCP_MISS/503 1510 GET http://www.google.com/ - DIRECT/www.google.com text/html

store.log====>
1207235839.042 RELEASE -1 FFFFFFFF AC24E91CF7FF8632007B1DB29D70C4C3 503 1207235839 0 1207235839 text/html 1159/1159 GET http://www.google.com/

Squid is runnig after few minutes this msg is fire in squid log file
cache.log====>
Configuring Parent proxy.myisp.com/3128/3130
2008/04/04 01:35:51| WARNING: DNS lookup for 'proxy.myisp.com' failed!


please give me your idea so I change me code and set the proxy in my System.

proxy file code====>


http_port 192.168.1.3:3128

icp_port 3130
htcp_port 4827
hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY

acl apache rep_header Server ^Apache
broken_vary_encoding allow apache

cache_mem 8 MB
cache_dir ufs /var/spool/squid 100 16 256
access_log /var/log/squid/access.log
cache_access_log /var/log/squid/acess.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
dns_nameservers 127.0.0.1
hosts_file /etc/hosts

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
#acl localhost src 127.0.0.1/255.0.0.0
#acl to_localhost dst 127.0.0.1/8
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl PURGE method PURGE
acl CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
no_cache deny QUERY

coredump_dir /var/spool/squid

# Rules Is allowed Here Only.

cache_peer proxy.myisp.com parent 3128 3130
# cache_peer proxy.myisp.com parent 3128 3130 no-query # for Telnet

# cache_peer proxy.metronet.co.uk sibling 3128 3130 default
# cache_peer proxy.metronet.co.uk parent 3128 3130 no-query prefer_direct off




#acl PrivateNet src 192.168.1.3
#acl AllowedSites dstdomain www.google.com
#acl WorkingHours time D 2:50-3:10
#http_access allow WorkingHours AllowedSites
#http_access deny all

#acl http_BlockPort port 80 443
#http_access allow http_BlockPort
#http_access allow all

#acl myip src 192.162.1.3
#http_access allow myip
acl blocksite url_regex -i "etc/squid/squidblocksite.acl"
http_access deny blocksite
http_access allow all


#Require Thing
http_reply_access allow all
icp_access deny all
htcp_access deny all
htcp_clr_access deny all
ident_lookup_access deny all
reply_header_max_size 20 KB allow !all
snmp_access deny all
reply_body_max_size 0 deny all


visible_hostname debian
 
Old 04-03-2008, 07:59 PM   #2
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 75
You really need to use a thread title that better describes your problem. It would also be most helpful to you that you post in a more appropriate forum. (in this case, either software or server.) Use the Report button at the bottom of the page to ask a mod to move this thread. Please do not simply repost elsewhere.

Cheers

Last edited by DragonSlayer48DX; 04-03-2008 at 08:03 PM.
 
Old 04-04-2008, 02:57 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Server and has been moved accordingly to help your thread/question get the exposure it deserves. I have also renamed the thread to "Squid Problem"
 
Old 04-04-2008, 04:59 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
DNS lookup for 'proxy.myisp.com' failed!

Is that a valid name? and does it really need to be in the squid.conf?

On I my box , I just have the port 3128 here...
http_port 192.168.1.3:3128
 
Old 04-04-2008, 12:45 PM   #5
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
Venish,
Upto My understanding,
Problem is not with Squid configuration.
Your Squid server is not able to resolve proxy.myisp.com's IP address.
Try to ping proxy.myisp.com, and check whether it resolves to IP address or not.
Just add an entry for proxy.myisp.com in /etc/hosts file to resolve the issue.
Please restart the squid server once before checking.

Please reply back if you still have problems.

homey,
venish used following line in Squid Configuration file.
cache_peer proxy.myisp.com parent 3128 3130
 
Old 04-05-2008, 06:22 AM   #6
venish
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thank for give me suggest

Quote:
Originally Posted by p_s_shah View Post
Venish,
Upto My understanding,
Problem is not with Squid configuration.
Your Squid server is not able to resolve proxy.myisp.com's IP address.
Try to ping proxy.myisp.com, and check whether it resolves to IP address or not.
Just add an entry for proxy.myisp.com in /etc/hosts file to resolve the issue.
Please restart the squid server once before checking.

Please reply back if you still have problems.

homey,
venish used following line in Squid Configuration file.
cache_peer proxy.myisp.com parent 3128 3130
Thank you for give me your idea now that is perfectly work
Thank you again.
 
Old 04-05-2008, 06:23 AM   #7
venish
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thank for give me suggest

Thanks to all for give me suggest
 
  


Reply



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 problem... Hacker Linux - Software 4 12-23-2006 11:00 PM
Squid problem hinetvenkat Linux - Networking 3 06-01-2006 03:49 AM
squid problem linetnew Linux - Networking 1 10-18-2005 05:28 AM
squid problem sanjibgupta Linux - General 5 09-29-2005 12:08 AM
Problem with Squid grimlock Linux - Networking 1 04-07-2003 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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