block-outside-dns

Samples of working configurations.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Locked
freed1b
OpenVpn Newbie
Posts: 2
Joined: Tue Dec 29, 2015 7:16 am

block-outside-dns

Post by freed1b » Tue Dec 29, 2015 7:21 am

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

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: block-outside-dns

Post by Traffic » Tue Dec 29, 2015 1:36 pm

Please post your log file.

freed1b
OpenVpn Newbie
Posts: 2
Joined: Tue Dec 29, 2015 7:16 am

Re: block-outside-dns

Post by freed1b » Wed Dec 30, 2015 9:57 am

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>

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: block-outside-dns

Post by Traffic » Wed Dec 30, 2015 4:28 pm

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

Locked