docker-openwisp
docker-openwisp copied to clipboard
[bug] OpenVPN tunnels does not work out of the box
Steps to replicate
- Start the development environment
- 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)
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 ?
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