On Tue, Feb 12, 2019 at 12:04:54PM +0100, tom wrote: > Hello, > > I've installed stunnel-4.56-6.el7.x86_64 on my Centos 7. I can't > establish a connection. Seems to be something wrong with the name > resolution, because if I use the IP derect, the tunnel works. > > Feb 12 11:58:00 server stunnel[52445]: LOG7[52445:139984526436416]: > Service [cs] accepted (FD=3) from 127.0.0.1:10866 [snip] > Error resolving 'foobar.remote.site': System error returned in errno > (EAI_SYSTEM) > Feb 12 11:58:00 server stunnel[52445]: LOG3[52445:139984526432000]: No > host resolved [snip] > > > stunnel.conf: [snip] > chroot = /var/run/stunnel > setuid = stunnel > setgid = stunnel
Do you have a /var/run/stunnel/etc/resolv.conf file?
(and yes, this means that if you intend for the chroot to be (re)created
every time the system boots, you'll also need to put the /etc/resolv.conf
file there every time)
Hope that helps!
G'luck,
Peter
--
Peter Pentchev roam@{ringlet.net,debian.org,FreeBSD.org} [email protected]
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
signature.asc
Description: PGP signature
_______________________________________________ stunnel-users mailing list [email protected] https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
