Project

General

Profile

Bug #4668

Limit Connections - not limiting per users - only per IP

Added by N Z over 4 years ago. Updated about 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Configuration
Target version:
-
Start date:
2017-10-14
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-517~g5be1a5a8e
Affected Versions:

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

#2

Updated by Jaroslav Kysela over 4 years ago

#3

Updated by N Z over 4 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!

#4

Updated by Mono Polimorph over 4 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.

#5

Updated by N Z about 4 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

Also available in: Atom PDF