I`m trying to setup an Windows OpenVPN server to share the network behind this server.

On Linux Ive done this several times. However on a Windows server I dont have any luck getting this to work.

I setup the routes and enabled IP forwarding using this registry key:

Value Name: IPEnableRouter
Set the following registry value:
Value Name: IPEnableRouter
Value type: REG_DWORD
Value Data: 1

Rebooted the server afterwards.

From the clients, I can reach the server on both LAN IP and OpenVPN IP. However, I cant access any devices in the LAN subnet.

When I run tracert to an IP (not the servers one) in the LAN subnet, I can see its routed through the OpenVPN server.

Tracing route to over a maximum of 30 hops

1     8 ms     7 ms     7 ms  SBS []
2     *        *        *     Request timed out.
3     *        *        *     Request timed out.

OpenVPN server config:

 port 1195

 proto udp

 dev tun

 dev-node OVPN

 ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
 cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\server.crt"
 key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\server.key"  

 dh "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\dh1024.pem"

 topology subnet


 ifconfig-pool-persist ipp.txt

What am I missing here?

 push "route"
 push "route"
 ;push "route"


 keepalive 10 120



 status openvpn-status.log

 verb 3

Windows can only act as a router if the "Routing and Remote Access" service is running. Can you confirm that this service is started? If it is started, then check if the Windows Firewall is enabled. If it is, disable it and try your tracert again.

Hope this helps

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.