PiVPN not connecting externally..

Having issues with your DietPi installation or found a bug? Post it here.
Posts: 5
Joined: Thu Feb 04, 2021 12:13 am

Re: PiVPN not connecting externally..

Post by SiCKFoRM »

Joulinar wrote: Fri Feb 05, 2021 10:42 pm usually PiVPN is working and I verified it this week. PiVPN will install OpenVPN if selected during PiVPN installation process.

I have done a fresh install today which gave more info

I used an external port sniffer and opened all my router ports.
Everything was as expected except 1194.
It stated that it was closed.

I am a little confused as to why this is.
Does the port normally get seen externally or is it closed until handshake etc?

Code: Select all

sudo ps -A
3073 ? 00:00:00 openvpn

Code: Select all

sudo ss -tulpn |grep openvpn
udp UNCONN 0 0* users:(("openvpn",pid=3073,fd=6))

Code: Select all

nano openvpn-status.log
TITLE OpenVPN 2.4.7 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] b$
TIME Fri Feb 5 23:52:55 2021 1612569175
HEADER CLIENT_LIST Common Name Real Address Virtual Address Virtual IPv6 Address Bytes Received Byte$
CLIENT_LIST ********* 80570 71093 Fri Feb 5 23:52:18 $
HEADER ROUTING_TABLE Virtual Address Common Name Real Address Last Ref Last Ref (time_t)
ROUTING_TABLE ******** Fri Feb 5 23:52:50 2021 1612569170
GLOBAL_STATS Max bcast/mcast queue length 0
END isn't responding on port 1194 (openvpn).

Code: Select all

lsof -i -P -n
openvpn 3073 openvpn 6u IPv4 45126 0t0 UDP *:1194
User avatar
Posts: 4836
Joined: Sat Nov 16, 2019 12:49 am

Re: PiVPN not connecting externally..

Post by Joulinar »

I guess it's ok for the port scanner not detecting the VPN Server port because VPN server is running UDP and most of scanner checking on TCP

Anyway, OpenVPN is running correctly. If I understood as well, you are able to connect inside you network as well. Means it is working. You still need to find out what happen on your port forwarding.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply