Windows DNS issue when resolves to WAN address

This forum is for admins who are looking to build or expand their OpenVPN setup.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
pr3dict
OpenVpn Newbie
Posts: 6
Joined: Tue May 14, 2013 7:54 pm

Windows DNS issue when resolves to WAN address

Post by pr3dict » Mon Jun 19, 2017 7:15 pm

On windows when I try to resolve the public IP address of the router/network the vpn server is on it takes the wrong path and does not route through the VPN.

So my issue is weird and only happens on windows.


I connect to the vpn as vpn.mywebsite.com (98.xx.xx.56)

Once Im connected I get an internal network address of 192.168.11.2 Default gateway of 192.168.11.1


I try to access my webproxy thats running on PFsense at proxy.mywebsite.com (98.xx.xx.56)

The way it should work is:

192.168.11.1
DNS lookup in PFSENSE and notice its the WAN Address and connect to itself w/loopback or whatever.
Done....

What it is doing:

going to the actual network card im connected to.
to the actual network router
to the internet
internet
my WAN address 98.xx.xx.56
then my server says um no this isnt for you only inside network please and thank you and closes connection.

THIS only happens on windows. Android config is fine. I have no idea why its happening. The interface metric is lower then the others as well so Im at a loss.

pr3dict
OpenVpn Newbie
Posts: 6
Joined: Tue May 14, 2013 7:54 pm

Re: Windows DNS issue when resolves to WAN address

Post by pr3dict » Thu Jun 22, 2017 7:21 pm

still a problem.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Windows DNS issue when resolves to WAN address

Post by TinCanTech » Thu Jun 22, 2017 7:37 pm


pr3dict
OpenVpn Newbie
Posts: 6
Joined: Tue May 14, 2013 7:54 pm

Re: Windows DNS issue when resolves to WAN address

Post by pr3dict » Fri Jun 23, 2017 12:51 pm

[oconf=]dev tun
persist-tun
persist-key
cipher AES-256-CBC
auth SHA512
tls-client
client
resolv-retry infinite
remote vpn.mywebsite.com 1194 udp
setenv opt block-outside-dns
lport 0
redirect-gateway def1
verify-x509-name "Server-CA" name
auth-user-pass
pkcs12 vpn.p12
tls-auth vpn.key 1
remote-cert-tls server
comp-lzo adaptive
[/oconf]

pr3dict
OpenVpn Newbie
Posts: 6
Joined: Tue May 14, 2013 7:54 pm

Re: Windows DNS issue when resolves to WAN address

Post by pr3dict » Wed Jun 28, 2017 1:11 pm

bump, anyone???

Post Reply