Stunnel + OpenVPN won't connect; udp error 10054

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
planwithaman
OpenVpn Newbie
Posts: 1
Joined: Sat Aug 04, 2018 12:56 am

Stunnel + OpenVPN won't connect; udp error 10054

Post by planwithaman » Sat Aug 04, 2018 12:57 am

I followed this guide and I also noticed the problem is discussed here viewtopic.php?t=18801 but there was no solution.

Any ideas where to start?


Edit apparently I'm sort of an idiot. Stunnel wasn't running. However, stunnel won't start because it can't bind to localhost which it says is in use. It doesn't appear to be in use.

Code: Select all

[!] bind: Address already in use (48)
[!] Error binding service [openvpn-localhost] to 127.0.0.1:3000
[ ] Closing service [openvpn-localhost]
[ ] Service [openvpn-localhost] closed
/usr/local/etc/rc.d/stunnel: WARNING: failed to start stunnel
stunnel.conf

Code: Select all

debug = 7
output = /usr/local/etc/stunnel/stunnel.log

# Location of the certificate that we created
cert = /usr/local/etc/stunnel/stunnel.pem


# Name of the connection
[openvpn-localhost]
# The port to listen on
accept = 127.0.0.1:3000
# Connect to the local OpenVPN server
connect = 127.0.0.1:10011

Code: Select all

]# sockstat -4 -l
sockstat: struct xtcpcb size mismatch
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
nobody   openvpn    11859 6  udp4   *:10011               *:*
root     syslogd    11827 7  udp4   *:514                 *:*

Post Reply