Hi, good OpenVPN devs. I don't really hope to have these simple scripts integrated into the contrib/ directory in their current form, but I thought I'd get the ball rolling for others who are more adept than me to perhaps build on them. Should work for any GNU/Linux system with a standard /etc/resolv.conf, and an OpenVPN server "push"ing down dhcp DNS options.
They work very well for me so far, but, YMMV, of course. client.down won't work unless OpenVPN is running as root, the user OpenVPN is running under has rights to run the script and to write to /etc/resolv.conf, or you use the down-root plugin in the plugin/ directory in the OpenVPN source tarball (haven't tried this yet). Thanks to "UNIX Power Tools (O'Reilly)", "Learning the Bash Shell (O'Reilly)" and #bash on Freenode for the assistance. I assign the copyright over to OpenVPN, and releasing these under GPL v2. I'm sure v3 is great, but I haven't read it yet ;). I'll be glad to help with bugfixing, as time permits. Cheers, Jesse Adelman -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Jesse Adelman http://www.boldandbusted.com/ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
client.up
Description: 885563976-client.up
client.down
Description: 4149678061-client.down