Question Locked

Windows 10 route LAN through VPN

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a Windows 10 PC that has two NICs, one is connected to an internet router (nic 1, 172.16.147.20) and the other to the LAN (nic 2, 192.168.137.1). Now I run a (OpenVPN) VPN client that connects to the internet and when connected routes all traffic through the VPN (adapter ip 10.13.46.107). I enabled IP Routing (through registry "IPEnableRouter" and enabled the routing service) and can ping nic 2 from other PCs on the lan.

Now I want to be able to access the internet through the VPN adapter from other PCs on the lan. I'm not sure what I'm missing, I thought OpenVPN handles NAT so it should work?

Here's my routing table of that Windows 10 PC when connected to the VPN:

Netzwerkziel Netzwerkmaske Gateway Schnittstelle Metrik
0.0.0.0 0.0.0.0 172.16.147.1 172.16.147.20 25
0.0.0.0 128.0.0.0 10.13.46.1 10.13.46.107 3
10.13.46.0 255.255.255.0 Auf Verbindung 10.13.46.107 259
10.13.46.107 255.255.255.255 Auf Verbindung 10.13.46.107 259
10.13.46.255 255.255.255.255 Auf Verbindung 10.13.46.107 259
127.0.0.0 255.0.0.0 Auf Verbindung 127.0.0.1 331
127.0.0.1 255.255.255.255 Auf Verbindung 127.0.0.1 331
127.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 331
128.0.0.0 128.0.0.0 10.13.46.1 10.13.46.107 3
172.16.147.0 255.255.255.0 Auf Verbindung 172.16.147.20 281
172.16.147.20 255.255.255.255 Auf Verbindung 172.16.147.20 281
172.16.147.255 255.255.255.255 Auf Verbindung 172.16.147.20 281
192.168.137.0 255.255.255.0 Auf Verbindung 192.168.137.1 257
192.168.137.1 255.255.255.255 Auf Verbindung 192.168.137.1 257
192.168.137.255 255.255.255.255 Auf Verbindung 192.168.137.1 257
213.152.161.69 255.255.255.255 10.13.46.1 10.13.46.107 4
213.152.161.71 255.255.255.255 172.16.147.1 172.16.147.20 25
224.0.0.0 240.0.0.0 Auf Verbindung 127.0.0.1 331
224.0.0.0 240.0.0.0 Auf Verbindung 10.13.46.107 259
224.0.0.0 240.0.0.0 Auf Verbindung 172.16.147.20 281
224.0.0.0 240.0.0.0 Auf Verbindung 192.168.137.1 257
255.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 331
255.255.255.255 255.255.255.255 Auf Verbindung

1 reply

by williammbrown1985

What you are looking for is a feature called "Split tunnel". It allows or disallows specific traffic, including internet traffic, to pass through the tunnel.

I'm not sure if OpenVPN supports this, but that is the feature you are looking for.

This discussion is closed to new replies.