View Single Post
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#14
Originally Posted by Pigro View Post
Anyway, I sorted it out - though can't 100% say HOW I did so - but thanks anyway for the feedback, appreciated :-)
sorry i'm a bit late - here's how i worked around that issue, maybe it's of some help to you (or at least makes it clearer why it works now ).
basically, i make sure the N900 has a valid route to my VPN server, and then define that server's gateway as default gateway. works like a charm


Originally Posted by getnani View Post
I was hoping something like this
Run Connect/Disconnect/Preconnect Scripts
just create shell scripts at an appropriate location, make them executable (obviously), and reference them in your client config (as pigro does - "up" and "down" are in fact references to scripts being called).
check the openvpn documentation for "scripting variables".

oh, and you _have_ to set "script-security 2", otherwise no scripts will be called.
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
 

The Following User Says Thank You to SubCore For This Useful Post: