I have a two routers connected via OpenVPN and I have a small issue. Any time the client router reboots (ie: power flicker), it 'forgets' the date/time and this prevents it from making a connection to the server until I manually set the date/time. I'm wondering if anyone can help me add something to my WAN Up script that would record the date/time periodically to a file, and a command in my init script that would set the date/time from that same file?
Is this even possible?
Is there a better solution (keeping in mind that the client router cannot access the net until the VPN connection is made)?