blacktwin / JBOPS

Just a Bunch Of Plex Scripts
1.67k stars 307 forks source link

Kill stream based on IP range? #291

Closed spdrcr5 closed 3 years ago

spdrcr5 commented 3 years ago

Is it possible to use Killstream to prevent a range of IPs from being able to play anything?

Thanks

Anuruddha094 commented 3 years ago

@spdrcr5 yes you can. you need to use kill_stream.py. You can whitelist all ips who you want to allow media streaming and who is not in that list will be blocked by the script.

https://github.com/blacktwin/JBOPS/tree/master/killstream#ip-whitelist

cheers

spdrcr5 commented 3 years ago

Appreciate the answer and info. Unfortunately that wouldn’t work as I know people connect using mobile devices and others travel including myself. I would prefer to blacklist a set of known ranges.

Thanks

On Sun, Apr 18, 2021 at 8:38 AM Anuruddha Karunanayake < @.***> wrote:

@spdrcr5 https://github.com/spdrcr5 yes you can. you need to use kill_stream.py. You can whitelist all ips who you want to allow media streaming and who is not in that list will be blocked by the script.

https://github.com/blacktwin/JBOPS/tree/master/killstream#ip-whitelist

cheers

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/blacktwin/JBOPS/issues/291#issuecomment-821985408, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ6I6CNIK6U6FHOXDM3ZBKLTJLHDZANCNFSM43DXIYBQ .

Anuruddha094 commented 3 years ago

@spdrcr5 I think @blacktwin will reply you soon. He is the creator of all those scripts. Anyway why don't you block unwanted users by username or email.

Conditions: [ Username | is | Bob ] Conditions: [ User Email | is | bob@bobemail.com ]

https://github.com/blacktwin/JBOPS/tree/master/killstream#kill-all-of-a-users-streams-with-notification

cheers

blacktwin commented 3 years ago

I don't believe that Tautulli would accept a range or even subnet notation in the conditions fields. Conditions are what drive the script. You could get creative with the different operators that work with the IP Address parameter image

Why are you trying to blacklist IP addresses? What is it that you are trying to do or prevent?

spdrcr5 commented 3 years ago

A friend is sharing his Plex account with someone and I want to block them entirely. Not worth getting into a fight about it. Just pisses me off. I figured if I could block the entire ISPs block of IPs it would knock them off. They are out of state and it could work.

On Sun, Apr 18, 2021 at 5:07 PM blacktwin @.***> wrote:

I don't believe that Tautulli would accept a range or even subnet notation in the conditions fields. Conditions are what drive the script. You could get creative with the different operators that work with the IP Address parameter

[image: image] https://user-images.githubusercontent.com/22177672/115160857-66ff9180-a068-11eb-806d-fd5135a18f40.png

Why are you trying to blacklist IP addresses? What is it that you are trying to do or prevent?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/blacktwin/JBOPS/issues/291#issuecomment-822061720, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ6I6CJ4PDECOMDNC5BJBWDTJNCZPANCNFSM43DXIYBQ .

spdrcr5 commented 3 years ago

I see it says Begins With. Maybe that would accept the first 2 octets? Meaning if I enter 57.25. Would that cover all IPA?

On Sun, Apr 18, 2021 at 5:07 PM blacktwin @.***> wrote:

I don't believe that Tautulli would accept a range or even subnet notation in the conditions fields. Conditions are what drive the script. You could get creative with the different operators that work with the IP Address parameter

[image: image] https://user-images.githubusercontent.com/22177672/115160857-66ff9180-a068-11eb-806d-fd5135a18f40.png

Why are you trying to blacklist IP addresses? What is it that you are trying to do or prevent?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/blacktwin/JBOPS/issues/291#issuecomment-822061720, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ6I6CJ4PDECOMDNC5BJBWDTJNCZPANCNFSM43DXIYBQ .

blacktwin commented 3 years ago

If someone is account sharing then remove them or unshare your libraries with them until they change their password. This is a lot simpler than what you're attempting to. If this causes a "fight" then you have something else to consider. Generosity has it's limits.