Open comphilip opened 6 years ago
I got a workaround to fix this issue. It seems ip command executes too early before tun device complete opened and initialized.
So I wrote a delay-ip.sh and mount as /etc/openvpn/delay-ip.sh
!/usr/bin/env bash
sleep 0.1 /sbin/ip $*
It just sleep 0.1 seconds before do actual ip command
Update openvpn.conf and add one line to tell openvpn call our ip commands instead of default one
iproute /etc/openvpn/delay-ip.sh
Any updates on this being solved? Really difficult to diagnose OpenVPN client and/or OpenVPN server if their is no error messages. My OpenVPN container works on Ubuntu and locally on the Docker for Mac, but not able to ping the lan from newer CoreOS versions.
Trying to figure out the workaround mentioned above...
I've had this issue for some time running OpebVPN in Docker on CoreOS, but not on other hosts. The delay-ip.sh workaround above solves it for me, thanks.
Everything works well (with docker host network mode) in CoreOS (1632.3.0). After CoreOS auto upgrade to 1688.5.3, openvpn cannot set tun device properly.
logs
OpenVPN server started successfully according to logs. Not error messages, and it call /sbin/ip to set ip address and routes. But those /sbin/ip not worked
ip address
ip route:
I had to run /sbin/ip commands manually to fix the problem.