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!
Metadata
Release files for dns-firewall 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dns-firewall-0.0.4.tar.gz | 13.7 kB | Without provenance | Details for dns-firewall-0.0.4.tar.gz |
Release files / dns-firewall-0.0.4.tar.gz
| Download URL | dns-firewall-0.0.4.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57de5a10d41b3ab4bda0ec1bc8e6d7da1c9572b188af9d174f79c4c10a582e6c
|
|
BLAKE2b-256 checksum How to use checksums |
c4e1ac503e193adce7a1a892d507c21eaa1e5f7cef903daae0b7ee4445e51825
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dns-firewall 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.