Bug #4668
Limit Connections - not limiting per users - only per IP
0%
Description
I've created a user, and set the 'Limit Connections' parameter to 1.
I am able to make subscriptions on 2 different machines (through Kodi) without any problem, see screenshot attached.
Is this by design? if so, would it be possible to limit the number of subscriptions per user?
PS: My usecase is simple: I have 2 clients (both Kodi), and I want to apply a CA to 2 different tuners, but the concurrency of the CA should be limited to 1 (otherwise will be blocked or whatever) - hence I was trying to use the same user for both clients, but this seem to fail.
Files
History
Updated by N Z about 7 years ago
Updated by Jaroslav Kysela about 7 years ago
Provide '--trace access,htsp' - https://tvheadend.org/projects/tvheadend/wiki/Traces .
Updated by N Z about 7 years ago
For some reason, it started blocking when I added the trace.
2017-10-16 05:15:53.694 htsp: Got connection from 192.168.1.139 2017-10-16 05:15:53.694 htsp: 192.168.1.139: Welcomed client software: Kodi Media Center (HTSPv25) 2017-10-16 05:15:53.696 htsp: 192.168.1.139 [ Kodi Media Center ]: Identified as user 'kodi' 2017-10-16 05:15:53.696 htsp: 192.168.1.139 [ kodi | Kodi Media Center ]: Privileges updated 2017-10-16 05:15:56.697 tcp: multiple connections are not allowed for user 'kodi' from 'kodi' (limit 0, streaming limit 1, active streaming 13, DVR 0)
In anyway, this is not what I am looking for - as I mentioned I want to limit the subscriptions per user. I will try adding a PR for that. Thanks!
Updated by Mono Polimorph about 7 years ago
Hi,
I suggest this also for SAT>IP connections. It be interesting to limit the number of "clients" (with the SAT>IP protocol the client it's identified by the IP address only).
Regards.
Updated by N Z about 7 years ago
I was able to achieve my goal by using OSCAM (running on docker) as my CA.
more details here: https://tvheadend.org/boards/13/topics/16033