GithubHelp home page GithubHelp logo

wachwu / dns-firewall Goto Github PK

View Code? Open in Web Editor NEW

This project forked from federicoceratto/dns-firewall

0.0 2.0 0.0 408 KB

A proxy to inspect and mangle locally generated DNS queries with a Gtk interface.

Python 100.00%

dns-firewall's Introduction

Downloads Latest Version License Supported Python implementations

DNS firewall

A proxy to inspect and mingle locally generated DNS queries. Optional tray icon an Gtk interface.

Rationale

Inspecting and filtering DNS traffic generated by desktop applications can be tricky. Tools like tcpdump have no way to tell which running process generated a DNS query. Also, Netfilter cannot filter traffic by domain name and many domains resolve to IP addresses that change frequently.

A typical use case is to monitor browser, browsers plugins and extensions for suspicious home-calling or malicious/tracking javascript, or other application leaking data through DNS queries.

dns-firewall acts as a forwarding DNS resolver. It listens locally on port 53 and forwards only the allowed queries to external resolvers.

It detects the name of the process trying to resolve a domain name and applies filtering rules based on that.

Features

  • Block DNS queries by application and domain, or return configurable IP addresses
  • Tray icon with activity indicators
  • Log window to inspect recent activity
  • Optionally resolve names using the Tor network

Usage

Create ~/.config/dns-firewall/conf.yaml from conf.yaml.example

Binding to UDP port 53 is required. You can run the process as root or install and configure authbind:

sudo apt-get install authbind
sudo touch /etc/authbind/byport/53
authbind --depth 2 dns-firewall

# or

sudo dns-firewall

Add --tray to enable the tray icon and Gtk interface. Left-click on the tray icon to display the log window.

Update your /etc/resolv.conf with "nameserver 127.0.0.1"

Development status

In development. Testing and contributions are welcome!

dns-firewall's People

Watchers

James Cloos avatar  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.