Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.64 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.64 KB

hostcamo

This is my hostfile. There are many like it, but this one is mine.

Major features

  • Uses 255.255.255.255 instead of more error prone 127.0.0.1 or 0.0.0.0more details
  • Tiny script — less code is easier to audit
  • Leverages git history — easier to track changes
  • Pi-Hole adlist — good enough for me

How to use

Sample OpenVPN server — test only, insecure

Do not trust random VPN servers (including this one); they can easily MITM any network request you make.

  1. Download the OpenVPN profile — SHA256 4748fc7513e5175b71f49f5bbbbe0292242da3e2ab59c5afa4c5f277593547df
  2. Connect using your favorite OpenVPN client — I use Tunnelblick for macOS and OpenVPN Connect for iOS
  3. Verify it's working: nslookup doubleclick.net
  4. Disconnect, because why are you connecting to a random VPN?

OpenVPN using Docker

# 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