How to push Openvpn DNS with a client and debian on Freebox router
Posted: Wed May 05, 2021 10:21 am
Hi guys
For two w,eeks, I have struggled with the configuration of Openvpn, installed on a debian VM, on my Freebox Delta.(router of my internet
provider)
I managed to put everything in place thanks to the YouTube tutorial accessible with the link below:
https://www.youtube.com/watch?v=MIuHwPy_UTs&t=1115s
Everything worked perfectly, and the vpn is working. But I have a big DNS and IPV6 leak problem
To correct this, I tried pushing the google DNS from the vpn's DNS server to the clients that will connect to it.
I have modified the ".client.conf file, with:
push "redirect-gateway def1 bypass-dhcp", with the prior installation of "openvpn-systemd-resolved"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
script-security 2
up / etc / openvpn / update-systemd-resolved
down / etc / openvpn / update-systemd-resolved
down-pre
dhcp-option DOMAIN-ROUTE.
I also tried disabling IPV6 in /etc/sysctl.conf, but it doesn't seem to work
the "Push DNS does not work either. impossible to have DNS swiped on clients
On my pc it is this DNS fd0f: ee: b0 :: 1, ipv6 of my internet access provider, and the active IPv6, instead of the DNS of the VPN.
How do I get DNS Push to work, and be able to prevent DNS and IPv6 leaks?
thank you
For two w,eeks, I have struggled with the configuration of Openvpn, installed on a debian VM, on my Freebox Delta.(router of my internet
provider)
I managed to put everything in place thanks to the YouTube tutorial accessible with the link below:
https://www.youtube.com/watch?v=MIuHwPy_UTs&t=1115s
Everything worked perfectly, and the vpn is working. But I have a big DNS and IPV6 leak problem
To correct this, I tried pushing the google DNS from the vpn's DNS server to the clients that will connect to it.
I have modified the ".client.conf file, with:
push "redirect-gateway def1 bypass-dhcp", with the prior installation of "openvpn-systemd-resolved"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
script-security 2
up / etc / openvpn / update-systemd-resolved
down / etc / openvpn / update-systemd-resolved
down-pre
dhcp-option DOMAIN-ROUTE.
I also tried disabling IPV6 in /etc/sysctl.conf, but it doesn't seem to work
the "Push DNS does not work either. impossible to have DNS swiped on clients
On my pc it is this DNS fd0f: ee: b0 :: 1, ipv6 of my internet access provider, and the active IPv6, instead of the DNS of the VPN.
How do I get DNS Push to work, and be able to prevent DNS and IPv6 leaks?
thank you