0

I use gupnp-av-cp application to play, pause, volume up/down, stop in short to control media buttons on TV which is connected to local area network. But When I enable ufw firewall then it fails to reach TV.

I added a rule to /etc/ufw/applications.d/gupnp-av-cp

 [gupnp-av-cp]
 title=Media Controller
 description=Local Area Media
 ports=80,60999/tcp

reloaded ufw

 sudo ufw reload

but it doesn't work properly.

I don't know which port ranges to allow

kenn
  • 5,232

2 Answers2

2

As far as I'm informed, you have just given ufw the information about a protocol. But now you have to enable it. You can perform this with the following command:

ufw app update gupnp-av-cp
ufw allow gupnp-av-cp

Then you can reload ufw and it should work.

Also consider looking at: how do you create an app profile for ufw?

MelcomX
  • 93
0

In my case I have to apply the following steps:

I added a rule to /etc/ufw/applications.d/gupnp-av-cp

[gupnp-av-cp]
title=Media Controller
description=Local Area Media
ports=80:60999/tcp|1900:60999/udp

Then

sudo ufw allow  from 192.168.1.110/24 to any app gupnp-av-cp 

Finally

sudo ufw reload

You also need to enable UPNP in your modem. 192.168.1.110 is local ip address of my computer.

kenn
  • 5,232