Restrict access to minidlna service

Hello community!

I have set up minidlna on my openwrt router to distribute some music to connected clients. However, I don't want all clients to have access to the minidlna service.

Is it somehow possible to whitelist/blacklist clients to not be able to use the minidlna service? Would it be possible to block certain interfaces/vlans to access the minidlna service?

For Minidlna there is a setting called 'network_interface' that defines what network interfaces to serve. In standard it is set to 'br-lan'. That means it serves all interfaces. If I unset 'br-lan' and set it to serve a certain wireless adapter only (e.g. wlan1) this doesn't work. The minidlna server cannot be found then.

I really don't understand how to only serve certain adapters and the documentation for minidlna is quite non-existing.

Any ideas would be appreciated.

You can check here: https://help.ubuntu.com/community/MiniDLNA, I am not sure if it will work on OpenWrt..

Thanks for pointing to this manual. Unfortunately, it doesn't really help because it basically contains the same information that can be found on the OpenWRT website. Setting 'network_interface=' just doesn't seem to work. Or, it is supposed to work in a different way and I misunderstand this setting.

I was looking at " Configuration Locally (per user)" section. You may assign different users and prevent some of them to access the server. Again- I am not sure if it is going to work.

I couldn't figure out how to restrict minidlna for some network interfaces so I took another route.

For anybody facing the same question:

I instead set a traffic rule, blocking port 8200 for the specific clients.

So in my case it is:
Incoming IPv4 and IPv6
From lan, IP 192.168.x.xxx
To this device, port 8200
Reject input

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.