270 lines
9.5 KiB
Plaintext
270 lines
9.5 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:
|
|
66:08:5b:1b:f8:f4:1a:91:25:8d:57:e4:d1:eb:c9:02
|
|
Signature Algorithm: sha512WithRSAEncryption
|
|
Issuer: CN=JF_server
|
|
Validity
|
|
Not Before: May 26 19:53:27 2025 GMT
|
|
Not After : May 19 19:53:27 2055 GMT
|
|
Subject: CN=stationKA2401
|
|
Subject Public Key Info:
|
|
Public Key Algorithm: id-ecPublicKey
|
|
Public-Key: (384 bit)
|
|
pub:
|
|
04:82:a2:c4:54:2e:5f:18:b0:09:38:2e:88:52:6e:
|
|
23:10:f1:a3:d1:12:8c:33:e6:24:00:e8:03:18:12:
|
|
ff:11:d3:fb:38:7c:e7:85:12:94:11:ad:d4:41:67:
|
|
97:29:8e:07:fb:b6:b9:b2:80:ca:cc:d5:14:4d:a3:
|
|
2e:55:29:60:8a:9f:7d:50:a4:21:dc:e2:17:05:5c:
|
|
ca:c6:5d:8f:c4:a2:99:e2:2b:18:a7:69:a4:e4:26:
|
|
11:1c:f5:0e:a1:5e:a5
|
|
ASN1 OID: secp384r1
|
|
NIST CURVE: P-384
|
|
X509v3 extensions:
|
|
X509v3 Basic Constraints:
|
|
CA:FALSE
|
|
X509v3 Subject Key Identifier:
|
|
43:48:E4:77:19:BA:6E:C7:4A:98:98:A5:05:8B:DB:19:62:8B:47:33
|
|
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:
|
|
66:0e:a7:15:99:98:0b:a7:bf:be:fa:c5:c6:c9:6e:d4:d0:18:
|
|
84:fd:ef:bc:33:98:db:8e:56:44:25:c9:7e:7d:d9:1b:00:95:
|
|
39:59:36:2e:b0:d1:2e:8f:cf:c8:c4:0e:47:7f:c9:21:01:18:
|
|
7f:8b:5a:16:30:97:c3:a3:bb:70:54:58:e2:55:97:71:e0:f7:
|
|
b3:47:bb:88:11:30:a4:b9:41:65:2b:b5:d7:1b:df:5e:df:66:
|
|
33:32:52:a7:92:83:2e:87:57:11:65:52:28:f5:16:06:92:ec:
|
|
39:24:20:c0:fb:b2:21:30:a6:87:b4:08:b9:7c:32:3c:3b:09:
|
|
36:2d:9c:e8:8b:47:f3:d8:58:10:44:b0:10:f4:dc:e1:d5:e7:
|
|
e6:7b:c6:51:0b:de:fc:ef:aa:d7:ee:3b:ec:55:11:2b:43:52:
|
|
24:4e:b4:56:0d:cf:25:33:05:67:ad:0a:3e:b4:b2:55:db:b9:
|
|
43:bf:24:87:8e:02:8e:50:7e:6a:35:ef:fb:89:b9:16:1f:6f:
|
|
c0:46:6a:7f:6c:8a:ea:94:2d:a5:62:04:f9:ee:fe:31:51:d9:
|
|
73:f9:b8:5c:83:3a:46:00:fa:4f:e7:44:e3:60:da:c8:cc:cd:
|
|
6b:18:55:27:6e:c9:38:e7:3b:7d:c8:a3:67:13:08:6a:67:18:
|
|
92:7d:7e:c9
|
|
-----BEGIN CERTIFICATE-----
|
|
MIICqzCCAZOgAwIBAgIQZghbG/j0GpEljVfk0evJAjANBgkqhkiG9w0BAQ0FADAU
|
|
MRIwEAYDVQQDDAlKRl9zZXJ2ZXIwIBcNMjUwNTI2MTk1MzI3WhgPMjA1NTA1MTkx
|
|
OTUzMjdaMBgxFj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6AMYEv8R0/s4fOeFEpQRrdRBZ5cpjgf7trmygMrM
|
|
1RRNoy5VKWCKn31QpCHc4hcFXMrGXY/EopniKxinaaTkJhEc9Q6hXqU=
|
|
-----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>
|