View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Sat Jan 06, 2007 5:02 pm Post subject: limit connections per ip |
|
|
how to limit user client connections per ip? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Jan 06, 2007 5:17 pm Post subject: |
|
|
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 |
|
|
Anonymous Guest
|
Posted: Sat Jan 06, 2007 5:27 pm Post subject: |
|
|
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
|
Posted: Sat Jan 27, 2007 4:59 pm Post subject: |
|
|
Quote: |
how to limit the client max connetions per ip? for example 2 users per ip |
YES!!! is a good feature |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Mon Jan 29, 2007 12:14 pm Post subject: |
|
|
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 |
|
|
|