karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
299 stars 107 forks source link

allow-ip config #245

Closed edinsof closed 5 years ago

edinsof commented 5 years ago

Hi i need to config only ip ranges but when make (186.112.87.0/27) it don't works (186.112.87.*) this yes works

can be posible to get (186.112.87.0/27) to works?

kleinadam commented 5 years ago

/27 are 30 (32) IPs, so try few entries like: 186.112.87.0 186.112.87.1 186.112.87.2 .... 186.112.87.9 186.112.87.1 186.112.87.2 186.112.87.30 186.112.87.31

kleinadam commented 5 years ago

What about a block via iptables / firewall?

edinsof commented 5 years ago

im running centovacast, i only need to apply to one streaming account because this only will allow connections from Colombia

jesseorr commented 5 years ago

Edin,

It might be better to set up a PHP auth layer which Icecast sends the requests to specific to the instance in question. The PHP layer can handled the IP blacklisting and send back the Icecast auth header allowing the client to tune in. The PHP instance can live on the same server, or be centralized. Technically it doesn’t need to be PHP, it could be node, python, whatever.

Reference: https://icecast.org/docs/icecast-2.4.1/auth.html -> URL Auth

Jesse

From: Edin Melchor notifications@github.com Sent: Monday, January 14, 2019 7:18 AM To: karlheyes/icecast-kh icecast-kh@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [karlheyes/icecast-kh] allow-ip config (#245)

im running centovacast, i only need to apply to one streaming account because this only will allow connections from Colombia

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/karlheyes/icecast-kh/issues/245#issuecomment-454040716 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFbs_gbBDLGM3MsfpsJ5pGiNFCJAQZlKks5vDJ-xgaJpZM4Z9qnY . https://github.com/notifications/beacon/AFbs_gul2ECBC1hPjIaZ4Jxplx6goov_ks5vDJ-xgaJpZM4Z9qnY.gif