Bypass annoying websites using a dns sink
Find a file
2022-01-20 10:45:02 +01:00
cache Initial Commit 2022-01-18 04:17:52 +01:00
dist chore(release): 1.0.2 [skip ci] 2022-01-19 22:36:44 +00:00
docs docs: Add explainer image [skip ci] 2022-01-20 10:44:29 +01:00
src fix: Update Environment 2022-01-19 23:34:19 +01:00
.dockerignore build-system: Add CI and semantic-release versioning 2022-01-18 18:35:31 +01:00
.gitignore feat: Initial Release 2022-01-18 19:58:19 +01:00
.gitlab-ci.yml feat: Initial Release 2022-01-18 19:58:19 +01:00
.releaserc build-system: Add CI and semantic-release versioning 2022-01-18 18:35:31 +01:00
docker-compose.yml fix: Update Environment 2022-01-19 23:34:19 +01:00
Dockerfile fix: Update Environment 2022-01-19 23:34:19 +01:00
index.ts build-system: Add CI and semantic-release versioning 2022-01-18 18:35:31 +01:00
package.json fix: Update Environment 2022-01-19 23:34:19 +01:00
README.md docs: Add explainer image [skip ci] 2022-01-20 10:44:29 +01:00
tsconfig.json Initial Commit 2022-01-18 04:17:52 +01:00
yarn.lock fix: Update Environment 2022-01-19 23:34:19 +01:00

@jojoxd/bypass

Adds bypasses for PiHole so you can still use ad services (without ads) if you so desire.

Explainer

For example, you can bypass adfoc.us and adf.ly with this application.

This also works for HTTPS Sites, as we use SNI to auto-generate certificates. note that you need cache/authority.pem in your system trust store.

To disable HTTPS entirely, set environment variable APP_HTTPS_PORT to empty.

Usage:

  1. Run in some way (See Running Bypass)
  2. Copy CA certificate from cache/authority.pem into your system's trust store

    on linux, copy that file into /etc/pki/ca-trust/anchors and run sudo update-ca-trust. You may need to restart your browser afterwards.

  3. In PiHole, set the IP of all the apps you want to bypass (e.g. redirect services, googleads etc.) to the IP of the server.

Running Bypass

Docker

Note: You need to specify --dns as a public DNS server, or else we can't resolve the IP addresses.

docker run -d \
  -v ./cache:/app/cache \
  -p 80:80 -p 443:443 \
  -e APP_HOSTNAME=bypass.example.com \
  --dns 8.8.8.8 \
    docker.jojoxd.nl:5005/jojoxd-homelab/bypass:<version>

On your system (using npx)

NOTE: Take a look at the Dockerfile and Environment.ts for configuration reference.

You can also run this server using npx, but beware that your system DNS should allow resolving of all IP's (e.g. using a public DNS service)

npx @jojoxd/bypass