Block-outside DNS failed

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
nitestyle
OpenVpn Newbie
Posts: 1
Joined: Mon Mar 07, 2022 7:11 pm

Block-outside DNS failed

Post by nitestyle » Mon Mar 07, 2022 7:15 pm

hello,
i try to block outside DNS, but it doesnt work.
How can i config to use internal DNS

[oconf=]
client
auth-user-pass

dev tun
;dev-node MyTap
;proto tcp
proto udp
remote xx.xx.xxx.xx 1194
;remote-random
resolv-retry infinite
nobind

# Downgrade privileges after initialization (non-Windows only)
;user nobody
;group nobody

# Try to preserve some state across restarts.
persist-key
persist-tun

# authentication.
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
# to silence duplicate packet warnings.
;mute-replay-warnings
# file can be used for all clients.
<ca>
-----BEGIN CERTIFICATE-----
</ca>
# EasyRSA can do this for you.
remote-cert-tls server

# Set log file verbosity.
verb 3

# Silence repeating messages
;mute 20

--pull-filter ignore redirect-gateway
--block-outside-dns
[/oconf]

thanks

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: Block-outside DNS failed

Post by TinCanTech » Mon Mar 07, 2022 7:24 pm

nitestyle wrote:
Mon Mar 07, 2022 7:15 pm
--pull-filter ignore redirect-gateway
--block-outside-dns
As with all the other items in your config file, do not use '--' at the beginning of the command.

Post Reply