N
N
Nazz122016-08-11 18:38:56
openvpn
Nazz12, 2016-08-11 18:38:56

How to setup network routes in openvpn on windows server 2012r2?

Good day friends! I ran into a problem, you need to correctly configure the OpenVPN server under wndows server 2012r2
I set up the server, the client connects, but there is no further sense, poking around on the Internet, I realized that the server itself was not configured correctly, or rather, I did not register the routes. My goal is the following, there is a locale

192.168.6.*

it needs to be seen by the VPN client
here is my config, help me figure it out
port ****
proto udp
dev tun
dev-node "fs1"
dh C:\\OpenVPN\\ssl\\dh1024.pem
ca C:\\OpenVPN\\ssl\\ca.crt
cert C:\\OpenVPN\ \ssl\\OpenVPN.crt
key C:\\OpenVPN\\ssl\\OpenVPN.key
server 192.0.0.0 255.255.0.0
cipher DES-CBC
status C:\\OpenVPN\\log\\openvpn-status.log
log C :\\OpenVPN\\log\\openvpn.log
verb 2
mute 20
max-clients 100
keepalive 10 120
client-to-client
comp-lzo
persist-key
persist-tun

Thanks in advance...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mureevms, 2016-08-11
@mureevms

You don't push the subnet for the client. On Linux, these lines look like this (correct the syntax for Windows):

# Пушить (передавать клиенту) DNS сервер
push "dhcp-option DNS 192.168.6.1"
# Пушить название домена, если надо
push "dhcp-option DOMAIN mydomain.com"
# Пушить маршрут локальной подсети. Для того, чтобы у клиентов был доступ до нее
push "route 192.168.6.0 255.255.255.0"

And change the line server 192.0.0.0 255.255.0.0to some 10.10.10.0 255.255.0.0. The specified one is Internet routable, i.e. is not local.

N
Nazz12, 2016-08-11
@Nazz12

mureevms
I entered all this into the config, even packets went on the server side, but there was no result

port ****
proto udp
dev tun
dev-node "fs1"
dh C:\\OpenVPN\\ssl\\dh1024.pem
ca C:\\OpenVPN\\ssl\\ca.crt
cert C:\\OpenVPN\ \ssl\\OpenVPN.crt
key C:\\OpenVPN\\ssl\\OpenVPN.key
server 192.168.15.0 255.255.255.0
route 192.168.6.0 255.255.255.0
dhcp-option DNS 192.168.6.1
cipher DES-CBC
status C:\ \OpenVPN\\log\\openvpn-status.log
log C:\\OpenVPN\\log\\openvpn.log
verb 2
mute 20
max-clients 100
keepalive 10 120
client-to-client
comp-lzo
persist-key
persist- tun

replaced by
server 18.10.75.0 255.255.255.0
but this did not solve the problem (I'm new to building VPN networks ....... sorry if that

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question