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:
|
|
a0:65:06:68:4e:1a:21:72:f5:55:6e:0b:26:36:b3:a1
|
|
Signature Algorithm: sha256WithRSAEncryption
|
|
Issuer: CN=JF_server
|
|
Validity
|
|
Not Before: Aug 4 21:00:19 2026 GMT
|
|
Not After : Nov 6 21:00:19 2028 GMT
|
|
Subject: CN=stationKA2601
|
|
Subject Public Key Info:
|
|
Public Key Algorithm: id-ecPublicKey
|
|
Public-Key: (384 bit)
|
|
pub:
|
|
04:95:3d:51:99:57:c0:6a:cd:00:2c:cc:52:fb:26:
|
|
f6:3e:d8:5d:36:8b:b2:38:b0:d3:ef:a5:5b:57:49:
|
|
74:71:7f:de:e6:d8:61:06:8d:3b:b6:30:e2:39:11:
|
|
50:de:19:10:af:ca:9e:2d:a0:ee:89:a1:10:a5:a9:
|
|
e2:54:d0:32:f3:76:97:67:5d:55:38:dd:1f:63:19:
|
|
7d:6c:9f:88:8f:e7:56:d3:5f:13:e0:2f:a8:e3:77:
|
|
91:7d:b6:0c:4b:94:96
|
|
ASN1 OID: secp384r1
|
|
NIST CURVE: P-384
|
|
X509v3 extensions:
|
|
X509v3 Basic Constraints:
|
|
CA:FALSE
|
|
X509v3 Subject Key Identifier:
|
|
E8:D2:A6:98:0C:E5:D4:A7:46:BF:DA:05:91:E0:AF:81:AC:41:AA:CD
|
|
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: sha256WithRSAEncryption
|
|
Signature Value:
|
|
54:b9:c7:5c:fa:80:f8:84:8b:41:21:73:1c:9f:2a:75:df:17:
|
|
f2:30:67:25:3c:69:3e:70:be:d3:09:41:d7:06:28:ba:ea:45:
|
|
55:01:cc:8a:a6:92:d9:b6:7a:7b:66:e1:aa:3d:ae:30:f0:f0:
|
|
db:ef:8c:fd:31:87:a2:a7:3b:bf:0e:ce:91:ca:38:ab:23:47:
|
|
98:6e:13:54:5a:7e:2a:41:5d:e3:5b:73:aa:27:91:e8:a6:20:
|
|
27:37:15:15:ac:d2:44:df:14:7f:a6:f3:a2:96:28:ca:ea:00:
|
|
b2:af:9b:5d:49:8f:97:d4:11:b2:7e:98:ee:4d:a5:4f:2b:24:
|
|
2f:90:38:e5:60:0c:86:41:34:80:8a:5b:bb:af:5c:46:0a:c1:
|
|
6e:ff:68:6c:f9:6f:0f:01:ca:e3:d3:47:20:f8:b8:46:3f:9d:
|
|
9a:e2:01:b9:af:39:2f:3f:41:16:6a:62:0f:f7:17:02:5d:bb:
|
|
e4:83:97:c5:4c:f8:dc:27:ba:88:65:95:24:3a:63:c8:8b:1d:
|
|
7c:21:3d:be:7a:28:bb:cb:e3:db:8c:f7:b7:d9:95:ae:9b:e6:
|
|
cc:f0:fb:73:28:c6:69:34:41:30:0a:82:a9:ae:4a:a6:22:ca:
|
|
a3:00:0b:cd:25:09:6b:b4:19:a1:75:8d:9d:fe:de:c4:54:0a:
|
|
4b:36:94:12
|
|
-----BEGIN CERTIFICATE-----
|
|
MIICqjCCAZKgAwIBAgIRAKBlBmhOGiFy9VVuCyY2s6EwDQYJKoZIhvcNAQELBQAw
|
|
FDESMBAGA1UEAwwJSkZfc2VydmVyMB4XDTI2MDgwNDIxMDAxOVoXDTI4MTEwNjIx
|
|
MDAx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XSXRxf97m2GEGjTu2MOI5EVDeGRCvyp4toO6J
|
|
oRClqeJU0DLzdpdnXVU43R9jGX1sn4iP51bTXxPgL6jjd5F9tgxLlJY=
|
|
-----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>
|