Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

limit connections per ip

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Sat Jan 06, 2007 5:02 pm    Post subject: limit connections per ip Reply with quote

how to limit user client connections per ip? Wink
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Jan 06, 2007 5:17 pm    Post subject: Reply with quote

Too vague to answer really, are you talking about denying listeners based on IP or only accepting listeners from certain IPs. You could use url auth to restrict access.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Sat Jan 06, 2007 5:27 pm    Post subject: Reply with quote

my radio has 10 users max. in some cases the users with too much bandwith open 11 players and denies the access to other listeners.

how to limit the client max connetions per ip? for example 2 users per ip
Back to top
Anonymous
Guest





PostPosted: Sat Jan 27, 2007 4:59 pm    Post subject: Reply with quote

Quote:
how to limit the client max connetions per ip? for example 2 users per ip


YES!!! is a good feature Razz
Back to top
Anonymous
Guest





PostPosted: Mon Jan 29, 2007 12:14 pm    Post subject: Reply with quote

These firewall rules (iptables) could help:

Code:
iptables -A INPUT -p tcp --dport 8000 -m state --state NEW -m recent -i eth0 --set --name ICECAST -j ACCEPT
iptables -A INPUT -p tcp --dport 8000 -m recent -i eth0 --update --seconds 60 --hitcount 4 --rttl --name ICECAST -j LOG --log-prefix "ICECAST_too_many_connections"
iptables -A INPUT -p tcp --dport 8000 -m recent -i eth0 --update --seconds 60 --hitcount 4 --rttl --name ICECAST -j DROP


This allows three connections within a minute by the same IP, the forth will cause the IP to be blocked for another minute.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber