Stunnel traffic fails to go via proxy set in winhttp (Windows 10)

Library Information Access Team <[email protected]> Wed, 6 Nov 2019 03:51:17 +0000
Newsgroups gmane.network.stunnel.user
Message-ID <SY2PR01MB24122BCE1B5D8DDCFB08D926A9790@SY2PR01MB2412.ausprd01.prod.outlook.com>
--===============9069541102908503471==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_SY2PR01MB24122BCE1B5D8DDCFB08D926A9790SY2PR01MB2412ausp_"

--_000_SY2PR01MB24122BCE1B5D8DDCFB08D926A9790SY2PR01MB2412ausp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

At QUT Library we use Stunnel to encrypt SIP2 (ie. book borrowing) traffic =
from the self-checkout machines through to the Alma library services platfo=
rm (as per https://developers.exlibrisgroup.com/alma/integrations/stunnel/ =
)

Our self-checkout machines run Windows 10 and are allowed limited internet =
access to two hosts (cloud.fetechgroup.com and ap01.alma.exlibrisgroup.com)=
 via our institution's Squid proxy and I have our current WinHTTP proxy set=
tings:

    Proxy Server(s) :  wproxy.qut.edu.au:3128
    Bypass List     :  *.qut.edu.au

The proxy server settings are set for all protocols (HTTP, HTTPS, secure an=
d FTP) and I've confirmed that web browser and the FE Technologies software=
 is routing via wproxy.qut.edu.au.  However Stunnel is still trying to conn=
ect to Alma directly.  Our stunnel.conf is as follows (just FYI, the FE Tec=
h software points to 127.0.0.1:5001 as our library services platform addres=
s):

[KG_Self-Checkout]
key =3D client.pem
cert =3D client.pem
client =3D yes
accept =3D 127.0.0.1:5001
connect =3D ap01.alma.exlibrisgroup.com:6443
TIMEOUTclose =3D 0
TIMEOUTconnect =3D 200
TIMEOUTidle =3D 86400
sslVersion =3D TLSv1.2

Is there a way to force Stunnel to either respect the WinHTTP settings or c=
onfigure it to route traffic to wproxy.qut.edu.au:3128 before initiating th=
e connect =3D hostname:port?

I did try protocolHost as follows, but I'm probably misunderstanding how it=
 works https://www.stunnel.org/static/stunnel.html#SERVICE-LEVEL-OPTIONS

[KG_Self-Checkout]
key =3D client.pem
cert =3D client.pem
client =3D yes
accept =3D 127.0.0.1:5001
connect =3D wproxy.qut.edu.au:3128
protocolHost =3D ap01.alma.exlibrisgroup.com:6443
TIMEOUTclose =3D 0
TIMEOUTconnect =3D 200
TIMEOUTidle =3D 86400
sslVersion =3D TLSv1.2

Any advice or assistance gratefully accepted, and apologies if this is a si=
lly question - I'm just a librarian trying to make this thing work.

Thanks,

Jai Parker | Information Access Librarian

QUT Library | Division of Administrative Services
QUT | Kelvin Grove | D Block, Level 1 | Victoria Park Rd Kelvin Grove QLD 4=
059
P: 07 3138 3381 | E: [email protected]<mailto:[email protected]=
u.au> | www.qut.edu.au<http://www.qut.edu.au/>
ABN: 83 791 724 622 | CRICOS No. 00213J


