Re: Two questions about key generation for clients

Bo Berglund <[email protected]>
Newsgroups gmane.network.openvpn.user
Message-ID <[email protected]>
On Sun, 21 Jan 2024 10:10:10 +0100, Gert Doering <[email protected]> wrote:

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

Could I launch a screen -d command in my script to do the actual work there?
In that case the main script could exit instantly. But only provided the
environment vars are transfered to the screen instance of course...


-- 
Bo Berglund
Developer in Sweden
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.