This is my hostfile. There are many like it, but this one is mine.
- Uses
255.255.255.255
instead of more error prone127.0.0.1
or0.0.0.0
— more details - Tiny script — less code is easier to audit
- Leverages git history — easier to track changes
- Pi-Hole adlist — good enough for me
Do not trust random VPN servers (including this one); they can easily MITM any network request you make.
- Download the OpenVPN profile — SHA256 4748fc7513e5175b71f49f5bbbbe0292242da3e2ab59c5afa4c5f277593547df
- Connect using your favorite OpenVPN client — I use Tunnelblick for macOS and OpenVPN Connect for iOS
- Verify it's working:
nslookup doubleclick.net
- Disconnect, because why are you connecting to a random VPN?
# Use a volume to persist the VPN config
$ docker volume create openvpn
# Start the server -- first boot is slow because it generates an OpenVPN config
$ docker run --volume openvpn:/etc/openvpn --env OVPN_SERVER_NAME=[your-hostname] --name hostcamo --detach --publish-all registry.gitlab.com/fengb/hostcamo
# Get the client profile
$ docker exec hostcamo ovpn_getclient hostcamo > hostcamo.ovpn