| View previous topic :: View next topic |
| Author |
Message |
madjo
Joined: 18 Jan 2009 Posts: 4
|
Posted: Sun Jan 18, 2009 2:13 am Post subject: set up ports for specific mountpoints |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Jan 18, 2009 5:38 am Post subject: |
|
|
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 |
|
 |
madjo
Joined: 18 Jan 2009 Posts: 4
|
Posted: Sun Jan 18, 2009 11:14 am Post subject: |
|
|
Thanks a lot, that indeed solves the problem.  |
|
| Back to top |
|
 |
|