The problem that the ipp.txt of OpenVPN is null and invalid

JavaScript implementation: how to write beautiful conditional expression>>>

1. Ipp.txt is used to allocate fixed IP, but in the Tun mode, the IP address is not the IP used, but the startup bit not listed in the 30 bit subnet. For example, if I want to allocate IP to the client, then the file filled in is, which is very strange

2. The reason why ipp.txt is empty is that duplicate cn is enabled in server.conf. The purpose of this item is that the same certificate can be connected at the same time. That’s the problem. Multiple clients of the same certificate will cause the file not to be written back. If you take this item, the file will be written back

3. Ipp.txt is written back every 10 minutes by default. If you want to write back in two seconds, add 2: ifconfig-pool-persist ipp.txt 2

4. This file contains the CN name of the certificate. As a match, the account is useless. If you want different clients to have different static fixed IP addresses, you can only turn off multiple clients to log in with the certificate, set different CN certificates, and write them in this file according to the rules

5. File rules of ipp.txt: CN name, IP netmask, but it is useless in practical application. In the Tun mode, you can directly use client, or client,, but it will become the one in front. If it is in tap mode, you can use client,

6. In fact, the purpose of ipp.txt is to record IP, so that it can get the same IP again when it starts next time. However, after the analysis of actual operation, this file is more like a legacy of history, which is useless. First of all, this file can only recognize the CN name, but after the same certificate is opened, it can’t log in at the same time, where does the same client have the same IP

7. The correct way should be: client config dir specified folder, which creates a new file with CN name, and writes ifconfig push (subnet mask can be written, and it can be written after testing)


Similar Posts: