English Forums > Virtual private networks

Windows 10: VPN works, DNS does not. (solved)

(1/2) > >>

Jhjacobs81:
I have successfully added IKEv2 VPN (https://docs.opnsense.org/manual/how-tos/ipsec-rw-srv-mschapv2.html).

I can also connect to the company network. I can access the internet, and i can access any internal service by IP. However, the only way to get DNS working is by manually setting it on the interface through the control panel.

I have added our company's DNS settings in the VPN options of OPNSense, but to no avail :(

Is anyone else having this issue? We are working with Windows 10, 2004 and 20H2

pcampbell:
Are you also supplying your DNS to your VPN client in the Mobile Clients setup?  If not check the box that says "Provide DNS Server List to Clients" under the DNS Servers section and put you DNS Server IP addresses in there.

Jhjacobs81:
hello pcambell,

Yes, we are suplying the dns servers in the config.
When i open /usr/local/etc/strongswan.conf there a section called plugins:

plugins {
        attr {
                dns = 10.0.0.32, 10.0.0.34
                }
          .....
            }

These are the same adresses i have set in the web config. This does not work however.
When i manually add the same adresses to the charon { } part (as per: https://wiki.strongswan.org/projects/strongswan/wiki/Win7UserMultipleConfig subheading "ASSIGNMENT OF INTERNAL DNS AND WINS SERVERS") then it works..

So, what goes wrong where? :)

Jhjacobs81:
see the "before" and "after" image :)

Jhjacobs81:
also:
https://www.cl.cam.ac.uk/~mas90/resources/strongswan/
https://www.digitalocean.com/community/tutorials/how-to-set-up-an-ikev2-vpn-server-with-strongswan-on-ubuntu-18-04-2

Speak about a "rightdns" entry in the conn esttings, which i dont see in my /usr/local/etc/ipsec.conf

Navigation

[0] Message Index

[#] Next page

Go to full version