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 

A quick Q about <allow-ip>

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



Joined: 11 Feb 2009
Posts: 155
Location: Western Illinois - USA

PostPosted: Sat Dec 12, 2009 7:27 pm    Post subject: A quick Q about <allow-ip> Reply with quote

Hi karl and gang:

heres a piece of my cfg file... (in example)

<listen-socket>
    <port>8000</port>
    <bind-address>64.6.9.129</bind-address>
    <shoutcast-mount>/dj</shoutcast-mount>
</listen-socket>

<mount>
    <mount-name>/dj</mount-name>
    <password>-omitted-</password>
    <genre>Mixed Techno Rock Comedy</genre>
    <allow-ip>12.34.56.78</allow-ip>
    <no-yp>1</no-yp>
    <public>0</public>
    <hidden>1</hidden>
</mount>

the question is with the <allow-ip> tag

doesn't seem to work!

is that for incoming (source) or outgoing (client) connectons?

-OR-

what am I doing wrong here?


I have determmine that it doesn't [seem to] block "other" clients, not being on the (example) IP 12.343.56.78

(the actual IP was omitted since its an internal IP and I don't want that made public)

in posting, I MIGHT have found my mistake...

I'm gonna try moving the <allow-ip> tag to the <listen mount> delimiter..

but I'll post this anyways

UPDATE:

no, I'm being silly! I want to block a MOUNT from only listening clients EXCEPT a specific IP/client.. but its on the main listen port with all the other mounts which ARE Okay to be listened/casted to. (that mount CAN also be casted to by others if they have the proper input PW)
_________________
-DjZ-
Smile Smile
Back to top
View user's profile Send private message Visit poster's website
sofaspace



Joined: 14 Feb 2009
Posts: 14

PostPosted: Sun Dec 13, 2009 11:10 am    Post subject: Reply with quote

that setting doesn't work like that. you have to place it in a <path> directive and point it to a file containing your ips. but beware, it affects all mount points!

Code:

   <paths>
        <basedir>./</basedir>
        <logdir>./logs</logdir>
        <pidfile>./icecast.pid</pidfile>
        <webroot>./web</webroot>
        <adminroot>./admin</adminroot>
        <allow-ip>/path/to/ip_allowlist</allow-ip>
        <deny-ip>/path_to_ip_denylist</deny-ip>
        <alias source="/foo" dest="/bar"/>
    </paths>


Quote:
allow-ip

If specified, this specifies the location of a file that contains a list of IP addresses that will be allowed to connect to icecast. This could be useful in cases where a master only feeds known slaves. The format of the file is simple, one IP per line.

deny-ip

If specified, this specifies the location of a file that contains a list of IP addressess that will be dropped immediately. This is mainly for problem clients when you have no access to any firewall configuration. The format of the file is simple, one IP per line.



read the manual for more infos: http://www.icecast.org/docs/icecast-2.3.2/icecast2_config_file.html

kind regards,
roberto
_________________
http://www.sofaspace.net
Back to top
View user's profile Send private message Visit poster's website
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