[squid-users] squid behind another squid with sslbump

From: marwan <marwan94140_at_gmail.com>
Date: Wed, 19 Jun 2013 02:13:46 -0700 (PDT)

Hi,

I have a problem with the sslbump option, can someone help me please?

I explain it:

client <-> child proxy <-> parent proxy <-> server

I have established a proxy behind another proxy squid. If I try to use the
parent proxy alone, it operate correctly. The parent proxy use sslbump with
this configuration:
--------------------------------------
http_port 3128 ssl-bump cert=/usr/local/squid/ssl/squid.crt.ok
key=/usr/local/squid/ssl/squid.key.ok
clientca=/home/mhalloumi/Bureau/ca_cert.pem

always_direct allow all
ssl_bump allow all

# the following two options are unsafe and not always necessary:
sslproxy_cert_error allow all
sslproxy_flags DONT_VERIFY_PEER

#sslcrtd_program /usr/local/squid/libexec/ssl_crtd -d -s
/usr/local/squid/ssl/storage -M 4MB sslcrtd_children 5

#
# Recommended minimum configuration:
#
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged)
machines

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

#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager

# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

http_access allow localnet
http_access allow localhost

http_access deny all
--------------------------------

When I try to use the child proxy, it just forward messages between the
client and the parent proxy but it can't use ssl_bump. I use it with this
configuration:

--------------------------------
icp_port 0
htcp_port 0

cache_peer 127.0.0.1 parent 3128 0 no-query default ssl sslversion=3
ssloptions=NO_TLSv1_1 sslcert=user_cert.pem sslkey=user_key.pem

http_port 3129 ssl-bump cert=ca_cert.pem key=ca_key.pem version=3

# the following two options are unsafe and not always necessary:
#sslproxy_cert_error allow all
#sslproxy_flags DONT_VERIFY_PEER

acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged)
machines

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

#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager

# Deny requests to certain unsafe ports
http_access deny !Safe_ports

http_access allow localnet
http_access allow localhost

never_direct allow all

pid_filename 12345
---------------------------------------

So if I try to send with wget a request to a server with this command (wget
https://www.cic.fr/fr/ --no-check-certificate --certificate user_cert.pem)
(I have configured wget to send requests to the child proxy) the child proxy
doesn't use ssl-bump with its parameters but just forward request to the
parent proxy.

So I want to know if:

it is possible to use sslbump with this proxy behind another proxy using
sslbump?

How can I use the SSL parameter from the command "cache_peer" (for example
sslcert, sslkey or sslversion)?

Why the sslbump parameters of the child proxy don't work in my case? (I want
this parameter for the ssl context server of the parent proxy).

Thank you for your help.

regards,

-- 
HALLOUMI Marwan
--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/squid-behind-another-squid-with-sslbump-tp4660678.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Wed Jun 19 2013 - 09:14:38 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 19 2013 - 12:00:04 MDT