docker-openwisp icon indicating copy to clipboard operation
docker-openwisp copied to clipboard

[bug] OpenVPN tunnels does not work out of the box

Open pandafy opened this issue 3 years ago • 2 comments

Steps to replicate

  1. Start the development environment
  2. Register a device to the development environment. The default VPN template should get automatically applied to the device.

Expected Outcome An OpenVPN tunnel is established between device and the OpenVPN container. And it is possible to send traffic through it

Actual Outcome OpenVPN on the router fails with following error

Thu Jun  9 17:23:26 2022 daemon.err openvpn(default)[9866]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)

pandafy avatar Jun 09 '22 17:06 pandafy

running the docker distribution of the openvpn container here ... i see no log, and the container is always restarting in k8s ... do you face this issue too ?

dberardo-com avatar Jul 10 '23 13:07 dberardo-com

ok , i have figured: the VPN_DOMAIN var was not set ... a debug log would be much helpful : https://github.com/openwisp/docker-openwisp/blob/master/images/common/init_command.sh#L30C13-L30C23

dberardo-com avatar Jul 10 '23 13:07 dberardo-com