Page 1 of 1

Two server configurations hosted on Windows server

Posted: Tue Jul 09, 2019 9:06 am
by desdes
Good day. How to start the service openvpn with two server configurations hosted on Windows server :?:

Re: Two server configurations hosted on Windows server

Posted: Tue Jul 09, 2019 9:40 am
by imjebran
Hi,

What do you mean by two server configurations? A single configuration could work with all of your Windows servers, you just have to mention different DHCP options (if required).

Do you need a simple configuration?

Regards,
Jebran.

Re: Two server configurations hosted on Windows server

Posted: Tue Jul 09, 2019 10:18 am
by desdes
yes. if possible, the configuration for server_tun.ovpn and server_tap.povpn will be located on the Windows server and run simultaneously.

Re: Two server configurations hosted on Windows server

Posted: Tue Jul 09, 2019 1:15 pm
by imjebran
This is openvpn with TUN and UDP protocol simple config file.

Code: Select all

 tls-server
port 1194
proto udp
dev tun
;local 10.0.10.1 # Or your desired IP address
topology subnet
client-cert-not-required
username-as-common-name
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key"  # This file should be kept secret
dh "C:\\Program Files\\OpenVPN\\config\\dh1024.pem"
server 10.10.10.0 255.255.255.0
push "redirect-gateway def1"
cipher AES-256-CBC
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 8.8.4.4"
duplicate-cn
keepalive 10 120
tls-auth keyfile.key 0 # This file is secret
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log-append  openvpn.log
verb 3
management 0.0.0.0 7505
mute 20
route-method exe
script-security 3
auth-user-pass-verify