To ignore the server's redirect-gateway directive, add the following to the client's ovpn config file:
--pull-filter ignore redirect-gateway
Add the following to you .ovpn config (replacing
y.y.y.y with your preferred DNS addresses).
# override DNS with my own settings pull-filter ignore "dhcp-option DNS" # don't block other DNS servers (for windows clients) pull-filter ignore "block-outside-dns" # set own DNS servers (optional) dhcp-option DNS x.x.x.x dhcp-option DNS y.y.y.y
Honour DNS config pushed from server on Arch Linux client
On a few of my Arch (and Manjaro) machines, they weren't using DNS configs being pushed from the OpenVPN server.
As outlined in on the Arch Wiki, I needed to add the following to my client config (.ovpn):
script-security 2 up /etc/openvpn/update-resolv-conf down /etc/openvpn/update-resolv-conf
If OpenVPN doesn't reconnect after wake
|Content by Label|