Gentoo openvpn notes

From thelinuxwiki
Revision as of 19:01, 25 February 2013 by Nighthawk (Talk | contribs)

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


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.