270 lines
9.4 KiB
Plaintext
270 lines
9.4 KiB
Plaintext
##############################################
|
|
# 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 .
|
|
<ca>
|
|
-----BEGIN CERTIFICATE-----
|
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En7Snah2UgFol5h7/KX/Sa2q0pfBlzqmt
|
|
CutfEbYcwSxkoLsEUIW8KMoEAIsO+KIsraS6EXlRdT82Ui+UZWVPZABlzifCl+AV
|
|
LzBrLwt2OeoEI1h65EyzzE7gDsjrE3JR/Q==
|
|
-----END CERTIFICATE-----
|
|
</ca>
|
|
<cert>
|
|
Certificate:
|
|
Data:
|
|
Version: 3 (0x2)
|
|
Serial Number:
|
|
b1:a6:3d:e9:86:99:a3:9a:13:71:db:4b:3e:64:97:1e
|
|
Signature Algorithm: sha512WithRSAEncryption
|
|
Issuer: CN=JF_server
|
|
Validity
|
|
Not Before: May 13 19:49:03 2025 GMT
|
|
Not After : Mar 22 19:49:03 2035 GMT
|
|
Subject: CN=ka2501
|
|
Subject Public Key Info:
|
|
Public Key Algorithm: id-ecPublicKey
|
|
Public-Key: (384 bit)
|
|
pub:
|
|
04:d0:ce:53:7c:45:90:12:64:5a:74:2b:51:32:0e:
|
|
58:dc:c0:71:82:2d:ba:4a:75:93:b5:57:f1:9a:54:
|
|
b5:79:3b:67:01:e3:8a:9f:fa:20:82:fc:74:b0:ba:
|
|
de:71:75:8d:d4:a6:cd:59:b9:46:40:bd:08:fc:c4:
|
|
e3:53:26:57:7f:11:f1:f8:d8:7e:0a:45:1d:f4:23:
|
|
d9:25:9b:7c:ac:63:d4:7a:b0:27:80:cb:20:e5:2f:
|
|
e4:fb:21:2f:56:12:4f
|
|
ASN1 OID: secp384r1
|
|
NIST CURVE: P-384
|
|
X509v3 extensions:
|
|
X509v3 Basic Constraints:
|
|
CA:FALSE
|
|
X509v3 Subject Key Identifier:
|
|
52:EC:0F:6C:38:BD:9A:F2:07:76:03:02:5C:A2:5D:E9:45:51:77:D0
|
|
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:
|
|
69:06:93:7e:7c:88:68:5b:3a:b9:7c:3c:d2:ae:43:5e:5f:aa:
|
|
cf:9b:f9:8e:58:ff:93:3d:5f:07:d4:26:c4:c0:18:a9:46:88:
|
|
1e:8d:75:32:f7:58:ea:e5:b0:39:40:e9:a0:fc:a6:a2:19:20:
|
|
e2:dd:88:3a:4c:4c:ba:00:a0:77:da:99:41:0c:49:e1:ef:07:
|
|
4c:69:52:80:9e:e0:bc:44:a8:e8:03:45:91:94:d5:b3:90:66:
|
|
67:09:55:8d:20:cf:8f:df:c0:8e:54:17:db:6a:9d:b3:a3:ce:
|
|
b9:38:c5:86:72:46:87:b8:86:c7:ca:36:75:49:01:81:07:da:
|
|
7b:6d:92:89:73:88:c7:51:36:e1:78:65:be:b5:45:51:b8:04:
|
|
a7:1c:88:03:ba:48:4f:e3:b9:eb:e2:4c:0a:5f:1c:57:3b:f6:
|
|
c7:e9:ba:c7:c3:b0:2c:a7:b2:19:e0:9f:ff:c4:c3:66:03:65:
|
|
44:10:37:48:96:80:4a:95:ea:2e:31:57:64:eb:ad:85:ab:09:
|
|
1d:87:a7:0d:0f:99:69:8d:9e:ee:d8:9a:7a:2d:3d:a1:f9:61:
|
|
90:cc:ba:c4:eb:f8:e5:c8:fc:b0:11:b6:d6:3a:d9:ee:2d:fb:
|
|
0e:98:0a:71:51:89:c3:97:34:35:00:8f:77:0f:91:15:39:52:
|
|
8f:72:4f:7d
|
|
-----BEGIN CERTIFICATE-----
|
|
MIICozCCAYugAwIBAgIRALGmPemGmaOaE3HbSz5klx4wDQYJKoZIhvcNAQENBQAw
|
|
FDESMBAGA1UEAwwJSkZfc2VydmVyMB4XDTI1MDUxMzE5NDkwM1oXDTM1MDMyMjE5
|
|
NDkwM1owETEPMA0GA1U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2cB44qf+iCC/HSwut5xdY3Ups1ZuUZA
|
|
vQj8xONTJld/EfH42H4KRR30I9klm3ysY9R6sCeAyyDlL+T7IS9WEk8=
|
|
-----END PRIVATE KEY-----
|
|
</key>
|
|
<tls-crypt>
|
|
#
|
|
# 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-----
|
|
</tls-crypt>
|