Page 1 of 1

Block-outside DNS failed

Posted: Mon Mar 07, 2022 7:15 pm
by nitestyle
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

Re: Block-outside DNS failed

Posted: Mon Mar 07, 2022 7:24 pm
by TinCanTech
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.