Re: Two questions about key generation for clients

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

On Sat, Jan 20, 2024 at 11:13:13PM +0100, Bo Berglund wrote:
> >There is one catch: OpenVPN blocks while --client-connect executes, so
> >if you do something that takes more than "few milliseconds", you need
> >to return 2 right away ("deferred operation") and progress the parts
> >that take longer in the background, writing the final result to
> >$auth_control_file (look for "deferred" in man openvpn).
> 
> Well, looking up a name in a "forbiddenusers" file which just contains alist of
> the CN of blocked users should qualify for "quick".

This should normally be fine.

Things people do in --client-connect scripts include LDAP or DNS queries,
which can lead to problems if said servers are slow/down - so, you have
an outage in your network and the DNS server is down, and that breaks 
VPN usage because on every new client connect, OpenVPN stops forwarding
for all clients until the DNS query expires...

So, avoid doing things in synchronous ways that rely on "external services".

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-----

iQGcBAEBAgAGBQJlrN9yAAoJEB2Cnv7KVigSDEkL/1wwJih5OLhi45Jy3HnnO51m
RbATYt1S2zkZk/AvcGblP2JtykRREyDaW+iCGZo/R9l7ZT9iNHc9MvzOJw7b3RUM
DewRaCwAL/blLmqjJfqrsWfpBocM+4sTOMpM8V8UKP3fp3H/ygSW6dlG6hK6J2WW
hYtBdL2WCteDy7PtSFea2F4SaZx7M/0GPIdfLfEMYI/0+M0h8vRjhqttg9fseHFq
JQQ1spXa0vE5rok8yZqNVQAt+s3pLS3VlyQAUqQLXyu0Lf+k6rM0IpjX5+TuJhkV
/YROCj6ETmBGDlyjxrTEBVaM2M9+TYCJEP8kDIxNqRowsL3pz+x+qwKn3IId4Gmw
qSgpMRPJbi66IXn2F9d1EJ92if3LCzhXOVWPmIV5zzbVRmJala7kDQwkTFgtBsuK
vV7+PlRFIsRTy7HP0KNOJtLAek4Wm3rOf/SWeTKy/bQpotqdtyuAzbMtVNKwytdH
bVe3/YnX4cPUF2wauvNC4ePDDcmqhPFfJv8E5vu3TA==
=g1W2
-----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.