269 lines
9.4 KiB
Plaintext
269 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 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-----
|
|
MIIDRTCCAi2gAwIBAgI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2q0pfBlzqmt
|
|
CutfEbYcwSxkoLsEUIW8KMoEAIsO+KIsraS6EXlRdT82Ui+UZWVPZABlzifCl+AV
|
|
LzBrLwt2OeoEI1h65EyzzE7gDsjrE3JR/Q==
|
|
-----END CERTIFICATE-----
|
|
</ca>
|
|
<cert>
|
|
Certificate:
|
|
Data:
|
|
Version: 3 (0x2)
|
|
Serial Number:
|
|
22:7a:b3:cb:88:05:00:8c:df:af:02:be:af:63:f9:59
|
|
Signature Algorithm: sha256WithRSAEncryption
|
|
Issuer: CN=JF_server
|
|
Validity
|
|
Not Before: Feb 20 22:37:46 2023 GMT
|
|
Not After : May 25 22:37:46 2025 GMT
|
|
Subject: CN=jf
|
|
Subject Public Key Info:
|
|
Public Key Algorithm: id-ecPublicKey
|
|
Public-Key: (384 bit)
|
|
pub:
|
|
04:8d:38:ea:4f:29:bd:83:a9:33:a3:1c:33:8a:60:
|
|
8f:fa:19:81:00:73:44:81:98:1e:76:05:ee:f6:46:
|
|
d5:25:a8:c5:3b:bd:d6:fa:cf:c6:79:e0:b4:42:27:
|
|
80:e2:96:2d:30:50:c2:f6:9c:2c:13:f8:b9:46:b3:
|
|
0d:96:6c:9b:d2:45:15:a3:f0:4c:bc:6b:51:45:f8:
|
|
cb:59:04:b1:d0:47:b9:90:06:71:c7:eb:34:32:e2:
|
|
72:14:84:94:58:e3:34
|
|
ASN1 OID: secp384r1
|
|
NIST CURVE: P-384
|
|
X509v3 extensions:
|
|
X509v3 Basic Constraints:
|
|
CA:FALSE
|
|
X509v3 Subject Key Identifier:
|
|
C5:CE:72:8F:A3:8E:13:57:DD:0E:02:A1:24:F1:56:C3:AE:2F:65:8F
|
|
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:
|
|
3b:e8:1a:3e:ac:17:17:49:7c:4d:73:55:39:e9:1b:e4:d6:7f:
|
|
6d:6d:43:6c:e2:79:41:f4:26:a4:2d:18:59:24:a0:b1:e0:db:
|
|
03:07:f9:fb:24:f6:be:ed:8c:31:3e:c7:bb:74:b6:87:ba:43:
|
|
fc:d6:fb:2f:9f:1c:eb:d1:27:ad:60:eb:ab:87:c7:46:fe:22:
|
|
75:c1:bb:fb:23:ad:ba:1d:ab:41:45:29:d6:c4:89:99:94:40:
|
|
06:c7:3a:08:fe:d3:b5:f4:e7:52:57:aa:d1:a8:ec:74:e6:c9:
|
|
ec:9e:80:e0:ba:92:92:95:55:2e:d7:b2:d8:09:ee:72:fd:12:
|
|
ac:0a:0d:dc:ba:ac:4e:34:8c:37:19:76:60:7c:bd:ba:99:b7:
|
|
e5:47:c3:4b:67:2f:a9:5c:89:95:70:2d:2c:97:45:04:64:15:
|
|
47:04:d1:48:7d:d8:40:63:6c:05:8b:dc:ed:0f:a3:ae:3a:e8:
|
|
6f:49:34:54:de:99:4b:aa:28:6d:c9:3d:db:43:60:14:40:d5:
|
|
09:87:a8:b2:88:11:4c:8c:00:71:b1:38:25:91:5f:2f:93:7b:
|
|
42:64:38:db:d2:59:48:e8:ed:2e:92:69:4e:d4:2a:3b:e3:03:
|
|
94:2c:fc:ac:bc:ff:a9:b4:1e:ca:d3:d2:b5:fd:bf:33:bd:55:
|
|
12:75:db:f1
|
|
-----BEGIN CERTIFICATE-----
|
|
MIICnjCCAYagAwIBAgIQInqzy4gFAIzfrwK+r2P5WTANBgkqhkiG9w0BAQsFADAU
|
|
MRIwEAYDVQQDDAlKRl9zZXJ2ZXIwHhcNMjMwMjIwMjIzNzQ2WhcNMjUwNTI1MjIz
|
|
NzQ2WjANMQswCQYDVQQDDAJqZjB2MBAGByqG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sw2WbJvSRRWj8Ey8a1FF+MtZBLHQR7mQBnHH6zQy4nIUhJRY4zQ=
|
|
-----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>
|