############################################## # 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: 57:8f:49:9e:03:dd:fb:c9:41:7c:9a:36:9f:15:fa:17 Signature Algorithm: sha512WithRSAEncryption Issuer: CN=JF_server Validity Not Before: May 26 19:53:18 2025 GMT Not After : May 19 19:53:18 2055 GMT Subject: CN=remoteclient Subject Public Key Info: Public Key Algorithm: id-ecPublicKey Public-Key: (384 bit) pub: 04:84:9e:4b:e2:5e:3f:95:aa:62:a2:ab:bf:f7:d5: f7:8f:8a:c6:78:9a:e0:bf:d5:de:ff:a1:31:26:12: c3:29:26:cc:16:cf:72:ee:2a:fc:72:52:e0:9b:3e: 0f:bd:16:38:2c:db:43:a0:fe:39:0a:61:fe:62:be: df:3a:e3:9c:f9:32:32:9e:b5:9b:cf:32:45:49:00: ed:7c:0e:44:9c:60:36:96:25:b8:4c:4c:c8:c3:e4: 7b:54:e8:fb:e7:9e:f6 ASN1 OID: secp384r1 NIST CURVE: P-384 X509v3 extensions: X509v3 Basic Constraints: CA:FALSE X509v3 Subject Key Identifier: DE:16:FC:5F:F9:D9:20:5A:ED:F6:62:49:91:1C:BE:D2:38:0D:ED:23 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: 40:83:8d:27:36:cc:75:97:2f:15:56:f2:5c:f2:0b:21:54:db: f5:35:5e:42:92:44:84:b6:c7:b4:0d:4d:8d:8d:5b:d8:31:d2: 43:f3:7b:20:58:13:be:25:02:6e:a4:a2:9a:19:97:1e:35:50: aa:0a:0c:e9:08:d7:2a:cf:3f:3d:ba:0b:0b:fa:36:e0:29:64: 3d:5f:a1:bb:17:12:13:33:cd:27:25:c5:92:e5:76:14:21:b5: 98:4c:33:99:f9:b2:4d:50:b7:5c:d9:dc:19:26:9c:12:19:95: 1c:01:04:4f:fa:b0:5a:ba:84:73:b5:84:86:78:3a:b2:99:38: aa:a0:41:a8:8a:6d:f2:05:ce:8e:6b:f6:95:a8:06:f0:92:d7: 6b:1f:91:62:58:31:2f:0f:38:e1:67:f7:e0:62:35:c8:e8:12: 10:69:c7:08:5b:be:71:7e:c7:69:4e:0e:16:8b:7a:03:73:09: d6:ed:ac:98:e5:4b:97:09:ce:d4:c9:78:53:03:8a:b5:da:60: dc:e5:3d:9e:39:09:4f:6d:3d:55:6e:33:79:e7:dc:55:33:14: e3:99:4d:4e:b3:67:7b:e5:6d:c4:d4:dd:81:85:36:e2:ed:b8: d8:ea:90:a8:29:c8:04:6f:ed:a0:6b:50:ea:d4:3e:20:d9:de: fe:db:79:a4 -----BEGIN CERTIFICATE----- MIICqjCCAZKgAwIBAgIQV49JngPd+8lBfJo2nxX6FzANBgkqhkiG9w0BAQ0FADAU MRIwEAYDVQQDDAlKRl9zZXJ2ZXIwIBcNMjUwNTI2MTk1MzE4WhgPMjA1NTA1MTkx OTUzMThaMBcxFTATBgNVBAMMDHJlbW90ZWNsaWVudDB2MBAGByqGSM49AgEGBSuB BAAiA2IABISeS+JeP5WqYqKrv/fV94+Kxnia4L/V3v+hMSYSwykmzBbPcu4q/HJS 4Js+D70WOCzbQ6D+OQph/mK+3zrjnPkyMp61m88yRUkA7XwORJxgNpYluExMyMPk e1To++ee9qOBoDCBnTAJBgNVHRMEAjAAMB0GA1UdDgQWBBTeFvxf+dkgWu32YkmR HL7SOA3tIzBPBgNVHSMESDBGgBSKeJDl8FDnjHXkuMCh6OmbshqdMqEYpBYwFDES MBAGA1UEAwwJSkZfc2VydmVyghRd7fuTPbKqDIvbFd+9oZHOXPvLBjATBgNVHSUE DDAKBggrBgEFBQcDAjALBgNVHQ8EBAMCB4AwDQYJKoZIhvcNAQENBQADggEBAECD jSc2zHWXLxVW8lzyCyFU2/U1XkKSRIS2x7QNTY2NW9gx0kPzeyBYE74lAm6kopoZ lx41UKoKDOkI1yrPPz26Cwv6NuApZD1fobsXEhMzzSclxZLldhQhtZhMM5n5sk1Q t1zZ3BkmnBIZlRwBBE/6sFq6hHO1hIZ4OrKZOKqgQaiKbfIFzo5r9pWoBvCS12sf kWJYMS8POOFn9+BiNcjoEhBpxwhbvnF+x2lODhaLegNzCdbtrJjlS5cJztTJeFMD irXaYNzlPZ45CU9tPVVuM3nn3FUzFOOZTU6zZ3vlbcTU3YGFNuLtuNjqkKgpyARv 7aBrUOrUPiDZ3v7beaQ= -----END CERTIFICATE----- -----BEGIN PRIVATE KEY----- MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDA1iZlXa1lnVT6M75dK rcHt/NYGD8M7yhDKvxPBKX6jPBm/dhcHiYiGrxB4gLDs5MihZANiAASEnkviXj+V qmKiq7/31fePisZ4muC/1d7/oTEmEsMpJswWz3LuKvxyUuCbPg+9Fjgs20Og/jkK Yf5ivt8645z5MjKetZvPMkVJAO18DkScYDaWJbhMTMjD5HtU6PvnnvY= -----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-----