Results 1 to 7 of 7

Thread: How to create many OpenVPN servers for many clients?

  1. #1
    Join Date
    May 2013
    Beans
    138
    Distro
    Ubuntu

    Question How to create many OpenVPN servers for many clients?

    Using this guide I successfully created single OpenVPN server for many clients.

    How can I create many OpenVPN servers for many clients each server has own ca.crt and ca.key?

  2. #2
    Join Date
    Mar 2010
    Location
    Metro-ATL; PM free zone.
    Beans
    9,303
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: How to create many OpenVPN servers for many clients?

    How can this be done? Script everything.
    ... or pay someone else to script it for your needs. Use bash, perl, awk, ruby, python ...

    I would think that the openvpn team has tools for this in their commercial offering or will offer consulting services to provide it.

  3. #3
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    11,393
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: How to create many OpenVPN servers for many clients?

    Have each server run on a separate port. You can create multiple server definitions and place them in .conf files in /etc/openvpn. I have a single server to which multiple clients connect using simple shared-key configurations. Each one connects on a separate port.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  4. #4
    Join Date
    Mar 2010
    Location
    Metro-ATL; PM free zone.
    Beans
    9,303
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: How to create many OpenVPN servers for many clients?

    Quote Originally Posted by SeijiSensei View Post
    Have each server run on a separate port. You can create multiple server definitions and place them in .conf files in /etc/openvpn. I have a single server to which multiple clients connect using simple shared-key configurations. Each one connects on a separate port.
    I've had issues connecting to a VPN on any port that wasn't 443 when traveling. Seems that lots of work and hotel connections filter heavily. At a few places they filtered UDP on 443 as well, so be certain to reserve the 443/TCP on the IP for your personal needs. OTOH, staying above 10,000 in the ports, should be fine for most people coming in from a home ISP connection.

  5. #5
    Join Date
    May 2013
    Beans
    138
    Distro
    Ubuntu

    Re: How to create many OpenVPN servers for many clients?

    Quote Originally Posted by SeijiSensei View Post
    Have each server run on a separate port. You can create multiple server definitions and place them in .conf files in /etc/openvpn. I have a single server to which multiple clients connect using simple shared-key configurations. Each one connects on a separate port.
    Actually I was using the same way you suggested for years ago but recently I noticed that some users use port listener to discover the working ports for that I want to separate them by using different master key and certificate.

    In Windows I did that easily by putting each server's configuration and its master key, certificate and users related files in separate folder then after restart OpenVPN the server will consider each folder as separated server (It creates multi-network connection equal to number of recognized OpenVPN servers). Under Ubuntu this didn't work because OpenVPN create single master key and certificate!

  6. #6
    Join Date
    Jan 2014
    Beans
    Hidden!
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: How to create many OpenVPN servers for many clients?

    The chroot directive allows you to lock the OpenVPN daemon into a so-called chroot jail, where the daemon would not be able to access any part of the host system's filesystem except for the specific directory given as a parameter to the directive. Thinking if you can start in this way multiple deamons

  7. #7
    Join Date
    May 2013
    Beans
    138
    Distro
    Ubuntu

    Re: How to create many OpenVPN servers for many clients?

    Quote Originally Posted by nilla78ro View Post
    The chroot directive allows you to lock the OpenVPN daemon into a so-called chroot jail, where the daemon would not be able to access any part of the host system's filesystem except for the specific directory given as a parameter to the directive. Thinking if you can start in this way multiple deamons
    Thank you for this suggestion but I think it works as a temporarily procedure; The right procedure suppose to work from OpenVPN & Ubuntu side.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •