Discussion:
[stunnel-users] Multiple accept parameter, or Ipv4 and v6 in one statement.
(too old to reply)
Brandon Jackson
2016-05-12 00:59:26 UTC
Permalink
Hi, I'm looking to expand my usage of stunnel.

One thing i'm wondering, is there a way to use multiple accepts for the
same service.

Like:

[httpsmain]
accept = 443
accept = :::443
connect = 10.0.1.1:9443

or even something like.

[httpsmain]
accept = 443,:::443
connect = 10.0.1.1:8443

The reason is I'm about to setup some service with sni with a few domains
and certs, but if I have to have them on v4 and v6 it looks like i'll have
to double everything up.

Is there a better way?



----------------------------------
Brandon Jackson
***@gmail.com
<https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=***@gmail.com>
Michał Trojnara
2016-05-12 20:07:16 UTC
Permalink
Post by Brandon Jackson
[httpsmain]
accept = 443
accept = :::443
connect = 10.0.1.1:9443
IPv6 also accepts IPv4 connections by default.
Your solution is:

[httpsmain]
accept = :::443
connect = 10.0.1.1:9443

Best regards,
Mike

Loading...