Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Local DNS Firewall

Project Description

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 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/main.py conf.yaml

# or

sudo ./dns_firewall/main.py conf.yaml

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!

Release History

Release History

This version
History Node

0.0.4

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
dns-firewall-0.0.4.tar.gz (13.7 kB) Copy SHA256 Checksum SHA256 Source Dec 23, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting