Windows Server 2012 r2 running openvpn server
and 2 client computers
1- Windows 7
2- Linux Ubuntu 20.04
I would like to connect them to my openvpn server for sharing files but not for internet browsing.
On the Linux clent after connects to openvpn I can ping my server on 10.7.0.1 but I can also browse internet, my ip is the one assigned by my ISP, not the server public ip, which is what I want.
The Windows 7 client instead (tested also on a Windows 10 pc) after connecting to my vpn can't browse internet, despite the lan network interface says "Internet access"
Does anyone have some experience on this? How can I solve? I'm asking becouse I did not find clear answers atlist for me. I tried to add client option "route-nopull" but did not help.
The following are the options in the configs:
Server Config
port 1194
proto udp4
dev tun
topology subnet
server 10.7.0.0 255.255.255.0
keepalive 10 120
persist-key
persist-tun
verb 3
explicit-exit-notify 1
proto udp4
dev tun
topology subnet
server 10.7.0.0 255.255.255.0
keepalive 10 120
persist-key
persist-tun
verb 3
explicit-exit-notify 1
client, both linux and windows clients with same options
client
dev tun
proto udp4
remote xxx.xxx-xxx-xxx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
ignore-unknown-option block-outside-dns
setenv opt block-outside-dns # Prevent Windows 10 DNS leak
# don't push internet traffic to vpn
# route-nopull
verb 3
key-direction 1