Same .OVPN for Windows and Linux

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
rafael.silva
OpenVpn Newbie
Posts: 1
Joined: Thu Jan 19, 2023 10:52 am

Same .OVPN for Windows and Linux

Post by rafael.silva » Thu Jan 19, 2023 10:59 am

Hi,

Is it possible to make settings in the .OVPN to be recognized by the SO?

Example:

Code: Select all

client
proto udp
explicit-exit-notify
remote SERVER 1194
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
verify-x509-name server name
auth SHA256
auth-user-pass
auth-nocache
cipher AES-128-GCM
tls-client
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
verb 3
reneg-sec 36000
dhcp-option DNS 10.1.0.1

# BEGIN BLOCK ONLY WINDOWS
register-dns
block-outside-dns
# END BLOCK ONLY WINDOWS

# BEGIN BLOCK ONLY LINUX
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
# ENDBLOCK ONLY LINUX
Where each block was executed on th especific OS.

Thanks.

Post Reply