Skip to main content

mdns-filoxy

PyPI - Version PyPI - Python Version


This is mdns-filoxy, the mDNS filter proxy!

Buy Me A Coffee

Table of contents

Introduction

Welcome to mdns-filoxy, the mDNS filter proxy.

What is it for?

mdns-filoxy allows you to send configured mDNS service queries out a specified interface, cache the response, and then listen for further queries and answer them on a different interface.

This is particularly useful when you (rather smartly) put your IoT devices in a different network/VLAN to your "main" network. I have my Sonos speakers setup this way, and without some form of proxy, I simply cannot talk to them anymore, because of their odd use of mDNS and SSDP, and 14,000 other convoluted methods to reach their ecosystem.

But isn't that what avahi-daemon et al are for?!

avahi-daemon does have a reflector mode, and there are other packages like mdns-repeater. The issue is that they both listen for queries and then just re-send them out other interfaces. avahi-daemon even lets you filter reflections, but they don't allow you to control the direction of the reflecting.

Furthermore, in the case where you have some other server on the same networks, with two or more interfaces bound to it, systemd can have a rather major meltdown whilst it tries to think for you and choose unique mDNS names. A good example of this is Home Assistant's HAOS. systemd behaves badly with mdns repeaters too.

Draw me a picture

Ok. Lets pretend you have a phone that sits in a VLAN, connected to a firewall interface called eth0 (known as the dest-interface). Lets further pretend your Sonos speaker is in another VLAN, connected to iot0 (known as the --source-interface).

When mdns-filoxy starts, it will bind to the specified interfaces, and on the source interface will query for the chosen services (--mdns-services):

flowchart LR
  Firewall -->|iot0| mc[Multicast to VLAN
  query for mdns-services] --> sonos[Speakers respond]-->|iot0 reply| Firewall

mdns-filoxy caches that response, and then lies in wait, ready to respond to any queries that arrive on eth0.

Once mdns-filoxy is up and listening, here's the sequence of events:

flowchart LR
    phone[Phone
    Sonos app
    launched] --> mc[Multicast to VLAN
    query for _sonos._tcp.local.] -->|eth0| Firewall -->|eth0 reply| phone

Notice that the queries and responses aren't bi-directional, and this is intentional. The software is meant to give minimal assistance to mDNS/IoT devices to get bootstrapped and then on with whatever other evil protocol(s) they use.

What's with the name?!

filoxy is my blend of "filter" and "proxy", as that's basically what this software does.

Installation

The recommended way to install mdns-filoxy is to use pipx.

After getting pipx installed, simply run:

username@host:~$ pipx install mdns-filoxy

You can of course also install it using classic virtualenvs.

Running as a systemd service

mdns-filoxy runs continuously, so systemd is the tidiest way to keep it running. The repository ships a template unit, mdns-filoxy@.service (the link downloads the raw file). The instance name is the user to run as, and the pipx-installed binary is resolved from that user's home directory (assuming homes live under /home), so no username is hardcoded.

Edit the ExecStart= line to match your interfaces and services, then:

username@host:~$ sudo install -m 644 mdns-filoxy@.service \
    /etc/systemd/system/mdns-filoxy@.service
username@host:~$ sudo systemctl daemon-reload
username@host:~$ sudo systemctl enable --now mdns-filoxy@$(whoami)

Follow the logs with:

username@host:~$ journalctl -u mdns-filoxy@$(whoami) -f

License

mdns-filoxy is distributed under the terms of the MIT license.

Metadata

Release files for mdns-filoxy 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mdns-filoxy 1.2.2
File Size Uploaded Provenance Actions
mdns_filoxy-1.2.2.tar.gz 1.5 MB With provenance Details for mdns_filoxy-1.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mdns-filoxy 1.2.2
File Interpreter ABI Platform Actions
mdns_filoxy-1.2.2-py3-none-any.whl Python 3 none any Details for mdns_filoxy-1.2.2-py3-none-any.whl

Total release size: 1.5 MB

Release files / mdns_filoxy-1.2.2.tar.gz

Download URL mdns_filoxy-1.2.2.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
60f657ab1dcdfa10d511da797004a957f9878b6d8657b46eb4d516028f901349
BLAKE2b-256 checksum
How to use checksums
5b7aa712134dfb32b3fc6e6a1a00ebc1f5112c85a6c83f63b75eaf24aa00a0b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / mdns_filoxy-1.2.2-py3-none-any.whl

Download URL mdns_filoxy-1.2.2-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec2cde7968633b795e9b0985ed8c365082243278e100f56005f750897be455e9
BLAKE2b-256 checksum
How to use checksums
f9fa3c31d061298c520bd374d87aa25d266e400b54f1257d4ca907681654d693
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for mdns-filoxy 1.2.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mdns_filoxy-1.2.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page