1)ネットワーク図
Server ⇔(https)⇔ ForwardProxy ⇔(https)⇔ Client
2)実現したいこと
一旦FowardProxyでSSLを終端させて、Serverに転送するフォワードプロキシ設定
3)やってみたこと
conf.d/f_proxy.conf
1Listen 8443 https 2<IfModule mod_proxy.c> 3 # フォワードプロキシON 4 ProxyRequests On 5 ProxyVia On 6 SSLProxyEngine on 7 <Proxy *> 8 # アクセス許可範囲 9 Require ip 127.0.0.1 172.0.0.0/8 10 </Proxy> 11</IfModule>
上記設定で、ひとまずフォワードプロキシ設定は出来たが、SSLオフロードは実現できず。
4)さらにやってみたこと
Listen 8443 https <IfModule mod_proxy.c> # フォワードプロキシON ProxyRequests On ProxyVia On SSLProxyEngine on <Proxy *> # アクセス許可範囲 Require ip 127.0.0.1 172.0.0.0/8 </Proxy> </IfModule> SSLEngine on SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite HIGH:3DES:!aNULL:!MD5:!SEED:!IDEA SSLCertificateFile /etc/pki/tls/certs/localhost.crt SSLCertificateKeyFile /etc/pki/tls/private/localhost.key SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt
SSLEngineの設定を追加してみましたが、エラーになって接続が不可になりました。
# curl -v -k https://172.16.2.20:443/server01x/index.html --proxy https://172.16.1.11:8443 * About to connect() to proxy 172.16.1.11 port 8443 (#0) * Trying 172.16.1.11... * Connected to 172.16.1.11 (172.16.1.11) port 8443 (#0) * Establish HTTP proxy tunnel to 172.16.2.20:443 > CONNECT 172.16.2.20:443 HTTP/1.1 > Host: 172.16.2.20:443 > User-Agent: curl/7.29.0 > Proxy-Connection: Keep-Alive > * Proxy CONNECT aborted * Connection #0 to host 172.16.1.11 left intact curl: (56) Proxy CONNECT aborted
・error_log
[Tue Oct 22 09:02:30.188811 2019] [ssl:info] [pid 2198] [client 172.16.1.10:33348] AH01964: Connection to child 1 established (server proxy01:8443) [Tue Oct 22 09:02:30.188865 2019] [ssl:trace2] [pid 2198] ssl_engine_rand.c(124): Seeding PRNG with 0 bytes of entropy [Tue Oct 22 09:02:30.189156 2019] [ssl:info] [pid 2198] [client 172.16.1.10:33348] AH02008: SSL library error 1 in handshake (server proxy01:8443) [Tue Oct 22 09:02:30.189185 2019] [ssl:info] [pid 2198] SSL Library Error: error:1407609B:SSL routines:SSL23_GET_CLIENT_HELLO:https proxy request -- speaking HTTP to HTTPS port!? [Tue Oct 22 09:02:30.189195 2019] [ssl:info] [pid 2198] [client 172.16.1.10:33348] AH01998: Connection closed to child 1 with abortive shutdown (server proxy01:8443)
大変困っております。
あなたの回答
tips
プレビュー