I have pivpn installed on my raspbian stretch running on 1194 port.
in the beginning it was working fine , but now from few days I am getting this error on reboot.
Sep 26 21:17:29 titan ovpn-bridge-clt: TCP/UDP: Preserving recently used remote address: [AF_INET]10.10.10.10:1194 Sep 26 21:17:29 titan systemd-timesyncd: Network configuration changed, trying to establish connection. Sep 26 21:17:29 titan ovpn-bridge-clt: TCP/UDP: Socket bind failed on local address [AF_INET][undef]:1194: Address already in use Sep 26 21:17:29 titan systemd-timesyncd: Synchronized to time server 126.96.36.199:123 (2.debian.pool.ntp.org). Sep 26 21:17:29 titan ovpn-bridge-clt: Exiting due to fatal error Sep 26 21:17:29 titan systemd: Failed to start OpenVPN connection to bridge-clt. -- Subject: Unit firstname.lastname@example.org has failed
I googled the error and found few hints:
and I think this is the possible fix tp problem , maybe the openvpn starts too early.
But I am not expert to understand the
/etc/init.d/openvpn because there are so many places where start_vpn appears.
I have also tried all the possible solutions here: https://www.raspberrypi.org/forums/viewtopic.php?t=178161
but no success.
Any help will be greatly appreciated.