VPN DNS

I just setup a VPN using the linode tutorial, and when I do a dns leak test the dns provided by the vpn is not showed and the dns used by the router using to connect is showed.

This is the server config file:

port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 10.8.0.1"
keepalive 10 120
cipher AES-256-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3

What do I need to do to prevent this?

3 Replies

Would the DNS be set to this perhaps?

push "dhcp-option DNS 10.8.0.1"

Thats what I have it set to, I included the OpenVPN server.conf in my original post.

I have now tried with push "dhcp-option DNS xxx.xxx.xxx.xxx" set to 2 different public dns servers instead of push "dhcp-option DNS 10.8.0.1" but still get the same results.

Any help would be much appreciated.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct