DNS OpenVPN DHCP build 32597 issue with dhcp affecting Wan

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
cave_monkey
DD-WRT Novice


Joined: 15 Jul 2017
Posts: 22

PostPosted: Wed Jul 19, 2017 19:29    Post subject: DNS OpenVPN DHCP build 32597 issue with dhcp affecting Wan Reply with quote
I seem to have DNS issues with when i connect my OpenVPN.. traffic routes no problem.. When i try and change my Client DNS vias DHCP, i dont get the desired effect...

The OpenVPN wont connect at all..and my clients don't get the updated DNS.. Just the WAN itself seems to get the new DNS..

Im guessing my understanding of the DDWRT implementation of DHCP lacking.. It may well me by lack of understanding about DNSmasq

can anyone let me know how i should configure DHCP to allocate my clients my own custom DNS.. without affecting the WAN DNS

Ive tested this and when i manually set the DNS on my client , i can access the internet over the VPN... Using google dns no problem if i use the ISP DNS its the same affect


cheers

Cave
Sponsor
cave_monkey
DD-WRT Novice


Joined: 15 Jul 2017
Posts: 22

PostPosted: Wed Jul 19, 2017 19:49    Post subject: Bit of extra info Reply with quote
Im sure BT (the ISP) are doing something... i don't have wither of these features enabled, when i tried to tried google DNS onto the DHCPserver ( thusly affecting the WAn) i was unable to access any websites, and got this usefull tell tale message from bt
cave_monkey
DD-WRT Novice


Joined: 15 Jul 2017
Posts: 22

PostPosted: Wed Jul 19, 2017 19:58    Post subject: bit more info Reply with quote
apologies for the mutli message...

i can see in my client log for openvpn, it would appear that the VPN DNS are being injected into my DHCP / DNS somehow usefull i guess to avoid DNS leak.. but i think something in the DDWRT / masqdns dhcp , aint quite working..

any pointers would be greatly appreciated


20170719 20:40:54 PUSH: Received control message: 'PUSH_REPLY redirect-gateway def1 dhcp-option DNS 78.129.156.253 dhcp-option DNS 87.117.196.200 sndbuf 393216 rcvbuf 393216 route-gateway 82.145.51.193 topology subnet ping 10 ping-restart 120 ifconfig 82.145.51.200 255.255.255.192'
20170719 20:40:54 OPTIONS IMPORT: timers and/or timeouts modified
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Thu Jul 20, 2017 11:28    Post subject: Reply with quote
Your own router can do the same it is called Forced DNS redirection, it basically intercepts everything on port 53 (DNS) and redirect it.
That is what BT probably is doing also, well if I understand correctly it is just blocking it Sad.
It could be that you can configure this on your BT account.

if not you can use the VPN, if you configure a DNS server on your client then the client connects through the VPN and also does the DNS query via the VPN.

However your router, when starting the VPN, must use the standard DNS server to query and resolve the VPN server you are using, so just keep the standard BT DNS server.
After the VPN is up, the DNS servers of your VPN are pushed and subsequetnly used (that is if you do not have a DNS leak, some builds have a DNS leak)
Test this with www.dnsleaktest.com and www.ipleak.net

An other solution is to specify the IP address of your VPN server instead of the name.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
cave_monkey
DD-WRT Novice


Joined: 15 Jul 2017
Posts: 22

PostPosted: Thu Jul 20, 2017 22:02    Post subject: Reply with quote
O wow, this is a rabbit hole...... thanks for the advice...now i have something else to obsess over now.. this is very interesting indeed.


So against my better judgment when i'm using the ISP router...after lengthy arguments with them over DNS, and confirmation that my account is setup right not to use any DNS protection (Web Protect the call it)...
i literally have no options. but to go 2 router, ofoucrse i can replace there kit with a simple router,

so using a 2 router setup for testing

1, ISP HH5 , and 2, DDWRT @ 32597

I have a pretty stable OpenVPN now, but looks leaky as as sieve , with or without dns encyption, which is a bit of a mystery to me as is DNSmasq still


When i test a PPTP vpn (by far the simplest) using the wan interface on the 2nd Router, the connection is pretty solid.. and uses the VPN DNS only and does not leak at all...


I was trying to keep away from PPTP, not sure if i'm worrying over nothing, i'm mainly wanting to vpn just to make a usable Internet for browsing and streaming.. security is not my driver, but im getting more and more interested the more an more i find out how BT operate.. Also i wanted to get into split tunnelling so certain devices could bypass the VPN, without being connected to the ISP router directly , ie want to keep them on the same lan so i can access them locally


as a novice with DDWRT, is there a build i should use thats more stable that the one im on? i have a WRT3200acm
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Fri Jul 21, 2017 7:19    Post subject: Reply with quote
For the WRT3200ACM look in the appropriate forum: http://www.dd-wrt.com/phpBB2/viewforum.php?f=58

Altough OpenVPN is regarded more safe, unless you are wanted by the authorities PPTP will do. However for "split tunneling" OpenVPN is much more user friendly (with Policy Based Routing it is easy to route clients through the VPN or ISP by their IP address).

So I advice you to use Open VPN. If configured correctly this is the best. The latest builds should not have a DNS leak, but it is always a good idee to use the OpenDNS servers as default in your DDWRT Setup.

I am using Private internet Access as VPN provider and can send you the necessary instructions if you want

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
cave_monkey
DD-WRT Novice


Joined: 15 Jul 2017
Posts: 22

PostPosted: Fri Jul 21, 2017 12:37    Post subject: Reply with quote
egc wrote:

I am using Private internet Access as VPN provider and can send you the necessary instructions if you want


Yes please that would be great..

cave
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Fri Jul 21, 2017 13:42    Post subject: Reply with quote
Instructions can be found here: https://www.privateinternetaccess.com/pages/client-support/dd-wrt-openvpn

In the additional config you can enter:
Code:
### Keep Alive
reneg-sec 300
ping 10
ping-restart 60

### Speed Tweaks
sndbuf 523216
rcvbuf 523216
push "sndbuf 523216"
push "rcvbuf 523216"

### General
remote-cert-tls server
disable-occ


Feel free to ask, you can also PM me if you want

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum