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 

deny-ip

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



Joined: 02 Dec 2009
Posts: 9

PostPosted: Tue Dec 15, 2009 5:08 pm    Post subject: deny-ip Reply with quote

I'm trying to implement the <deny-ip> tag in the paths section using the following config :
<paths>
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
<alias source="/console" dest="/index.html"/>
<alias source="/7.html" dest="/7.xsl"/>

<alias source="/" port="8199" dest="/High"/>
<alias source="/" port="8201" dest="/Low"/>

<alias source="/listen.pls" port="8199" dest="/listenhigh.pls"/>
<alias source="/listen.pls" port="8201" dest="/listenlow.pls"/>

<deny-ip>/path/to/MyApache/htdocs/BannedIP.txt</deny-ip>
</paths>

The file exists and has a IP in it. I then executed a reload from the web admin interface. Checking the logs, (Debug=4) I see no complaint, however, the client remains connected.

So I'm wondering, is the path in the deny-ip relative to an alternate root that I'm not catching ?


WIN 32 KH
Back to top
View user's profile Send private message
Jorgo



Joined: 29 Nov 2008
Posts: 8

PostPosted: Tue Dec 15, 2009 7:15 pm    Post subject: Reply with quote

From my limited understanding of how these things work, an existing connection will not be terminated, rather new connections from banned IPs will be prevented. So it may not be a path problem.
Back to top
View user's profile Send private message
jmashore



Joined: 02 Dec 2009
Posts: 9

PostPosted: Tue Dec 15, 2009 7:22 pm    Post subject: Reply with quote

I thought that might be the case too, but no such luck. I tried disconnecting my test client and reconnecting and had no problems reconnecting.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Dec 15, 2009 8:58 pm    Post subject: Reply with quote

When a client connects, you should see an attempt at reloading the specified file when it has been modified (eg touch /path/to/MyApache/htdocs/BannedIP.txt).

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



Joined: 02 Dec 2009
Posts: 9

PostPosted: Tue Dec 15, 2009 11:21 pm    Post subject: Reply with quote

yeah..I'm not seeing that anywhere in the error.log and I have debug set to 4..that's why I thought I had boggled the path.
Back to top
View user's profile Send private message
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