This is directed toward a pretty specific audience, so this probably won’t be too useful for many people. If you have TomatoVPN with OpenVPN set up, sometimes the OpenVPN server will go down, and you’ll lose access. It’s happened to me many times where all of a sudden, I get a disconnect and an error like the following in my logs:
Feb 15 11:34:34 localbox ovpn-client[2621]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Feb 15 11:34:34 localbox ovpn-client[2621]: TLS Error: TLS handshake failed
Due to this, I’ve come up with a routine to work around the problem. First, you need to make sure you can SSH in from outside your network. The settings I use look like this:
Assuming you can still SSH in, the process to restart the OpenVPN server is pretty simple. Just use the option -D and specify a port, to set up a proxy for your web browser.
ssh -D 1800 root@yourtomato
After that, configure the proxy on your local machine or browser to use localhost on port 1800, and you should be able to reach Tomato on its LAN IP.
