upnp/dlna

Rozhuk Ivan rozhuk.im at gmail.com
Fri Jan 15 20:00:47 UTC 2016


On Fri, 15 Jan 2016 14:52:25 +0100
Gerrit Kühn <gerrit.kuehn at aei.mpg.de> wrote:

> I have two FreeBSD boxes running mediatomb and minidlna. I also have a
> couple of clients, mostly internet radios by different manufacturers
> (Sangean, Philips, Renkforce...).
> I have the (weird) issue that neither mediatomb nor minidlna appears
> to see the multicasts discovery messages (not even with tcpdump!)
> sent by the clients. Subsequently they never answer them and are not
> found by the client devices.

PF by default drop all ip packets with options.
IGMP use ip options -> pf drop all igmp.


pass in quick inet6 proto icmp6 no state allow-opts # mld (igmp6) also here
pass out quick inet6 proto icmp6 no state allow-opts # mld (igmp6) also here

pass out quick inet proto udp to 224.0.0.0/4 no state allow-opts
pass out quick inet proto igmp to 224.0.0.0/4 no state allow-opts
pass out quick inet proto icmp no state allow-opts
pass out quick inet6 proto udp to ff00::/8 no state allow-opts # Allow send multicast
pass out quick inet6 proto icmp6 no state allow-opts # mld (igmp6) also here
pass out quick flags S/SA allow-opts

## Rules exception
pass in quick inet proto udp to 224.0.0.0/4 no state # Allow receive multicast
pass in quick inet proto igmp to 224.0.0.0/4 no state allow-opts
pass in quick inet proto icmp no state
pass in quick inet6 proto udp to ff00::/8 no state # Allow receive multicast
pass in quick inet6 proto icmp6 no state allow-opts # mld (igmp6) also here



More information about the freebsd-net mailing list