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 

create mountpoint password and ban ips: Icecast 2.3.2 .win32
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Thu Jun 12, 2008 11:35 pm    Post subject: create mountpoint password and ban ips: Icecast 2.3.2 .win32 Reply with quote

Hiya

I'm running Icecast 2.3.2 on a Windows 2003 Box as a service.

I've tried to create passwords for individual mount-points and it doesn't seem to work. I've googled alot and other people experience the same problem.
Do the password feature work for windows, or not?

If it does work, can some1 please provide me with an example config?

Here is mine:
Code:
<mount>
        <mount-name>/tommy</mount-name>
        <password>tom456</password>
        <max-listeners>2</max-listeners>
        <burst-size>65536</burst-size>
        <hidden>1</hidden>
        <public>0</public>
    </mount>


Also i would like to ban ip address's (to stop certain djs from connecting) via sending a post to the admin page or a personalised xsl page, can this be done?

Thanks in advance!
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jun 13, 2008 12:49 am    Post subject: Reply with quote

I've not heard of reports of issues with per-mount passwords not working. The only cases that have been mentioned were down to a configuration error typically caused by the mount section being commented out in the xml. There's no reason for windows to not have this feature. The snippet you posted looks ok but obviously I only see a small fragment.

There's no /admin mechanism to dynamically add IPs to the ban/accept files. You can of course use a web server script to do that if you wish, icecast will automatically re-read them.

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





PostPosted: Fri Jun 13, 2008 4:59 pm    Post subject: Reply with quote

Hiya Karl!

Thanks for the rapid responce! Smile

Please find below our full config, with obvious passwords and ports masked:

Code:

<icecast>
    <limits>
        <clients>5</clients>
        <sources>5</sources>
        <threadpool>5</threadpool>
        <queue-size>524288</queue-size>
        <client-timeout>30</client-timeout>
        <header-timeout>15</header-timeout>
        <source-timeout>10</source-timeout>

        <burst-on-connect>1</burst-on-connect>

        <burst-size>65535</burst-size>
    </limits>

    <authentication>
        <source-password>XXXXXXXX</source-password>

        <relay-password>XXXXXXXX</relay-password>

        <admin-user>XXXXXX</admin-user>
        <admin-password>XXXXXXXX</admin-password>
    </authentication>

    <hostname>XXXXXXXX</hostname>

    <listen-socket>
        <port>XXXX</port>
    </listen-socket>

    <mount>
        <mount-name>/tommy</mount-name>
        <password>tom456</password>
        <max-listeners>2</max-listeners>
        <burst-size>65536</burst-size>
        <hidden>1</hidden>
        <public>0</public>
    </mount>

    <fileserve>1</fileserve>

    <paths>
        <basedir>./</basedir>
        <logdir>./logs</logdir>
        <webroot>./web</webroot>
        <adminroot>./admin</adminroot>
        <alias source="/" dest="/status.xsl"/>
    </paths>

    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
         <loglevel>4</loglevel>
         <logsize>10000</logsize>
    </logging>

    <security>
        <chroot>0</chroot>
    </security>
</icecast>


I get an error 401 with the sam encoder, which you cannot input a username but only a password along with the mount-point.

We also stream using mp3 pro, although this shouldnt matter?

Thanks in advance!
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jun 13, 2008 7:40 pm    Post subject: Reply with quote

wow mp3pro, didn't know anyone still used that. Either way, it will pass through just like mp3 does.

The xml looks valid, obviously you have to check the error log to be sure of the exact reason for rejection, it could be down to a low clients setting.

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





PostPosted: Fri Jun 13, 2008 11:37 pm    Post subject: Reply with quote

yup mp3pro suites use better than ogg as that crashes winamp and still isnt very stable.

ok i've put the max clients and source both to 100 from 5, and still i get the error:

Code:
[2008-06-14  00:32:26] INFO connection/connection.c Source logging in at mountpoint "/tomtaylor"
[2008-06-14  00:32:26] INFO connection/connection.c Source (/tomtaylor) attempted to login with invalid or missing password


i've tried different combinations of passwords, and nothing seems to work!

any idea, or could you give me an example of a config file which works with mount-points having their own passwords?

i want to do this to restrict the server to certain djs

with regards to banning ips, doesnt the latest version 2.3.2 support it??

thanks
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jun 13, 2008 11:49 pm    Post subject: Reply with quote

I know winamp is not that great but I haven't heard much of ogg in winamp crashing, but then I don't use windows.

The mountpoint from the log snippet indicates that you'll be matching the global source password (/tomtaylor != /tommy) so the username is source and the password needs to be whatever you set in source-password.

Yes 2.3.2 has banning ip support.

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





PostPosted: Fri Jun 13, 2008 11:58 pm    Post subject: Reply with quote

how should the mount-points be setup in the xml so each one can have its own password??

how can the global source-password be disabled?

i've not changed anythin since i posted my config above, so use that to make any changes

if i wanted to ban an ip on the win32 version, how would i?

thanks again
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Jun 14, 2008 12:10 am    Post subject: Reply with quote

Each broadcaster/DJ would have their own mountpoint with each mount having it's own username/password combination.

You don't disable the global source password, you just don't give it out. I don't intend to make changes to the xml as it looks fine, the connection is just being rejected because the passwords (whatever they are) don't match.

As mentioned in docs

<paths>
...
<deny-ip>/location/of/file/with/IPs</deny-ip>


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





PostPosted: Sat Jun 14, 2008 12:15 am    Post subject: Reply with quote

thanks for the ban ip support, ill check that out

with regards to the passwords for each individual mountpoint, there must be a bug then as the passwords are the same, i shouldnt be getting a 401 error on both the source and the icecast server??

i've noticed alot of people have problems with this, it possibl you can test it out, as im sure it doesnt work - if you say my config is correct?

thanks again
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Jun 14, 2008 12:32 am    Post subject: Reply with quote

I can only say general comments based on what little information you are giving me. What other reports of source auth failure are you referring to?

Your xml is correct but you have blanked out the passwords and I have no idea what your source client is trying to authenticate as. You may of changed the xml without restarting icecast. There's just too many missing factors that prevent me giving something more precise.

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





PostPosted: Sat Jun 14, 2008 10:44 am    Post subject: Reply with quote

hiya karl

lol not every1 on this forum asking for help is thick haha Wink every time i've made a change to the config xml, i always restart it Razz

right i've managed to fix it and make it work, job done Smile

last question i have is, is it possible to force icecast to reload the latest config xml, without restarting the service in windows??

thanks again
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Jun 14, 2008 12:50 pm    Post subject: Reply with quote

Can you post what the problem was, for other people.

The 2.3 code on windows doesn't have the hook for reloading the xml yet, you can in my branch by selecting a link on the admin page. It doesn't seem to have an issue so that could be merged without issue.

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





PostPosted: Sat Jun 14, 2008 1:11 pm    Post subject: Reply with quote

Hiya

I restarted the box, added another mountpoint and reformatted the mount-point and it seemed to work ok then Smile

How do i get a copy of your windows version so i can try it out?
Will it be merged into the 2.3.2 build, as i can see on your website its only on 2.3.1???

Thanks again
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Jun 14, 2008 1:36 pm    Post subject: Reply with quote

2.3.1-kh34a is my latest, it has everything 2.3.2 has, I'll be renumbering the next release now that 2.3.2 is out.

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





PostPosted: Sat Jun 14, 2008 3:17 pm    Post subject: Reply with quote

ok great stuff! Smile

what new features can we look forward to in the next version?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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