Solved PTR pointers in PF blocked log?

This is something I have never seen,first the scenario

Use PF as local firewall for all my network,cameras,wifi,computers and android tv boxes,here is the strange things...
but first

the most relevant part of my PF conf file

(blocked all by default)


Code:
forward_decos="{53,8118,123,8081,5228,853,5353,443,80,5353}"
forward_decos_udp="{53,123,443,3478}"

Code:
pass quick on $int_if proto igmp from <decos>  allow-opts
pass in on $int_if inet proto tcp from <decos> to any port $forward_decos flags S/SA keep state
pass out on $int_if inet proto tcp from <decos> to any port $forward_decos flags S/SA keep state
pass in on $int_if inet proto tcp from any to <decos> port $forward_decos flags S/SA keep state
pass out on $int_if inet proto tcp from any to <decos> port $forward_decos flags S/SA keep state

pass in on $int_if inet proto udp from <decos> to any port $forward_decos_udp
pass in on $int_if inet proto udp from any to <decos> port $forward_decos_udp

pass out on $int_if inet proto udp from <decos> to any port $forward_decos_udp
pass out on $int_if inet proto udp from any to <decos> port $forward_decos_udp

monitoring with (192.168.9.6 is one of the android tv box)
tcpdump -n -e -ttt -i pflog0 | grep 192.168.9.6
In small steps I see what is blocked, and I make the ACL whitelist of ports,but the lasts rejected logs..nocked me out
Note: "claro" is a provider of "all in one" services heres, internet+tv channels with and optional of physical decoders, in this case 192.168.9.6

Code:
 00:00:01.230237 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0 [1n] ANY (QM)? Claro TV Box 4k._androidtvre>
 00:00:00.252934 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0 [1n] ANY (QM)? Claro TV Box 4k._androidtvre>
 00:00:00.251758 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0 [1n] ANY (QM)? Claro TV Box 4k._androidtvre>
 00:00:00.305956 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0*- [0q] 8/0/4 (Cache flush) PTR Android_50d1>
 00:00:00.913677 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0*- [0q] 8/0/4 (Cache flush) PTR Android_50d1>
 00:00:00.689693 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0*- [0q] 8/0/4 (Cache flush) PTR Android_50d1>
 00:00:00.121828 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0 [2q] [3n] ANY (QM)? Claro-TV-Box-4k-cab6ce8>
 00:00:00.020827 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)     
 00:00:00.230385 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0 [2q] [3n] ANY (QM)? Claro-TV-Box-4k-cab6ce8>
 00:00:00.251466 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0 [2q] [3n] ANY (QM)? Claro-TV-Box-4k-cab6ce8>
 00:00:00.106129 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0*- [0q] 8/0/4 (Cache flush) PTR Android_50d1>
 00:00:00.133435 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0*- [0q] 4/0/0 PTR Claro-TV-Box-4k-cab6ce8e2c>
 00:00:00.230474 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0*- [0q] 4/0/0 PTR Claro-TV-Box-4k-cab6ce8e2c>
 00:00:00.492875 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0 PTR (QM)? _googlecast._tcp.local. (40)
 00:00:00.000519 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0*- [0q] 1/0/3 PTR Claro-TV-Box-4k-cab6ce8e2c>
 00:00:00.099995 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0*- [0q] 1/0/0 PTR Claro-TV-Box-4k-cab6ce8e2c>
 00:00:00.665733 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0*- [0q] 4/0/0 PTR Claro-TV-Box-4k-cab6ce8e2c>
 00:00:00.007441 rule 0/0(match): block in on re0: 192.168.9.6.5353 > 224.0.0.251.5353: 0*- [0q] 1/0/0 PTR Claro-TV-Box-4k-cab6ce8
 
Update:
from google..it was multiDns

Code:
# Allow mDNS IPv4
pass in quick on $int_if proto udp from <decos> to 224.0.0.251 port 5353 keep state
pass out quick on $int_if proto udp from <decos> to 224.0.0.251 port 5353 keep state

have to adapt it to my file but it works
 
Back
Top