Difference between revisions of "Gentoo openvpn notes"

From thelinuxwiki
Jump to: navigation, search
(Pushed from thelinuxwiki.com.)
 

Latest revision as of 19:01, 25 February 2013


init scripts and conf files

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.