Sample Header Ad - 728x90

UPnP with firewalld

2 votes
0 answers
1744 views
This question is probably related to: https://unix.stackexchange.com/questions/19060/fedora-firewall-with-upnp Because newer fedora workstations use firewalld, it's a bit of a different situation. The problem I'm experiencing is that I can't reliably detect UPnP servers with my fedora workstation unless I disable firewalld altogether. I tried adding 1900/UDP to my active zone as well as the service upnp-client (which is the same thing). On the server side of things (gerbera), I only opened 1900/UDP and 49152/TCP - this is detected in an instant when the firewall of the client is disabled. I don't think that the server is at fault as all the other devices do not show up either when firewalld is active - except my router for some reason. (Also, sometimes gerbera showed up after some time without me changing the firewall settings of my workstation). Wireshark gets me this:
Internet Protocol Version 4, Src: workstation, Dst: server
Internet Control Message Protocol
    Type: 3 (Destination unreachable)
    Code: 13 (Communication administratively filtered)
    Checksum: 0x[...] [correct]
    [Checksum Status: Good]
    Unused: 00000000
    Internet Protocol Version 4, Src: server, Dst: workstation
    User Datagram Protocol, Src Port: 1900, Dst Port: 56198
Simple Service Discovery Protocol
[...]
---- I'm using gupnp-tools to detect the server.
Asked by rudib (1764 rep)
Dec 24, 2020, 10:49 AM
Last activity: Dec 24, 2020, 11:08 AM