What's new

Openvpn updown Script buggy?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

svenp

Occasional Visitor
Hi Merlin, i have a openvpn client config.
The openvpn is running fine, but the dns server behind the vpn is not in resolv.conf.

I See in my Config:
Oct 17 17:49:26 openvpn[21234]: PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 128.39.51.1,dhcp-option WINS 128.39.51.1,route 10.1.1.0 255.255.255.0,ping 10,ping-restart 120,route 128.39.0.0 255.255.0.0,route 10.10.0.0 255.255.0.0,route 10.11.0.0 255.255.0.0,route 10.12.0.0 255.255.0.0,route 10.14.0.0 255.255.0.0,ifconfig 10.1.1.6 10.1.1.5'
Oct 17 17:49:26 openvpn[21234]: OPTIONS IMPORT: timers and/or timeouts modified
Oct 17 17:49:26 openvpn[21234]: OPTIONS IMPORT: --ifconfig/up options modified
Oct 17 17:49:26 openvpn[21234]: OPTIONS IMPORT: route options modified
Oct 17 17:49:26 openvpn[21234]: OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified


admin@(none):/tmp/home/root# cat /etc/openvpn/dns/client1.resolv
nameserver 128.39.51.1


admin@(none):/tmp/home/root# cat /tmp/resolv.conf
nameserver 212.x.x.x
nameserver 212.x.x.x

C:\Users\Sven>nslookup ts1.busse.local
Server: www.asusnetwork.net
Address: 192.168.1.1

*** ts1.busse.local wurde von www.asusnetwork.net nicht gefunden: Non-existent domain.

C:\Users\Sven>nslookup ts1.busse.local 128.39.51.1
Server: dc3.busse.local
Address: 128.39.51.1

Name: ts1.busse.local
Address: 128.39.51.3


C:\Users\Sven>

Is is possible the updown.sh script has an bug?

I the Script i found service dnsmasq restart, on console you see.

admin@(none):/tmp/home/root# service dnsmasq restart
Unknown applet: service
 
Is is possible the updown.sh script has an bug?

I the Script i found service dnsmasq restart, on console you see.

That could be related. Asuswrt doesn't have the service applet, I guess Tomato (From where that script came) did. I'll have to take a look at the script.

Also note that Asuswrt uses dnsmasq for DNS queries, so it's possible that the additional server only gets added to dnsmasq rather than resolv.conf. I will have to take a look at that code to see how it's handling it.
 
Hm, might this be related to the DNS behavior I was seeing with the OpenVPN for Android client (where DNS queries on the client simply did not work unless I overrode the server-supplied DNS info with static DNS server addresses)?
--
bc
 
I fixed the updown script not properly restarting dnsmasq, but I'll have to do some further digging to determine whether this was the only issue, or if there are other issues left regarding DNS handling.
 
I tracked down another issue in the code where resolv.conf wasn't being updated with DNS servers pushed by the OpenVPN server. Should be fixed before the next release.
 
Hm, might this be related to the DNS behavior I was seeing with the OpenVPN for Android client (where DNS queries on the client simply did not work unless I overrode the server-supplied DNS info with static DNS server addresses)?
--
bc

Doubt it. The issues here are related to the OpenVPN client on the router, while you are using the OpenVPN server.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top