Re: Limit the number of users based on the key

Peter Davis via Openvpn-users <[email protected]>
Newsgroups gmane.network.openvpn.user
Message-ID <PeMLnuS2tMohbkIp8XP5zA_f4xNM_eUpB-QmRkGj0EXoaTJMoeal3EMq4XWvUtqoGVi2bVgdtxCYFZ9tqUaefC7nkJ6RK41aLxYhLfeanKE=@proton.me>
>On Saturday, January 13th, 2024 at 3:26 PM, Gert Doering <[email protected]> wrote:


> Hi,
> 
> On Thu, Jan 11, 2024 at 07:35:13PM +0000, Peter Davis wrote:
> 
> > > Abandon that thought. We've been here before: you need unique keys per
> > > user, everything else will just make your life painful and miserable.
> > 
> > If each user has their own key, then there should be a Client.conf file for each user, which itself contains a unique IP address, a unique port and a unique TUN. For example, for 100 users, there are 100 configuration files, 100 IP addresses, 100 open ports and 100 TUNs.
> 
> 
> OpenVPN Server is point-to-multipoint, so a single server can easily
> handle 1000s of clients.
> 
> You need a unique key+cert per client, which form a unique client config
> (everything not key/cert related stays the same, though). Nothing else
> needs to be maintained per-client, the server will do that all for you.
> 
> With a single TUN.
> 
> gert
> 
> --
> "If was one thing all people took for granted, was conviction that if you
> feed honest figures into a computer, honest figures come out. Never doubted
> it myself till I met a computer with a sense of humor."
> Robert A. Heinlein, The Moon is a Harsh Mistress
> 
> Gert Doering - Munich, Germany [email protected]

Hi,
You said "You need a unique key+cert per client, which form a unique client config (everything *not* key/cert related stays the same, though).", are these unique keys generated for each client by the following commands?

./easyrsa gen-req <client name> nopass
./easyrsa sign-req client <client name>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.