Twanislas / ubnt-cloudflared

Install Cloudflare's DNS proxy on UBNT gateways
The Unlicense
21 stars 9 forks source link
cloudflare cloudflare-dns cloudflared edgeos edgerouter ubiquiti ubiquiti-edgeos ubiquiti-router unifi usg

ubnt-cloudflared

Install Cloudflare's DNS proxy on UniFi® gateways. This setup will survive reboots and re-provisions.

Only working for IPv4 at the moment.

Increase privacy on your network and prevent your ISP to eavesdrop your DNS requests to build your internet browsing history !

Hardware

Tested

Should work on (but not tested)

Guide

Installing

In a ssh session run the following command :

bash <(curl -s https://raw.githubusercontent.com/Twanislas/ubnt-cloudflared/master/install.sh)

Updating

Just run the install script again ;)

Uninstall

In a ssh session run the following command :

bash <(curl -s https://raw.githubusercontent.com/Twanislas/ubnt-cloudflared/master/uninstall.sh)

Redirecting NAT DNS requests

See the example in nat-dns-redirect.sh. You will have to adapt to your configuration and networks and place this script in /config/scripts/post-config.d/ on the gateway so it will be run on every provision.

Contributing

Credits