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:
|
|
b7:78:f3:d4:2a:58:b2:3b:23:0c:a9:70:43:45:de:fa
|
|
Signature Algorithm: sha512WithRSAEncryption
|
|
Issuer: CN=JF_server
|
|
Validity
|
|
Not Before: May 26 19:26:26 2025 GMT
|
|
Not After : May 19 19:26:26 2055 GMT
|
|
Subject: CN=pascal
|
|
Subject Public Key Info:
|
|
Public Key Algorithm: id-ecPublicKey
|
|
Public-Key: (384 bit)
|
|
pub:
|
|
04:03:0b:f5:f3:3a:02:fb:22:42:b1:5c:ab:74:8f:
|
|
43:78:3a:d0:b1:3d:97:8d:c0:9a:07:11:ee:d3:03:
|
|
22:d3:da:f3:04:a9:c0:bd:8f:ac:41:7d:91:09:07:
|
|
49:fc:1c:32:a5:9a:7d:fd:85:51:01:64:cb:3e:00:
|
|
d6:bc:c0:c8:ed:e9:47:64:5d:24:a4:4f:37:30:b2:
|
|
e8:c8:ed:75:55:87:7c:cb:01:52:ea:ac:a1:21:96:
|
|
06:a7:8f:86:b5:19:52
|
|
ASN1 OID: secp384r1
|
|
NIST CURVE: P-384
|
|
X509v3 extensions:
|
|
X509v3 Basic Constraints:
|
|
CA:FALSE
|
|
X509v3 Subject Key Identifier:
|
|
EC:EE:95:98:8B:6A:1F:DB:AB:49:CB:88:40:65:67:D6:3B:F3:F7:D7
|
|
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:
|
|
4b:18:4a:f9:45:fb:ad:34:73:f2:4d:4f:f1:b9:fd:4a:c7:2a:
|
|
eb:a7:2c:e4:c5:3f:f0:e7:55:d6:d9:61:b9:2f:92:bb:f2:3e:
|
|
49:a8:ad:27:33:88:c1:ca:32:7a:33:4e:53:d0:4e:6f:30:c5:
|
|
59:c2:b7:1b:ef:36:48:06:80:a3:cf:da:b2:d1:46:3e:30:10:
|
|
a4:e8:7a:0d:e0:e0:fe:9d:24:fc:b0:b9:21:64:0b:c0:11:55:
|
|
6f:5e:75:d2:0a:18:15:7b:dd:40:00:a7:1c:bb:f4:90:29:1e:
|
|
6e:b1:3d:8e:14:d0:65:48:12:e6:7e:40:24:f9:72:5a:f4:70:
|
|
df:89:a9:1a:d2:12:21:9d:b0:00:d1:f7:35:20:f4:6e:3a:ad:
|
|
c1:72:29:06:a7:c8:4d:86:3d:a5:b5:a0:f5:9f:1f:44:4c:84:
|
|
ad:69:81:d8:f1:11:62:6f:0f:67:6e:4d:ef:1a:59:0c:6f:b3:
|
|
9d:95:b3:ef:3b:07:54:81:90:15:14:ce:0f:71:2c:b7:f8:39:
|
|
96:11:94:77:db:ce:55:96:c2:4a:cc:fe:c6:38:6e:58:0a:83:
|
|
8a:e6:ab:26:b4:ad:90:78:cc:0a:90:31:6b:66:ce:eb:ea:1d:
|
|
19:71:34:eb:25:61:a2:3f:5d:a0:0b:d3:4e:56:73:b6:14:5a:
|
|
09:0c:1d:1c
|
|
-----BEGIN CERTIFICATE-----
|
|
MIICpTCCAY2gAwIBAgIRALd489QqWLI7IwypcENF3vowDQYJKoZIhvcNAQENBQAw
|
|
FDESMBAGA1UEAwwJSkZfc2VydmVyMCAXDTI1MDUyNjE5MjYyNloYDzIwNTUwNTE5
|
|
MTkyN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PZeNwJoHEe7TAyLT2vMEqcC9j6xBfZEJB0n8HDKlmn39hVEB
|
|
ZMs+ANa8wMjt6UdkXSSkTzcwsujI7XVVh3zLAVLqrKEhlganj4a1GVI=
|
|
-----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>
|