Created symlink from /etc/systemd/system/multi-user.target.wants/openvpn-server@server.service to /etc/systemd/system/openvpn-server@.service. Created symlink from /etc/systemd/system/multi-user.target.wants/iptables-openvpn.service to /etc/systemd/system/iptables-openvpn.service.
Tell me a name for the client. The name must consist of alphanumeric character. It may also include an underscore or a dash. Client name: qqq
Do you want to protect the configuration file with a password? (e.g. encrypt the private key with a password) 1) Add a passwordless client 2) Use a password for the client Select an option [1-2]: 1
Note: using Easy-RSA configuration from: /etc/openvpn/easy-rsa/vars Using SSL: openssl OpenSSL 1.0.2k-fips 26 Jan 2017 Generating a 256 bit EC private key writing new private key to '/etc/openvpn/easy-rsa/pki/easy-rsa-1189.xDRljc/tmp.YZio3L' ----- Using configuration from /etc/openvpn/easy-rsa/pki/easy-rsa-1189.xDRljc/tmp.nnabLW Check that the request matches the signature Signature ok The Subject's Distinguished Name is as follows commonName :ASN.1 12:'qqq' Certificate is to be certified until Mar 10 11:03:31 2023 GMT (825 days)
Write out database with 1 new entries Data Base Updated
Client qqq added.
The configuration file has been written to /root/qqq.ovpn. Download the .ovpn file and import it in your OpenVPN client.
查看状态与端口
1 2
systemctl status openvpn-server@server ss -anpt | grep 1194