openVPN no data transferred

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
Darron
Posts: 10
Joined: Sun Aug 18, 2019 12:56 pm

openVPN no data transferred

Post by Darron »

I can connect to the VPN locally, PC to pi, and remotely, phone/tablet to pi.
There's no issue connecting, but the data that's being transferred is bits and bytes.

Any idea what's going on?
chucklesmcgee
Posts: 55
Joined: Tue Jun 02, 2020 7:19 pm

Re: openVPN no data transferred

Post by chucklesmcgee »

I'm working my way through the same issue with wireguard, checking my configuration settings to make sure external IPs are allowed.
User avatar
Joulinar
Posts: 6001
Joined: Sat Nov 16, 2019 12:49 am

Re: openVPN no data transferred

Post by Joulinar »

Hi,

WireGuard is working a different way. Even the app on your mobile device is indicating a connection, it might not to be true. Best is to check in WireGuard server the connection status and if there is an actual handshake listed. You could do this by using wg command.

It could looks like this for a client connected and another client not connected.

Code: Select all

root@DietPiProd:~# wg
interface: wg0
  public key: <myKey>
  private key: (hidden)
  listening port: 51820

peer: <myKey>
  endpoint: x.x.x.x:44710
  allowed ips: 10.9.0.7/32
  latest handshake: 12 seconds ago
  transfer: 5.86 KiB received, 13.06 KiB sent

peer: <myKey>
  allowed ips: 10.9.0.2/32
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
chucklesmcgee
Posts: 55
Joined: Tue Jun 02, 2020 7:19 pm

Re: openVPN no data transferred

Post by chucklesmcgee »

Fixed it, I needed to port forward UDP in addition to TCP on my router.
User avatar
Joulinar
Posts: 6001
Joined: Sat Nov 16, 2019 12:49 am

Re: openVPN no data transferred

Post by Joulinar »

TCP is not needed at all, as VPN is working on UDP.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
chucklesmcgee
Posts: 55
Joined: Tue Jun 02, 2020 7:19 pm

Re: openVPN no data transferred

Post by chucklesmcgee »

Joulinar wrote: Thu Aug 12, 2021 4:45 pm TCP is not needed at all, as VPN is working on UDP.
Appreciate it!
Post Reply