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 

set up ports for specific mountpoints

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



Joined: 18 Jan 2009
Posts: 4

PostPosted: Sun Jan 18, 2009 2:13 am    Post subject: set up ports for specific mountpoints Reply with quote

Hi,

I'm trying to set up an icecast relay server, where one mountpoint has no authentication, which is only accessible internally in the network,
and another mountpoint that is accessible from outside, but has authentication enabled.

Currently my set up looks like this (only the relevant parts):
Code:
    <listen-socket>
        <port>8011</port>
    </listen-socket>

    <listen-socket>
        <port>8111</port>
    </listen-socket>

    <relay>
        <server>#address#</server>
        <port>8011</port>
        <mount>/live</mount>
        <local-mount>/stream</local-mount>
        <on-demand>1</on-demand>
        <username>#user#</username>
        <password>#pass#</password>
        <relay-shoutcast-metadata>1</relay-shoutcast-metadata>
    </relay>
 
    <relay>
        <server>#address#</server>
        <port>8011</port>
        <mount>/live</mount>
        <local-mount>/live</local-mount>
        <on-demand>1</on-demand>
        <username>#user#</username>
        <password>#pass#</password>
        <relay-shoutcast-metadata>1</relay-shoutcast-metadata>
    </relay>


    <mount>
        <mount-name>/stream</mount-name>
        <!--<port>8111</port>-->
        <hidden>1</hidden>
        <max-listeners>1</max-listeners>
        <public>0</public>
    </mount>

    <mount>
        <mount-name>/live</mount-name>
        <max-listeners>3</max-listeners>
        <!--<port>8011</port>-->
        <public>0</public>
        <authentication type="htpasswd">
               <option name="filename" value="/etc/icecast2/myauth"/>
               <option name="allow_duplicate_users" value="0"/>
        </authentication>
    </mount>


I already tried to setup two listener sockets (ports 8011 and 8111) but those settings apply to both streams. I wish to apply port 8011 to /live (externally available) and port 8111 to /mount (internal only)

The commented section in the mount points also didn't work.

Could someone help me out here, and tell me if it's even possible?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Jan 18, 2009 5:38 am    Post subject: Reply with quote

There's no mapping of ports to mountpoints really, but you could prevent access to a mountpoint based on port by using an alias

Assuming /mount on port 8011 is not allowed then set an alias like

<alias port="8011" source="/mount" dest="/status.xsl">

but allow port 8111 to get access to /mount

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



Joined: 18 Jan 2009
Posts: 4

PostPosted: Sun Jan 18, 2009 11:14 am    Post subject: Reply with quote

Thanks a lot, that indeed solves the problem. Smile
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