Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 2016 23:00:05 +0300
From:      Rozhuk Ivan <rozhuk.im@gmail.com>
To:        Gerrit =?UTF-8?B?S8O8aG4=?= <gerrit.kuehn@aei.mpg.de>
Cc:        freebsd-net@freebsd.org
Subject:   Re: upnp/dlna
Message-ID:  <20160115230005.3d2ec005@rimwks>
In-Reply-To: <20160115145225.e0dbde9632d5122df8acbb41@aei.mpg.de>
References:  <20160115145225.e0dbde9632d5122df8acbb41@aei.mpg.de>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, 15 Jan 2016 14:52:25 +0100
Gerrit Kühn <gerrit.kuehn@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160115230005.3d2ec005>