Create a pass.tx file at the same folder with client.ovpn with the content is username/password of VPN client, In this case, is Connect to VPN server base on your client, I use Tunnelblick. On the OpenVPN server create a Linux account Install OpenVPN client on your PC/Laptop: Linux, MAC, WindowsĬlient nobind dev tun redirect-gateway def1 remote 198.51.100.1 1194 udp comp-lzo yes auth-user-pass pass.txt auth-nocache -BEGIN CERTIFICATE - The contents of ca.crt that you generate on server -END CERTIFICATE - ĥ.$ sudo tail -f /var/log/openvpn/openvpn.log Client connect to OpenVPN server Status /var/log/openvpn/openvpn-status.log Key server.key # This file should be kept secret The contents of the server configure are: out sample-ca/server.crt -in sample-ca/server.csrĬhange to /etc/openvpn/server/sample-ca/ and copy server.key, server.crt, ca.crt, dh2048.pem to /etc/openvpn/Ĭreate OpenVPN server configure nf subj ca -batch -config openssl.cnf -extensions server \ keyout sample-ca/server.key -out sample-ca/server.csr \ Openssl req -new -nodes -config openssl.cnf -extensions server \ extensions easyrsa_ca -keyout sample-ca/ca.key -out sample-ca/ca.crt \ Openssl req -new -newkey rsa:4096 -days 3650 -nodes -x509 \ # Generate static key for tls-auth (or static key mode) $ sudo vi /etc/openvpn/server/gen-keys.shĬommand -v openssl >/dev/null 2>
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |