############################################## # Sample client-side OpenVPN 2.0 config file # # for connecting to multi-client server. # # # # This configuration can be used by multiple # # clients, however each client should have # # its own cert and key files. # # # # On Windows, you might want to rename this # # file so it has a .ovpn extension # ############################################## # Specify that we are a client and that we # will be pulling certain config file directives # from the server. client # Use the same setting as you are using on # the server. # On most systems, the VPN will not function # unless you partially or fully disable # the firewall for the TUN/TAP interface. ;dev tap dev tun # Windows needs the TAP-Win32 adapter name # from the Network Connections panel # if you have more than one. On XP SP2, # you may need to disable the firewall # for the TAP adapter. ;dev-node MyTap # Are we connecting to a TCP or # UDP server? Use the same setting as # on the server. ;proto tcp proto udp # The hostname/IP and port of the server. # You can have multiple remote entries # to load balance between the servers. remote vpn.yultek.dev 1194 ;remote 138.197.151.172 1194 ;remote my-server-2 1194 # Choose a random host from the remote # list for load-balancing. Otherwise # try hosts in the order specified. ;remote-random # Keep trying indefinitely to resolve the # host name of the OpenVPN server. Very useful # on machines which are not permanently connected # to the internet such as laptops. resolv-retry infinite # Most clients don't need to bind to # a specific local port number. nobind # Downgrade privileges after initialization (non-Windows only) ;user nobody ;group nobody # Try to preserve some state across restarts. persist-key persist-tun # If you are connecting through an # HTTP proxy to reach the actual OpenVPN # server, put the proxy server/IP and # port number here. See the man page # if your proxy server requires # authentication. ;http-proxy-retry # retry on connection failures ;http-proxy [proxy server] [proxy port #] # Wireless networks often produce a lot # of duplicate packets. Set this flag # to silence duplicate packet warnings. ;mute-replay-warnings # SSL/TLS parms. # See the server config file for more # description. It's best to use # a separate .crt/.key file pair # for each client. A single ca # file can be used for all clients. ;ca ca.crt ;cert client.crt ;key client.key # Verify server certificate by checking that the # certificate has the correct key usage set. # This is an important precaution to protect against # a potential attack discussed here: # http://openvpn.net/howto.html#mitm # # To use this feature, you will need to generate # your server certificates with the keyUsage set to # digitalSignature, keyEncipherment # and the extendedKeyUsage to # serverAuth # EasyRSA can do this for you. remote-cert-tls server # If a tls-auth key is used on the server # then every client must also have the key. ;tls-auth ta.key 1 # Select a cryptographic cipher. # If the cipher option is used on the server # then you must also specify it here. # Note that v2.4 client/server will automatically # negotiate AES-256-GCM in TLS mode. # See also the data-ciphers option in the manpage cipher AES-256-GCM auth SHA256 # Enable compression on the VPN link. # Don't enable this unless it is also # enabled in the server config file. #comp-lzo # Set log file verbosity. verb 3 # Silence repeating messages ;mute 20 key-direction 1 ; script-security 2 ; up /etc/openvpn/update-resolv-conf ; down /etc/openvpn/update-resolv-conf ; script-security 2 ; up /etc/openvpn/update-systemd-resolved ; down /etc/openvpn/update-systemd-resolved ; down-pre ; dhcp-option DOMAIN-ROUTE . -----BEGIN CERTIFICATE----- MIIDRTCCAi2gAwIBAgIUXe37kz2yqgyL2xXfvaGRzlz7ywYwDQYJKoZIhvcNAQEL BQAwFDESMBAGA1UEAwwJSkZfc2VydmVyMB4XDTIzMDIyMDIyMDkyMVoXDTMzMDIx NzIyMDkyMVowFDESMBAGA1UEAwwJSkZfc2VydmVyMIIBIjANBgkqhkiG9w0BAQEF AAOCAQ8AMIIBCgKCAQEAnLdVAj0W31TtWGxwdBeqsdIHyUdVAEG8bX+CcNZDP3M3 R/gJOmenjqsqHYBe5gZcky1hkqWaD7l/LNmyzZDZ1lVEWpcAZqxbsUZKiHU30bxq 84L5qtaAOpwTsumidq2hBqoDBMdBmh18e0QEW624mui7ckXTRRG3PA0ccXtXcTYU ntmhYtQ2oaPauSmfJZIUfZTfVZbB8FkCgu+zJtCx5hq46vIHm8KX0m1zLIeUtGsI hkly+5v52f3sEMlddyoZZkfjRddETk2co09q3oNaP1LYxN5G+TvZDhpdE+PrDsNT wO4uU2d9hVIP3T49heLieZ6KVxyp1FsDYzo0CNlIDwIDAQABo4GOMIGLMB0GA1Ud DgQWBBSKeJDl8FDnjHXkuMCh6OmbshqdMjBPBgNVHSMESDBGgBSKeJDl8FDnjHXk uMCh6OmbshqdMqEYpBYwFDESMBAGA1UEAwwJSkZfc2VydmVyghRd7fuTPbKqDIvb Fd+9oZHOXPvLBjAMBgNVHRMEBTADAQH/MAsGA1UdDwQEAwIBBjANBgkqhkiG9w0B AQsFAAOCAQEARIg2x4Tit/6ZydMlle6ku32t75OMCVQoe7fUkRjNe8pCkZjZXLy9 QIRwoqW3FRT8+mQjctZk3NsyLStF8Rc/fFvpjGY/hiEQ/RV1K2/IZ9hcswp/LRzQ ElDwXhe4zlcDT10GjHYYx221SR+ijgicZcaXgb9f3uZKIrPgyb8qB4KCQS8gPtCV 1VmPM5/svVCI93G+xT92XBHa47fgV5GEn7Snah2UgFol5h7/KX/Sa2q0pfBlzqmt CutfEbYcwSxkoLsEUIW8KMoEAIsO+KIsraS6EXlRdT82Ui+UZWVPZABlzifCl+AV LzBrLwt2OeoEI1h65EyzzE7gDsjrE3JR/Q== -----END CERTIFICATE----- Certificate: Data: Version: 3 (0x2) Serial Number: b7:43:9e:5a:80:04:ad:6f:3c:d2:82:9f:99:b4:55:0c Signature Algorithm: sha512WithRSAEncryption Issuer: CN=JF_server Validity Not Before: May 26 19:26:08 2025 GMT Not After : May 19 19:26:08 2055 GMT Subject: CN=jf Subject Public Key Info: Public Key Algorithm: id-ecPublicKey Public-Key: (384 bit) pub: 04:cb:cf:fb:cd:5a:b5:1c:e2:f6:1c:35:36:e4:6b: 29:06:48:0f:aa:e9:5b:2e:e3:f7:ca:5d:f4:01:97: 8c:09:fc:cb:5c:b9:96:3f:44:0b:7b:6b:6f:39:f3: 62:92:43:8d:31:15:ca:b3:80:f5:c3:1a:7b:7e:de: ac:ba:5c:9f:26:f4:1c:d6:91:d0:59:4a:b2:5e:dc: dc:94:0a:9d:24:29:b0:42:26:57:93:5e:e9:02:44: ca:60:aa:86:99:2d:d1 ASN1 OID: secp384r1 NIST CURVE: P-384 X509v3 extensions: X509v3 Basic Constraints: CA:FALSE X509v3 Subject Key Identifier: D9:70:4D:CC:BF:72:8F:F4:6D:DD:20:85:2C:19:3B:6F:1E:97:EC:88 X509v3 Authority Key Identifier: keyid:8A:78:90:E5:F0:50:E7:8C:75:E4:B8:C0:A1:E8:E9:9B:B2:1A:9D:32 DirName:/CN=JF_server serial:5D:ED:FB:93:3D:B2:AA:0C:8B:DB:15:DF:BD:A1:91:CE:5C:FB:CB:06 X509v3 Extended Key Usage: TLS Web Client Authentication X509v3 Key Usage: Digital Signature Signature Algorithm: sha512WithRSAEncryption Signature Value: 8e:56:20:a2:64:1f:bb:3c:fc:f4:4d:6a:30:f7:90:c0:84:03: 00:a1:d7:f4:57:93:b0:a2:78:fc:79:f4:29:46:22:79:f1:90: 80:e9:65:6d:c8:c7:54:c3:4f:38:fc:c4:b5:df:b5:7f:fd:20: 95:a3:be:d7:7c:89:58:a8:f0:84:b7:d4:17:4d:81:1c:fa:30: bb:e7:6e:ce:1e:4c:da:5f:d4:ff:66:1e:c3:e5:cb:42:5e:dd: 02:a8:95:af:81:62:dd:9a:a1:48:1c:f1:1d:ae:4e:07:78:9d: e0:5e:6b:2c:92:27:2a:53:3f:c3:eb:cb:62:24:f9:43:05:0f: 25:14:6f:2f:3f:ee:92:47:29:84:a4:76:c1:fb:c6:35:a6:eb: cb:2b:a3:bc:1e:85:33:c3:0e:7e:5e:45:32:24:61:83:64:aa: 6b:23:a6:43:54:b6:6e:85:1c:14:09:f3:09:94:e9:af:49:5f: 86:99:93:de:e7:63:f7:30:a9:d6:74:7e:40:0c:6c:4d:51:f1: ff:a0:41:b6:6f:db:1b:f2:03:36:22:7c:94:c5:b2:30:0d:66: 00:4e:0d:09:50:3e:02:8b:38:a5:30:e6:1b:76:29:58:2b:f9: 5e:b1:99:55:78:9e:65:93:fa:54:72:48:f4:3b:92:d2:c0:07: 68:01:bc:b1 -----BEGIN CERTIFICATE----- MIICoTCCAYmgAwIBAgIRALdDnlqABK1vPNKCn5m0VQwwDQYJKoZIhvcNAQENBQAw FDESMBAGA1UEAwwJSkZfc2VydmVyMCAXDTI1MDUyNjE5MjYwOFoYDzIwNTUwNTE5 MTkyNjA4WjANMQswCQYDVQQDDAJqZjB2MBAGByqGSM49AgEGBSuBBAAiA2IABMvP +81atRzi9hw1NuRrKQZID6rpWy7j98pd9AGXjAn8y1y5lj9EC3trbznzYpJDjTEV yrOA9cMae37erLpcnyb0HNaR0FlKsl7c3JQKnSQpsEImV5Ne6QJEymCqhpkt0aOB oDCBnTAJBgNVHRMEAjAAMB0GA1UdDgQWBBTZcE3Mv3KP9G3dIIUsGTtvHpfsiDBP BgNVHSMESDBGgBSKeJDl8FDnjHXkuMCh6OmbshqdMqEYpBYwFDESMBAGA1UEAwwJ SkZfc2VydmVyghRd7fuTPbKqDIvbFd+9oZHOXPvLBjATBgNVHSUEDDAKBggrBgEF BQcDAjALBgNVHQ8EBAMCB4AwDQYJKoZIhvcNAQENBQADggEBAI5WIKJkH7s8/PRN ajD3kMCEAwCh1/RXk7CiePx59ClGInnxkIDpZW3Ix1TDTzj8xLXftX/9IJWjvtd8 iVio8IS31BdNgRz6MLvnbs4eTNpf1P9mHsPly0Je3QKola+BYt2aoUgc8R2uTgd4 neBeayySJypTP8Pry2Ik+UMFDyUUby8/7pJHKYSkdsH7xjWm68sro7wehTPDDn5e RTIkYYNkqmsjpkNUtm6FHBQJ8wmU6a9JX4aZk97nY/cwqdZ0fkAMbE1R8f+gQbZv 2xvyAzYifJTFsjANZgBODQlQPgKLOKUw5ht2KVgr+V6xmVV4nmWT+lRySPQ7ktLA B2gBvLE= -----END CERTIFICATE----- -----BEGIN PRIVATE KEY----- MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDDgu9X2O9NIi4drCkTl INFnFPYQSJ10JliFqGNM37UW4U2v5A93isSNU2YXyGgZnSWhZANiAATLz/vNWrUc 4vYcNTbkaykGSA+q6Vsu4/fKXfQBl4wJ/MtcuZY/RAt7a28582KSQ40xFcqzgPXD Gnt+3qy6XJ8m9BzWkdBZSrJe3NyUCp0kKbBCJleTXukCRMpgqoaZLdE= -----END PRIVATE KEY----- # # 2048 bit OpenVPN static key # -----BEGIN OpenVPN Static key V1----- 4c828cbf0e58f927758e9471c1b6f03b 2e77b2c634bad76df0570dd8f47184d6 3921e25c6e6cbe4af4b64aad89d12425 a9fca69ae08802b5ed583632c26678b0 cc28c481c3831d1b2204dc30cd466395 ccb8cd82cd2259c956b510c9a56e842a 8693c44dca462f0ab7be3856abe9bbe1 95a6ffd3b0237225b9497c7a0df05ad8 2f2e0a8bff97c927d2890906d0105947 fa3430fc779583772382534fb880add6 8d5592fa4ff384d3e96c560019b5835f 095da9b2fb33dbfbc1ffce9560908271 ee96e02ccecc9d51b9dda79a77704a1d 4407d7c805e6950854fe232adee02a12 b09af2d9bfe04868a9e2e942dc64eb81 9e062ab9f781e52d263195a58db72ebe -----END OpenVPN Static key V1-----