from autoddvpn (http://code.google.com/p/autoddvpn)