Page 1 of 1

block-outside-dns

Posted: Tue Dec 29, 2015 7:21 am
by freed1b
Hi all, newbie here

How do i use block-outside-dns in a windows config file (using latest openvpn 2.3.9). If I just include as is - i get a connection failure.

Thanks in advance for your help

Re: block-outside-dns

Posted: Tue Dec 29, 2015 1:36 pm
by Traffic
Please post your log file.

Re: block-outside-dns

Posted: Wed Dec 30, 2015 9:57 am
by freed1b
Is that you mean

client
dev tun0
proto tcp
remote 176.126.237.207 80
resolv-retry infinite
nobind
persist-key
persist-tun
auth-user-pass
comp-lzo
verb 3
cipher AES-128-CBC
fast-io
pull
route-delay 2
redirect-gateway
<ca>

Re: block-outside-dns

Posted: Wed Dec 30, 2015 4:28 pm
by Traffic
That is your config file ... not your log.

However, --block-outside-dns can be used by simply adding it to that config file,
provided you use Windows Vista or newer (this does not work on Windows XP)

Ensure you have a server push a suitable DNS server.

For further help please post your log file at verb 4

See --log, --verb and --block-outside-dns in The Manual v23x