LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 06-08-2009, 02:31 AM   #1
hepfpklk
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Rep: Reputation: 0
Squid Configuration for a Server which is also under Proxy


hello,
Can anyone give me the step by step SQUID configuration of a server which is also under a proxy:

i have
eth0 = connected to DHCP server for availing internet connectivity thru a proxy=http://userasswd@IPADDRESSort

eth1 = connected to a Lab Switch for sharing internet through pvt addie 192.168.XXX.XXX:3128....etc.

i am using RHEL 5.

thnx

Last edited by hepfpklk; 06-08-2009 at 02:33 AM.
 
Old 06-08-2009, 03:35 AM   #2
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
http://www.visolve.com/squid/Squid_tutorial.php
 
Old 06-09-2009, 03:54 PM   #3
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Rep: Reputation: 17
What you need is to check is the cache_peer option, right now i'm running a squid that need to connect to another proxy

For example

Code:
	                                        proxy  icp
	          hostname             type     port   port  options
	          -------------------- -------- ----- -----  -----------
	cache_peer parent.foo.net       parent    3128  3130  proxy-only default
mine looks like

Code:
intranet:~#cat /etc/squid3/squid.conf |grep cache_peer
cache_peer xxx.xxx.xxx.xxx parent 80 3130 no-query login=USER:PASSWORD name=isa
Check this page for more information on cache peer
 
Old 06-10-2009, 04:37 AM   #4
hepfpklk
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Original Poster
Rep: Reputation: 0
am very sorry... cant seem to work with that code too but still i do wanna ask if theres any extra configuration somewhere other than the squid.conf maybe in cachemgr.conf or any part in the squid.conf itself????
 
Old 06-10-2009, 04:38 AM   #5
hepfpklk
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Original Poster
Rep: Reputation: 0
ohhh let me first download the new version of squid... because now am using 2.6 perhaps 3 might work
 
Old 06-10-2009, 06:55 AM   #6
hepfpklk
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Original Poster
Rep: Reputation: 0
not working
 
Old 06-10-2009, 07:30 AM   #7
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Rep: Reputation: 17
do a

Code:
egrep -v '(^$|^#)' /etc/squid3/squid.conf
and then post the output to see your configuration
 
Old 06-11-2009, 02:27 AM   #8
hepfpklk
LQ Newbie
 
Registered: Jun 2009
Posts: 11

Original Poster
Rep: Reputation: 0
hey dude am using proxy without any authentication required.

[root@ccnehu ~]# egrep -v '(^$|^#)' /etc/squid/squid.conf
http_port 192.168.0.1:80
http_port 80
cache_peer 172.16.1.4 parent 3128 3130 proxy-only no-query
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
access_log /var/log/squid/access.log squid
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.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl LABTWO src 192.168.0.0/24 192.168.1.0/24
http_access allow LABTWO
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
coredump_dir /var/spool/squid
https_port 3128
[root@ccnehu ~]#
 
Old 06-11-2009, 11:49 AM   #9
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Rep: Reputation: 17
Post some part of the access.logs ( /var/log/squid/access.log) to see what happens when you try to connect. And you said you tried squid3, wich version is are you using now?
 
  


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
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 11:25 AM
Using ISA Server as Parent Proxy and want to setup Squid as dwonstream proxy tauseef1 Red Hat 1 04-09-2008 01:03 AM
Squid proxy configuration mukeshrathod15 Linux - Networking 2 01-29-2007 11:33 PM
Squid Proxy configuration janniez LinuxQuestions.org Member Intro 3 12-21-2006 12:00 PM
ip addressess configuration in squid proxy server raju_dhakar2002 Linux - Networking 0 05-09-2005 12:52 AM


All times are GMT -5. The time now is 07:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration