LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-30-2002, 02:20 AM   #1
80s
Member
 
Registered: Dec 2002
Location: Pretoria South Africa
Distribution: Mandrake 8.1 & 9 Debian Woody
Posts: 41

Rep: Reputation: 15
Squid cascaded from wingate on port 8080


Please help.

How do i configure squid to pass requests to wingate on port 8080.


Many Thanks
 
Old 12-30-2002, 04:22 AM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
I presume wingate port 8080 is setup as a http cache?

change the lines in the squid.conf file to the below (the acl all.... line may already be there)
this is from the squid faq from (www.squid-cache.org)

cache_peer parentcache.foo.com parent 8080 0 no-query default
acl all src 0.0.0.0/0.0.0.0
never_direct allow all


just change parentcache.foo.com to where ever your wingate is.
 
Old 12-30-2002, 06:15 AM   #3
80s
Member
 
Registered: Dec 2002
Location: Pretoria South Africa
Distribution: Mandrake 8.1 & 9 Debian Woody
Posts: 41

Original Poster
Rep: Reputation: 15
still not talking to wingate.

## i have tried what u suggested bet i
## get the following error returned by squid..

The requested URL could not be retrieved


While trying to retrieve the URL: http://www.google.com/


The following error was encountered:

Unable to forward this request at this time.

This request could not be forwarded to the origin server or to any parent caches. The most likely cause for this error is that:

The cache administrator does not allow this cache to make direct connections to origin servers, and
All configured parent caches are currently unreachable.

Your cache administrator is root.

Generated Mon, 30 Dec 2002 11:07:57 GMT by kerrin1.pinetek.co.za (Squid/2.4.STABLE7)

could this have anything to do with DNS settings ??

many thanks
 
Old 12-30-2002, 07:00 AM   #4
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
from the linux machine try...
telnet parentcache.foo.com 8080

where parentcache.foo.com is whatever you've put into squid as the wingate server.
it should connect but not show anything.

if it says host not found then it's a dns problem, then you need to put the ip address of the wingate server instead.
 
Old 12-30-2002, 07:25 AM   #5
80s
Member
 
Registered: Dec 2002
Location: Pretoria South Africa
Distribution: Mandrake 8.1 & 9 Debian Woody
Posts: 41

Original Poster
Rep: Reputation: 15
tried telnet - worked ..

# when i telnet in i get a connect strate away.
# i have been using the ip addess all along.....

# here in my config file hope this might give some clues.

# The wingate proxy is the link to the "world".
# are on a branch of the WAN with our own WAN thus we need # to do our own proxing to reduce load on the main proxy.


shutdown_lifetime 5 seconds


http_port 192.168.200.245:3128 192.168.200.247:3128

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

cache_effective_user squid
cache_effective_group squid

pid_filename /var/run/squid.pid

cache_access_log /home/squid/logs/access.log
cache_log /home/squid/logs/cache.log
cache_store_log none
useragent_log /home/squid/logs/useragent.log

emulate_httpd_log on
log_mime_hdrs off
cache_peer parentcache 192.168.0.196 8080 0 no-query default
acl all src 0.0.0.0/0.0.0.0
never_direct allow all
acl localhost src 127.0.0.1/255.255.255.255
acl localnet src 192.168.0.0/16
acl SSL_ports port 443 563
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 CONNECT method CONNECT

# banned sights
acl porn1 url_regex sex
acl porn2 url_regex xxx
acl porn3 url_regex porn
acl porn4 url_regex fuck
acl porn5 url_regex spank
acl porn6 url_regex sluts

# Limmit concurrent connection
acl 4CONN maxconn 3


deny_info ERR_PORN porn1
deny_info ERR_PORN porn2
deny_info ERR_PORN porn4
deny_info ERR_PORN porn5
deny_info ERR_PORN porn6

deny_info ERR_3CONNECTIONS 4CONN

http_access deny porn1
http_access deny porn2
http_access deny porn3
http_access deny porn4
http_access deny porn5
http_access deny porn6

http_access deny 4CONN localnet

http_access allow localhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny all

icp_access deny all


cache_dir ufs /home/squid/cache 4000 16 256
cache_dir ufs /home/squid/cache2 4000 16 256


httpd_accel_host virtual
httpd_accel_port 8080
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
 
Old 12-30-2002, 07:45 AM   #6
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
try changing the cache_peer line to...

cache_peer 192.168.0.196 parent 8080 0 no-query default
 
Old 12-30-2002, 07:57 AM   #7
80s
Member
 
Registered: Dec 2002
Location: Pretoria South Africa
Distribution: Mandrake 8.1 & 9 Debian Woody
Posts: 41

Original Poster
Rep: Reputation: 15
Working :)

Yes
Yes
Yes

Thanks a stack
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Port 80-->8080?? flamesrock Linux - Software 4 08-01-2004 02:40 AM
how to configured squid to deny LAN client using wingate glenne Linux - Networking 2 06-29-2004 03:35 PM
wingate vs squid aigartua Linux - Software 0 02-13-2003 07:09 PM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 01:16 PM
AOL instant messenger via cascaded Squid problemchild Linux - Networking 0 11-09-2001 05:45 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration