What's new

OpenVPN client start with WAN - NTPC

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

daviddhauwe

New Around Here
I am using an RT-N66U 3.0.0.4.372.30_2 with an openvpn client that starts with wan connection. For the openvpn to work it is mandatory that the time of the router is correct. For some reason the ntpc service does not sync the time, even not after several hours. When I disable 'start with wan' on the openvpn client, the time is synced short after reboot.
So there is a problem when the openvpn client starts together with wan. I have a workaround to do an ntpclient sync in the wan-start script. But i want to fix the problem, because in my setup, when the rooter boots and the ntp server is not available, it will not work. See here a part of the system log. The openvpn connects to a non existing ip, that is why we have the connect errors, but this is not important I am more concered about: rc_service: skip the event: start_ntpc. I get also similar 'skip the event:reboot ' messages when I try to reboot, so I have to disconnect the power. Can anybody help?

Jan 1 01:00:15 WAN Connection: WAN was restored.
...
Jan 1 01:00:51 rc_service: udhcpc 411:notify_rc start_vpnclient1
Jan 1 01:00:51 rc_service: udhcpc 411:notify_rc stop_ntpc
Jan 1 01:00:51 rc_service: stop_ntpc is waitting start_vpnclient1...
Jan 1 01:00:51 kernel: tun: Universal TUN/TAP device driver, 1.6
Jan 1 01:00:51 kernel: tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Jan 1 01:00:51 openvpn[548]: OpenVPN 2.3.0 mipsel-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Jul 6 2013
Jan 1 01:00:51 openvpn[548]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Jan 1 01:00:51 openvpn[548]: Socket Buffers: R=[87380->131072] S=[16384->131072]
Jan 1 01:00:51 openvpn[552]: Attempting to establish TCP connection with [AF_INET]x.x.x.x:443 [nonblock]
Jan 1 01:01:02 openvpn[552]: TCP: connect to [AF_INET]x.x.x.x:443 failed, will try again in 5 seconds: Connection timed out
Jan 1 01:01:06 rc_service: skip the event: stop_ntpc.
Jan 1 01:01:06 rc_service: udhcpc 411:notify_rc start_ntpc
Jan 1 01:01:06 rc_service: start_ntpc is waitting start_vpnclient1...
Jan 1 01:01:17 openvpn[552]: TCP: connect to [AF_INET]x.x.x.x:443 failed, will try again in 5 seconds: Connection timed out
Jan 1 01:01:21 rc_service: skip the event: start_ntpc.
Jan 1 01:01:32 openvpn[552]: TCP: connect to [AF_INET]x.x.x.x:443 failed, will try again in 5 seconds: Connection timed out
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top