I was at office today and needed to set up a quick and dirti SSH VPN so the attached script came out.
It still needs some work to be done (checks, status management, start & stop, etc.) but it works! :)
Well, actually it wasn't meant to be used on N800. I was using it on my laptop, but after a quick test I found it's working pretty well. So, why not use it?!
Basically you only need to change values for the variables:
REMOTE_USER="maddler" REMOTE_ADDRESS="192.168.1.199" VPN_IP_LOCAL="10.0.0.1" VPN_IP_REMOTE="10.0.0.2"
Have fun!