I’ve started with a fresh install of CoreELEC on my Odroid N2 yesterday. Used the latest image of Matrix 19.3 which went smootly.
The first thing i’ve started configuring is OpenVPN, because this is always the hardest to get right and in the past i took some “shortcuts” to get things working.
Anyway, the thing i had problems with last time is the nameservers; i could not get CoreELEC to use the nameservers provided by my VPN provider. In the end i resorted to handing out the VPN providers nameservers through my routers DHCP options, which means i can’t use DNS until the VPN is up and i have to resort to connecting to IP addresses of my VPN provider instead of hostnames.
Upon connecting the OpenVPN i can see that a nameserver is being provided:
CoreELEC openvpn: PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 10.10.0.1
However, when i do a lookup i see the nameserver being used that my router provides through DHCP:
CoreELEC:/etc # nslookup www.google.com Server: 10.8.0.1 Address 1: 10.8.0.1 Name: www.google.com Address 1: 18.104.22.168 ams17s09-in-f4.1e100.net
And my OpenVPN config:
client dev tun proto udp4 remote-random remote 22.214.171.124 1194 remote 126.96.36.199 1194 cipher AES-256-CBC resolv-retry infinite nobind persist-key persist-tun verb 3 remote-cert-tls server ping 10 ping-restart 60 sndbuf 524288 rcvbuf 524288 fast-io route 10.0.10.0 255.255.248.0 net_gateway pull-filter ignore "route-ipv6" pull-filter ignore "ifconfig-ipv6" auth-user-pass /storage/.config/credentials.txt ca /storage/.config/vpn_ca.crt remap-usr1 SIGTERM script-security 2 up /storage/.config/deleteroute.sh
Any suggestions how i can get the VPN providers nameservers working when the VPN is up?