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.
Windows DNS issue when resolves to WAN address
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 6
- Joined: Tue May 14, 2013 7:54 pm
-
- OpenVpn Newbie
- Posts: 6
- Joined: Tue May 14, 2013 7:54 pm
Re: Windows DNS issue when resolves to WAN address
still a problem.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVpn Newbie
- Posts: 6
- Joined: Tue May 14, 2013 7:54 pm
Re: Windows DNS issue when resolves to WAN address
[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]
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]
-
- OpenVpn Newbie
- Posts: 6
- Joined: Tue May 14, 2013 7:54 pm
Re: Windows DNS issue when resolves to WAN address
bump, anyone???