Hi,
I have a problem resolving dns when my mac and linux clients connect with vpn, dns works for windows clients.
The nat works (it works for windows clients)
I tried with the :
->
https://github.com/jonathanio/update-systemd-resolved
->
https://github.com/alfredopalhares/openvpn-update-resolv-conf
But nothing changes.
I'm passing you the server and client configuration file
My version of the openvpn server is 2.4.7-1 on debian 10
The firewall is nftables.conf
local ip_serveur
port 443
proto tcp
dev tun
ca ssl/ca.crt
cert ssl/nom_certifciat.crt
key ssl/nom_cle.key
dh ssl/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /etc/openvpn/pool-vpn-util.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.8.4"
push "dhcp-option DOMAIN lan"
keepalive 5 120
push "comp-lzo no"
push "compress stub-v2"
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
log-append /var/log/openvpn/openvpn.log
verb 4
script-security 2
tls-server
plugin /usr/lib/openvpn/openvpn-auth-ldap.so /etc/openvpn/auth/auth-ldap.conf
client
dev tun
proto tcp
remote ip_serveur 443
resolv-retry infinite
nobind
persist-key
persist-tun
verb 3
verify-x509-name name_serveur name
# Autentification par login et mot de passe
auth-user-pass
auth-nocache
# CERTIFICAT
ca CA-All.crt
#Pas d'espace dans le nommage du certificat
pkcs12 name-certifcat.p12
remote-cert-tls client
When I go to the mac and I look at resolv.conf, I get the dns pushed by the server.
If anyone has any ideas on how to make the dns work, I'll take it.
Thank you in advance.
Sincerely