VPN won't connect me to devices on my home network

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
bertjan198
OpenVpn Newbie
Posts: 2
Joined: Sun Jan 08, 2023 3:23 pm

VPN won't connect me to devices on my home network

Post by bertjan198 » Sun Jan 08, 2023 3:45 pm

I am trying to run open vpn server on windows 10. Client device is an android telephone running OVPN for Android. I get a connection to external IP's via the home network, but not to the devices in my home network (the network on wich the server machine resides.)

The manual says I need to enable IP forwarding in Windows. I have done that. I also must enable tun/tap forwarding in Windows, but I cannot find how to do that. Where web page that explaines this?

Here are my configurations:

Server:

Server Config

port xxxxx
proto udp
dev tun
ca ca.crt
cert pc2020.crt
key pc2020.key # This file should be kept secret
dh dh.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.1.0 255.255.255.0 192.186.1.1"
push "redirect-gateway"
duplicate-cn
keepalive 10 120
cipher AES-256-CBC
persist-key
persist-tun
status openvpn-status.log
verb 3
explicit-exit-notify 1


Client config:

Client Config
client
dev tun
proto udp
remote xxxxxx
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert bertjan.crt
key bertjan.key
cipher AES-256-CBC
verb 3


The home network uses 192.168.1.0/24. The server uses a virtual network adapter of type tap, which is strange, because I use 'dev tun'. Is this intended? I have tried setting up a bridge between the physical network adapter and the adapter used by the server, but I get a blue screen with malformed characters and after that, a system reset.

The log files do not indicate any exceptions

How can I make open vpn connect my phone to the devices on my home network?

bertjan198
OpenVpn Newbie
Posts: 2
Joined: Sun Jan 08, 2023 3:23 pm

Re: VPN won't connect me to devices on my home network

Post by bertjan198 » Wed Jan 11, 2023 7:26 am

I have found the solution to my own problem. It turned out that Windows applied firewall rules to the traffic of the server. I thought that I had permanently turned off my firewall years ago,but I only turned it of for private connexions. Windows considered the network adapter of the server a public connexion. I changed it to private, so the firewall rules did not apply. Here is how I did that:

https://www.howto-connect.com/change-pu ... indows-10/

It also turned out that the client ignores pushed routes, so I added the route to the home subnet in the client config.

Thanks to those who payed attention.

Post Reply