OpenVPN is not working under Windows
Posted: Tue Aug 13, 2013 1:08 pm
Hi,
I have set up OpenVPN server under Debian. When Windows user tries to log in, he gets an error:
Tue Aug X XX:XX:56 201X There is a problem in your selection of --ifconfig endpoints [local=10.10.5.24, remote=10.10.5.1]. The local and remote VPN endpoints must exist within the same 255.255.255.252 subnet. This is a limitation of --dev tun when used with the TAP-WIN32 driver. Try 'openvpn --show-valid-subnets' option for more info.
Here is the server's config file:
port 443
proto tcp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh4096.pem
tls-auth /etc/openvpn/keys/ta.key 0
crl-verify /etc/openvpn/keys/crl.pem
server 10.10.5.0 255.255.255.0
persist-key
persist-tun
ifconfig-pool-persist /etc/openvpn/ipp.txt
push "route 10.10.5.0 255.255.255.0"
push "route-gateway 10.10.5.1"
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
persist-key
persist-tun
mtu-disc maybe
user nobody
group nogroup
client-config-dir /etc/openvpn/ccd
comp-lzo yes
push "comp-lzo yes"
keepalive 10 120
verb 1
status /var/log/openvpn/status.log
log /var/log/openvpn/openvpn.log
log-append /var/log/openvpn/openvpn.log
Here is the OVPN client file for Windows client. User is running OpenVPN as admin:
client
dev tun
remote XX.XXX.XXX.XXX 443
proto tcp
mute-replay-warnings
ca ca.crt
cert user.crt
key user.key
tls-auth ta.key 1
remote-cert-tls server
persist-key
persist-tun
comp-lzo
ping 10
ping-restart 60
verb 0
route-method exe
route-delay
Any idea what could be wrong? It works under Linux, Android and Mac OS perfectly.
I have set up OpenVPN server under Debian. When Windows user tries to log in, he gets an error:
Tue Aug X XX:XX:56 201X There is a problem in your selection of --ifconfig endpoints [local=10.10.5.24, remote=10.10.5.1]. The local and remote VPN endpoints must exist within the same 255.255.255.252 subnet. This is a limitation of --dev tun when used with the TAP-WIN32 driver. Try 'openvpn --show-valid-subnets' option for more info.
Here is the server's config file:
port 443
proto tcp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh4096.pem
tls-auth /etc/openvpn/keys/ta.key 0
crl-verify /etc/openvpn/keys/crl.pem
server 10.10.5.0 255.255.255.0
persist-key
persist-tun
ifconfig-pool-persist /etc/openvpn/ipp.txt
push "route 10.10.5.0 255.255.255.0"
push "route-gateway 10.10.5.1"
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
persist-key
persist-tun
mtu-disc maybe
user nobody
group nogroup
client-config-dir /etc/openvpn/ccd
comp-lzo yes
push "comp-lzo yes"
keepalive 10 120
verb 1
status /var/log/openvpn/status.log
log /var/log/openvpn/openvpn.log
log-append /var/log/openvpn/openvpn.log
Here is the OVPN client file for Windows client. User is running OpenVPN as admin:
client
dev tun
remote XX.XXX.XXX.XXX 443
proto tcp
mute-replay-warnings
ca ca.crt
cert user.crt
key user.key
tls-auth ta.key 1
remote-cert-tls server
persist-key
persist-tun
comp-lzo
ping 10
ping-restart 60
verb 0
route-method exe
route-delay
Any idea what could be wrong? It works under Linux, Android and Mac OS perfectly.