Answer the question
In order to leave comments, you need to log in
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.*
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
Answer the question
In order to leave comments, you need to log in
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"
server 192.0.0.0 255.255.0.0
to some 10.10.10.0 255.255.0.0
. The specified one is Internet routable, i.e. is not local.
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
server 18.10.75.0 255.255.255.0but 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 questionAsk a Question
731 491 924 answers to any question