creating additional VPNs with OpenVPN

From thelinuxwiki
Revision as of 17:52, 9 March 2014 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is specific to gentoo buy may work similarly for other distros

  • The openvpn init script expects to find the configuration file
* openvpn.conf in /etc/openvpn along with any extra files it may need.
* 
* To create more VPNs, simply create a new .conf file for it and
* then create a symlink to the openvpn init script from a link called
* openvpn.newconfname - like so
*    cd /etc/openvpn
*    nano foo.conf
*    cd /etc/init.d
*    ln -s openvpn openvpn.foo
* 
* You can then treat openvpn.foo as any other service, so you can
* stop one vpn and start another if you need to.