I'm trying to install a VPN between my laptop and my network at home, and all my computers (except my AsusTor NAS) use Windows 10 (I know it would be easier with Linux but I've got no choice). So far, I can communicate with the Windows machine where the OpenVPN server is, but I can't reach my other computers.

Here are my network plan, and my ovpn config files:

  • server.ovpn

    port 1194
    proto udp
    dev tun
    ca "P:\\Serveurs\\OpenVPN\\config\\ca.crt"
    cert "P:\\Serveurs\\OpenVPN\\config\\server.crt"
    key "P:\\Serveurs\\OpenVPN\\config\\server.key"
    dh "P:\\Serveurs\\OpenVPN\\config\\dh1024.pem"
    tls-auth "P:\\Serveurs\\OpenVPN\\config\\ta.key" 0
    topology subnet
    push "route"
    ifconfig-pool-persist ipp.txt
    keepalive 10 120
    cipher AES-256-CBC
    status openvpn-status.log
    verb 3
    explicit-exit-notify 1
  • aa-laptop.ovpn (client):

    dev tun
    proto udp
    remote dns.perso.fr 1194
    resolv-retry infinite
    ca "C:\\Program Files\\OpenVPN\\Config\\ca.crt"
    cert "C:\\Program Files\\OpenVPN\\Config\\AA-LAPTOP.crt"
    key "C:\\Program Files\\OpenVPN\\Config\\AA-LAPTOP.key"
    remote-cert-tls server
    tls-auth "C:\\Program Files\\OpenVPN\\Config\\ta.key" 1
    cipher AES-256-CBC
    verb 3

As you see, I can connect my laptop and my server with OpenVPN, and when it's done I can access my server shares by typing \\ and \\, the two methods work, that's great! But I can't reach anything else in my home LAN, neither my computer with \\ nor my NAS \\

It might be a server-side missing-config-param problem or a bridgy-thing, I don't know. But the only piece of help I found use route add gw linux commands which obviously can't work on Windows.

Thanks for advance for your help !


  • Maybe you just need to add something like route together with your push route rule to tell the vpn server to route that traffic into the vpn. I can't test it – Federico Galli Jul 25 '17 at 10:13
  • Thanks a lot, @FedericoGalli ! That was it, I just had to execute a cmd at launch : route ADD MASK And now, I can access my other computers :D You saved my life, mate ! – Aurélien Achat Jul 26 '17 at 16:01
  • Sometimes vpn can be tricky :-) – Federico Galli Jul 26 '17 at 16:07

What you've done is create a new virtual network card in your Windows 10 box, given it an IP address, and made a remote system ping it. This is all standard stuff, but in software instead of e.g. plugging an Ethernet adapter into a USB port.

The problem now is routing, which only Microsoft's Server products support natively. There are methods such as Internet Connection Sharing (select the VPN adapter instead of the Hosted Virtual in that article) which turns your Windows 10 system into a mini Internet Router. It unfortunately won't allow your LAN devices to initiate connections to a VPN client, but otherwise works rather well.

Another alternative is very dodgy, and enables native routing in your Windows 10 client by very low-level changes directly in the registry. Proceed with caution. In fact, probably don't do that at all.

If you really want flexibility, look into a buying low-cost router with DD-WRT or OpenWRT, both of which support OpenVPN and native routing, with nice graphical interfaces. You can get by with a $40 device like the TP-Link WA-901ND, but check the supported devices list on their websites.

If you're feeling adventurous and really want to get to grips with Linux, a Raspberry Pi will do extremely well.

The added benefit is these low-power devices don't need to be on constantly.


Federico Galli answered my question, in addition to a correct OpenVPN configuration, I needed to launch :

route ADD MASK

Personally, I made a routage.bat file launched at Windows startup because the route is not persisted.

Again, thank you a lot Federico Galli, it's working perfectly now !


route ADD -p parameter adds permanent. no need to made bat file

New contributor
pawel is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • Welcome to Super User. This looks like a comment on Aurélien Achat's answer rather than a new solution. With a little more rep, you will be able to post comments. But even as a new user, you could consider proposing an edit on that answer with this as supplementary information. – fixer1234 13 hours ago

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.