pivpn: pivpn not working, cannot connect at all

Console output of pivpn debug

::: Generating Debug Output
:::                                     :::
::              PiVPN Debug              ::
:::                                     :::
::      Latest Commit                    ::
:::                                     :::
commit 053c0d9d214ed9e9de90940d9b3e2291cb9323e8
Author: Carlos Colaço <cfcolaco@gmail.com>
Date:   Wed Oct 18 20:58:20 2017 +0200

    Fix Clients only in one line (#384)

    * fixed pivpn clients text display

    * #Oops

    * clients in only 1 line fixed
:::                                     :::
::      Recursive list of files in       ::
::      /etc/openvpn/easy-rsa/pki        ::
:::                                     :::
/etc/openvpn/easy-rsa/pki/:
ca.crt
crl.pem
Default.txt
dh1024.pem
index.txt
index.txt.attr
index.txt.attr.old
index.txt.old
issued
private
serial
serial.old
ta.key
User1.ovpn
User2.ovpn
User3.ovpn

/etc/openvpn/easy-rsa/pki/issued:
server_EGpjJqmg8qo5hYs1.crt
User1.crt
User2.crt
User3.crt

/etc/openvpn/easy-rsa/pki/private:
ca.key
server_EGpjJqmg8qo5hYs1.key
User1.key
User2.key
User3.key
:::                                     :::
::      Output of /etc/pivpn/*           ::
:::                                     :::
:: START /etc/pivpn/DET_PLATFORM ::
Raspbian
:: END /etc/pivpn/DET_PLATFORM ::
:: START /etc/pivpn/INSTALL_PORT ::
1194
:: END /etc/pivpn/INSTALL_PORT ::
:: START /etc/pivpn/INSTALL_PROTO ::
udp
:: END /etc/pivpn/INSTALL_PROTO ::
:: START /etc/pivpn/INSTALL_USER ::
pi
:: END /etc/pivpn/INSTALL_USER ::
:: START /etc/pivpn/NO_UFW ::
1
:: END /etc/pivpn/NO_UFW ::
:: START /etc/pivpn/pivpnINTERFACE ::
wlan0
:: END /etc/pivpn/pivpnINTERFACE ::
:::                                     :::
:: /etc/openvpn/easy-rsa/pki/Default.txt ::
:::                                     :::
client
dev tun
proto udp
remote IP ADDRESS 1194
resolv-retry infinite
nobind
persist-key
persist-tun
key-direction 1
remote-cert-tls server
tls-version-min 1.2
verify-x509-name server_EGpjJqmg8qo5hYs1 name
cipher AES-256-CBC
auth SHA256
comp-lzo
verb 1
:::                                     :::
::      Debug Output Complete            ::
:::                                     :::
:::
::: Debug output completed above.
::: Copy saved to /tmp/debug.txt

Issue - cannot connect to VPN server using any device (iPhone, Mac, Windows). Times out after 1 minute. It will resolve, attempt to contact the IP via UDP (1194), wait, set tunnel socket returned 1, try to connect again, net internet:reachableviaWiFi/-R t------, server poll timeout, try next remote entry, reconnect and the cycle starts again. I am a newb - any help would be appreciated.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 35 (7 by maintainers)

Most upvoted comments

I’m having this issue as well, my config and outputs are almost identical to @raspberrypivpn except I’m using eth0.

@NienkeB

  1. Restart the server: sudo systemctl restart openvpn
  2. Attempt a connection from a client (outside of your local network)
  3. Post the log from the server: cat /var/log/openvpn.log
  4. IMMEDIATELY revoke that certificate since you have just leaked it on github