On Tue, 24 May 2005, Jesse Adelman wrote: > 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.
Jesse, Thanks for the scripts -- people have asked for these. You might want to put some sort of "what this does" comment in -- e.g. this script will allow a Linux/Unix OpenVPN client to pull DNS server info from an OpenVPN server, automatically editing /etc/resolv.conf. James