Hi everyone!
Running Ubuntu 20.4 with OpenVPN 2.4.7
I would like to use my own DNS by (correctly) modifying /etc/resolv.conf myself, instead of using the pushed DNS option by the VPN server.
Here is what I did,
please advise if I have made a mistake.
1.)
Remove the following from the client config:
script-security 2
Reason: Re-establishing default -> script-security 1, which allows no outside scripts
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
Reason: No longer needed, since invoking outside script to update /etc/resolv.conf is undesired
2.)
Add the following to client config:
pull-filter ignore "dhcp-option DNS"
Reason: Completely ignore any DNS options pushed by the server.
Everything works both with and without using Step 2 (pull-filter ignore "dhcp-option DNS").
Question: Am I causing any harm by adding pull-filter ignore "dhcp-option DNS", or would it be better to leave that out?