Git Product home page Git Product logo

raspi_adblock_dns's Introduction

ラズパイでアドブロック用DNSコンテナを立てる

ラズパイの環境

raspberry pi version
Linux raspberrypi 4.14.62-v7+ #1134 SMP Tue Aug 14 17:10:10 BST 2018 armv7l GNU/Linux

docker version
Docker version 18.06.1-ce, build e68fc7a

概要

ラズパイに内向けDNSサーバを立てて,アドブロックをします. DNSサーバはコンテナとして稼働させます.

詳細

LAN内に静的IPアドレスを割り当てたラズベリーパイをたてて,その中でDNSサーバの入ったコンテナを動かします. dnsmasqが参照するファイルに こちら を加工したものを読み込ませます. これによって,広告のドメインを問い合わせた時に,0.0.0.0というIPアドレスが返ってくるようにします.

使用方法

このリポジトリにあるdockerfileを自分でビルドして,docker run するか以下のコマンドを実行する.

Run container

docker container run --cap-add=NET_ADMIN -d -p 53:53/udp -p 53:53/tcp --name adblock_dns rixycf/dnsmasq_adblock_alpine:0.1

raspi_adblock_dns's People

Contributors

rixycf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.