Push DNS server from OpenVPN to client on connection


#1

Hello.

I’ve got my ovpn server pushing its own local DNS to clients, but the ovpn client on my MT-300N-V2 is not accepting it. From the logs:

Tue Aug 14 13:13:56 2018 daemon.notice openvpn[6667]: PUSH: Received control message: 'PUSH_REPLY,explicit-exit-notify,topology subnet,route-delay 5 30,dhcp-pre-release,dhcp-renew,dhcp-release,route-metric 101,ping 15,ping-restart 75,comp-lzo yes,redirect-gateway def1,redirect-gateway bypass-dhcp,redirect-gateway autolocal,route-gateway 10.27.0.145,dhcp-option DNS 172.31.0.2,register-dns,block-ipv6,ifconfig 10.27.0.151 255.255.255.240’
Tue Aug 14 13:13:56 2018 daemon.warn openvpn[6667]: Unrecognized option or missing or extra parameter(s) in [PUSH-OPTIONS]:4: dhcp-pre-release (2.4.3)
Tue Aug 14 13:13:56 2018 daemon.warn openvpn[6667]: Unrecognized option or missing or extra parameter(s) in [PUSH-OPTIONS]:5: dhcp-renew (2.4.3)
Tue Aug 14 13:13:56 2018 daemon.warn openvpn[6667]: Unrecognized option or missing or extra parameter(s) in [PUSH-OPTIONS]:6: dhcp-release (2.4.3)
Tue Aug 14 13:13:56 2018 daemon.warn openvpn[6667]: Unrecognized option or missing or extra parameter(s) in [PUSH-OPTIONS]:16: register-dns (2.4.3)
Tue Aug 14 13:13:56 2018 daemon.warn openvpn[6667]: Unrecognized option or missing or extra parameter(s) in [PUSH-OPTIONS]:17: block-ipv6 (2.4.3)

How can I get the client to use the DNS IP pushed by the server?...


#2

Can you try v3.x firmware
https://dl.gl-inet.com/firmware/mt300n-v2/testing/