--_000_SY2PR01MB24122BCE1B5D8DDCFB08D926A9790SY2PR01MB2412ausp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"Segoe UI";
	panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-AU" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">At QUT Library we use Stunnel to encrypt SIP2 (ie. b=
ook borrowing) traffic from the self-checkout machines through to the Alma =
library services platform (as per
<a href=3D"https://developers.exlibrisgroup.com/alma/integrations/stunnel/"=
>https://developers.exlibrisgroup.com/alma/integrations/stunnel/</a> )<o:p>=
</o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Our self-checkout machines run Windows 10 and are al=
lowed limited internet access to two hosts (cloud.fetechgroup.com and ap01.=
alma.exlibrisgroup.com) via our institution&#8217;s Squid proxy and I have =
our c<span style=3D"font-size:10.5pt;font-family:&quot;Segoe UI&quot;,sans-=
serif;mso-fareast-language:EN-AU">urrent
 WinHTTP proxy settings:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;font-family:&quot;Se=
goe UI&quot;,sans-serif;mso-fareast-language:EN-AU">&nbsp;<o:p></o:p></span=
></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.5pt;font-family:&quot;Co=
urier New&quot;;mso-fareast-language:EN-AU">&nbsp; &nbsp; Proxy Server(s) :=
 &nbsp;wproxy.qut.edu.au:3128<br>
&nbsp; &nbsp; Bypass List &nbsp; &nbsp; : &nbsp;*.qut.edu.au<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">The proxy server settings are set for all protocols =
(HTTP, HTTPS, secure and FTP) and I&#8217;ve confirmed that web browser and=
 the FE Technologies software is routing via wproxy.qut.edu.au. &nbsp;Howev=
er Stunnel is still trying to connect to Alma
 directly.&nbsp; Our stunnel.conf is as follows (just FYI, the FE Tech soft=
ware points to 127.0.0.1:5001 as our library services platform address):<o:=
p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
[KG_Self-Checkout]<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
key =3D client.pem<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
cert =3D client.pem<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
client =3D yes<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
accept =3D 127.0.0.1:5001<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
connect =3D ap01.alma.exlibrisgroup.com:6443<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
TIMEOUTclose =3D 0<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
TIMEOUTconnect =3D 200<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
TIMEOUTidle =3D 86400<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
sslVersion =3D TLSv1.2<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Is there a way to force Stunnel to either respect th=
e WinHTTP settings or configure it to route traffic to wproxy.qut.edu.au:31=
28 before initiating the connect =3D hostname:port?<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I did try protocolHost as follows, but I&#8217;m pro=
bably misunderstanding how it works
<a href=3D"https://www.stunnel.org/static/stunnel.html#SERVICE-LEVEL-OPTION=
S">https://www.stunnel.org/static/stunnel.html#SERVICE-LEVEL-OPTIONS</a>
<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
[KG_Self-Checkout]<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
key =3D client.pem<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
cert =3D client.pem<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
client =3D yes<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
accept =3D 127.0.0.1:5001<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
connect =3D wproxy.qut.edu.au:3128<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
protocolHost =3D ap01.alma.exlibrisgroup.com:6443<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
TIMEOUTclose =3D 0<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
TIMEOUTconnect =3D 200<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
TIMEOUTidle =3D 86400<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Courier New&quot;">=
sslVersion =3D TLSv1.2<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Any advice or assistance gratefully accepted, and ap=
ologies if this is a silly question &#8211; I&#8217;m just a librarian tryi=
ng to make this thing work.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Thanks,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:9.0pt;font-family:&quot;=
Arial&quot;,sans-serif;color:#00467F;mso-fareast-language:EN-AU">Jai Parker=
 | Information Access Librarian</span></b><span style=3D"mso-fareast-langua=
ge:EN-AU"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:&quot;Ari=
al&quot;,sans-serif;mso-fareast-language:EN-AU">&nbsp;</span><span style=3D=
"mso-fareast-language:EN-AU"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:&quot;Ari=
al&quot;,sans-serif;mso-fareast-language:EN-AU">QUT Library | Division of A=
dministrative Services</span><span style=3D"mso-fareast-language:EN-AU"><o:=
p></o:p></span></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:9.0pt;font-family:&quot;=
Arial&quot;,sans-serif;color:#00467F;mso-fareast-language:EN-AU">QUT</span>=
</b><span style=3D"font-size:9.0pt;font-family:&quot;Arial&quot;,sans-serif=
;mso-fareast-language:EN-AU"> | Kelvin Grove | D Block, Level
 1 | Victoria Park Rd Kelvin Grove QLD 4059</span><span style=3D"mso-fareas=
t-language:EN-AU"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:9.0pt;font-family:&quot;=
Arial&quot;,sans-serif;mso-fareast-language:EN-AU">P:
</span></b><span style=3D"font-size:9.0pt;font-family:&quot;Arial&quot;,san=
s-serif;mso-fareast-language:EN-AU">07 313<b>8 3381
</b>| E: <a href=3D"mailto:[email protected]" target=3D"_blank"><sp=
an style=3D"color:blue">[email protected]</span></a> |
<a href=3D"http://www.qut.edu.au/" target=3D"_blank"><span style=3D"color:b=
lue">www.qut.edu.au</span></a>
</span><span style=3D"mso-fareast-language:EN-AU"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:&quot;Ari=
al&quot;,sans-serif;mso-fareast-language:EN-AU">ABN: 83 791 724 622 | CRICO=
S No. 00213J</span><span style=3D"mso-fareast-language:EN-AU"><o:p></o:p></=
span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_SY2PR01MB24122BCE1B5D8DDCFB08D926A9790SY2PR01MB2412ausp_--

--===============9069541102908503471==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
stunnel-users mailing list
[email protected]
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users

--===============9069541102908503471==--