Setting firewall ports for a service

NethServer Version: 7.9.2009
Module: miniDLNA

I have been setting up miniDLNA and I suspect I messed up the config for the firewall.

I only have the Green LAN interface on br0

I noticed that my TV was initially seeing the miniDLNA service.

Once I ran the following command, the TV cannot see miniDLNA anymore:

[root@fileserver log]# config set minildna service status enabled access green TCPPorts 8200 UDPPorts 1900
[root@fileserver log]# signal-event firewall-adjust

I tried the following command to remove the settings to no avail:

[root@fileserver log]# config delete minildna service status enabled access green TCPPorts 8200 UDPPorts 1900
[root@fileserver log]# signal-event firewall-adjust

Any advice on how to completely flush out those firewall settings?

You could remove or edit it on the services page in server manager:

On CLI you just need to execute:

config delete minidlna
signal-event firewall-adjust

If it’s just one port you need to set TCPPort. (without an s at the end) This might be the reason it didn’t work

config set minildna service status enabled access green TCPPort 8200 UDPPort 1900

2 Likes

Thanks, let me give that a try later today

That solved it, thanks again @mrmarkuz

1 Like