Hi community,
I was setting up piVPN in combination with pi-hole. openVPN settings (see below) will push my pi-hole dns server to the client (192.168.188.56). My android device connects successfully to the server but the dns push seems to fail. There are two reasons why I think so: in a termux session I do a dig google.de and the response tell me SERVER 8.8.8.8. second reason is that the pi-hole web admin does not see any hits on it's dns server. On the android client I see the protocol saying
...
[dhcp-options] [DNS] [192.168.188.56]
...
so I assume that the server setting itself is correct. Does anybody has a clue whats wrong here?
dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/server_#######.crt
key /etc/openvpn/easy-rsa/pki/private/server_#######.key
dh none
topology subnet
server 10.8.0.0 255.255.255.0
# Set your primary domain name server address for clients
push "dhcp-option DNS 192.168.188.56"
push "block-outside-dns"
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
keepalive 1800 3600
remote-cert-tls client
tls-version-min 1.2
tls-crypt /etc/openvpn/easy-rsa/pki/ta.key
cipher AES-256-CBC
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
syslog
verb 3
client
dev tun
proto udp
remote mydnsserverserver 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
tls-version-min 1.2
verify-x509-name server_######## name
cipher AES-256-CBC
auth SHA256
auth-nocache
verb 3