Re: Limit the number of users based on the key

Gert Doering <[email protected]>
Newsgroups gmane.network.openvpn.user
Message-ID <[email protected]>
Hi,

On Sun, Dec 31, 2023 at 05:43:52PM +0000, Peter Davis via Openvpn-users wrote:
> How can I limit the number of users based on a key? For example, only 10 users can use a key at the same time.

No way to do that inside openvpn.  You need to do something in --client-connect
script (or plugin) to do that counting, or talking to the management API.

Generally speaking, letting multiple users use the same key is not a very
good idea, though...

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]

_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users
signature.asc (application/pgp-signature, 630 B)
-----BEGIN PGP SIGNATURE-----

iQGcBAEBAgAGBQJlkapNAAoJEB2Cnv7KVigSCAAL/3Aub9NkS82mH7eu4BNjLQHe
+ijgtT59q77eh2wzG4bFmIEX/iZS8zWsQSUpaX6QEQeQ7TIuMtG6TbX/OVMMQuYI
3ADSpQIXEzfVvnVq2nCKNbV2Gy8qVn+mv4xVVr6Mqri2aulNzLGATihbGya3Mls+
ZH2PJv/F45EdXfBD1rzH3letmr68hVaUKeHvviZbF3JDsjVqntzxkNLenL0mKaxN
WA0CF44iOevg2mzT0dOqb5368/j6F+jpBM+W4D2CgmaJ80vE6I+zGsmMcH86r/dp
ErIeWz32LyjIkcmHPvFjNdm08ukGAkzVCsAyZDScp/hblep3DpBMmI0Va3IFxsDQ
KftrkIQD8Vbh+SwRlU1uWNOWIVkFUx/OnaMscZzUqIMHsd5uo8eBiS6368A40vzh
Cv9g6KL2uj1ulBgbuMEBy7t6BbeSiBsDV/3nKveUX8M8X5Q+LoscgTYo6oMVZfQe
O9H6k1sIoUet5+KlRT3YJrBdG62PHNcxWPAbwA3gJg==
=rh5O
-----END PGP SIGNATURE-----
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.