[Icecast] Fw: Same problem as last time, with IPv6 off
Maarten Bezemer
mcbicecast at robuust.nl
Sat Feb 25 22:36:11 UTC 2012
Not sure what command line arguments openbsd netstat has, but for Linux,
there is the -a switch to also show listening sockets. (netstat -a -n |
grep LISTEN)
That might show whether or not icecast is listening to 0.0.0.0:8000 (or
its ipv6 counterpart :::8000 ) or to localhost only (127.0.0.1:8000 /
::1:8000)
If it is indeed listening to 0.0.0.0 and you are unable to connect to the
public IP, maybe there are some firewall rules prohibiting those
connections.
HTH,
Maarten
On Sat, 25 Feb 2012, per.gunnarsson at lappstockholm.se wrote:
>
>
>
>
> -----Originalmeddelande-----
> Från: "Per Gunnarsson" <per at 80-244-81-186.customer.t3.se>
> Till: per.gunnarsson at lappstockholm.se
> Datum: 2012-02-25 15:20
> Ämne: [Icecast] Same problem as last time, with IPv6 off
>
> OK, this is my configuration file:
>
> <icecast>
> <limits>
> <clients>100</clients>
> <sources>2</sources>
> <threadpool>5</threadpool>
> <queue-size>524288</queue-size>
> <client-timeout>30</client-timeout>
> <header-timeout>15</header-timeout>
> <source-timeout>10</source-timeout>
> <!-- If enabled, this will provide a burst of data when a client
> first connects, thereby significantly reducing the startup
> time for listeners that do substantial buffering. However,
> it also significantly increases latency between the source
> client and listening client. For low-latency setups, you
> might want to disable this. -->
> <burst-on-connect>1</burst-on-connect>
> <!-- same as burst-on-connect, but this allows for being more
> specific on how much to burst. Most people won't need to
> change from the default 64k. Applies to all mountpoints -->
> <burst-size>65535</burst-size>
> </limits>
>
> <authentication>
> <!-- Sources log in with username 'source' -->
> <source-password>hackme</source-password>
> <!-- Relays log in username 'relay' -->
> <relay-password>hackme</relay-password>
>
> <!-- Admin logs in with the username given below -->
> <admin-user>admin</admin-user>
> <admin-password>hackme</admin-password>
> </authentication>
>
> <!-- set the mountpoint for a shoutcast source to use, the default if not
> specified is /stream but you can change it here if an alternative is
> wanted or an extension is required
> <shoutcast-mount>/live.nsv</shoutcast-mount>
> -->
>
> <!-- Uncomment this if you want directory listings -->
> <!--
> <directory>
> <yp-url-timeout>15</yp-url-timeout>
> <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
> </directory>
> -->
>
> <!-- This is the hostname other people will use to connect to your server.
> It affects mainly the urls generated by Icecast for playlists and yp
> listings. -->
> <hostname>80-244-81-186.customer.t3.se</hostname>
>
> <!-- You may have multiple <listener> elements -->
> <listen-socket>
> <port>8000</port>
> <!-- <bind-address>80.244.81.186</bind-address> -->
> <!-- <shoutcast-mount>/stream</shoutcast-mount> -->
> </listen-socket>
> <!--
> <listen-socket>
> <port>8001</port>
> </listen-socket>
> -->
>
> <!--<master-server>127.0.0.1</master-server>-->
> <!--<master-server-port>8001</master-server-port>-->
> <!--<master-update-interval>120</master-update-interval>-->
> <!--<master-password>hackme</master-password>-->
>
> <!-- setting this makes all relays on-demand unless overridden, this is
> useful for master relays which do not have <relay> definitions here.
> The default is 0 -->
> <!--<relays-on-demand>1</relays-on-demand>-->
>
> <!--
> <relay>
> <server>127.0.0.1</server>
> <port>8001</port>
> <mount>/example.ogg</mount>
> <local-mount>/different.ogg</local-mount>
> <on-demand>0</on-demand>
>
> <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
> </relay>
> -->
>
> <!-- Only define a <mount> section if you want to use advanced options,
> like alternative usernames or passwords
> <mount>
> <mount-name>/complex-example.ogg</mount-name>
>
> <username>othersource</username>
> <password>hackmemore</password>
>
> <max-listeners>1</max-listeners>
> <dump-file>/tmp/dump-example1.ogg</dump-file>
> <burst-size>65536</burst-size>
> <fallback-mount>/ices.mp3</fallback-mount>
> <fallback-override>1</fallback-override>
> <fallback-when-full>1</fallback-when-full>
> <intro>/example_intro.ogg</intro>
> <hidden>1</hidden>
> <no-yp>1</no-yp>
> <authentication type="htpasswd">
> <option name="filename" value="myauth"/>
> <option name="allow_duplicate_users" value="0"/>
> </authentication>
> <on-connect>/home/icecast/bin/stream-start</on-connect>
> <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
> </mount>
>
> <mount>
> <mount-name>/auth_example.ogg</mount-name>
> <authentication type="url">
> <option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
> <option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
> <option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
> <option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
> </authentication>
> </mount>
>
> -->
>
> <fileserve>1</fileserve>
>
> <paths>
> <!-- basedir is only used if chroot is enabled -->
> <basedir>/var/icecast</basedir>
>
> <!-- Note that if <chroot> is turned on below, these paths must both
> be relative to the new root, not the original root -->
> <logdir>/log</logdir>
> <webroot>/web</webroot>
> <adminroot>/admin</adminroot>
> <!-- <pidfile>/var/run/icecast.pid</pidfile> -->
>
> <!-- Aliases: treat requests for 'source' path as being for 'dest' path
> May be made specific to a port or bound address using the "port"
> and "bind-address" attributes.
> -->
> <!--
> <alias source="/foo" dest="/bar"/>
> -->
> <!-- Aliases: can also be used for simple redirections as well,
> this example will redirect all requests for http://server:port/ to
> the status page
> -->
> <alias source="/" dest="/status.xsl"/>
> </paths>
>
> <logging>
> <accesslog>access.log</accesslog>
> <errorlog>error.log</errorlog>
> <!-- <playlistlog>playlist.log</playlistlog> -->
> <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
> <logsize>10000</logsize> <!-- Max size of a logfile -->
> <!-- If logarchive is enabled (1), then when logsize is reached
> the logfile will be moved to [error|access|playlist].log.DATESTAMP,
> otherwise it will be moved to [error|access|playlist].log.old.
> Default is non-archive mode (i.e. overwrite)
> -->
> <!-- <logarchive>1</logarchive> -->
> </logging>
>
> <security>
> <chroot>1</chroot>
> <changeowner>
> <user>_icecast</user>
> <group>_icecast</group>
> </changeowner>
> </security>
> </icecast>
>
>
> This is the output of netstat:
>
>
> Active Internet connections
> Proto Recv-Q Send-Q Local Address Foreign Address (state)
> tcp 0 0 80-244-81-186.18000 ns2.t3.se.domain TIME_WAIT
> tcp 0 0 80-244-81-186.6443 mail.knet.se.www ESTABLISHED
> tcp 0 0 80-244-81-186.47218 channel-jx-13-01.https ESTABLISHED
> tcp 0 0 80-244-81-186.14724 mail.t3.se.www ESTABLISHED
> tcp 0 0 80-244-81-186.21914 www-10-02-ash3.f.https ESTABLISHED
> tcp 0 0 80-244-81-186.7069 www-10-02-ash3.f.https ESTABLISHED
> tcp 0 0 80-244-81-186.35944 webmail.knet.se.www ESTABLISHED
> tcp 0 0 80-244-81-186.18947 channel-jx-13-01.https FIN_WAIT_2
> tcp 0 0 80-244-81-186.35978 channel-jx-13-01.https FIN_WAIT_2
> tcp 0 0 80-244-81-186.23906 www.kontrollpane.www ESTABLISHED
> tcp 0 0 80-244-81-186.1532 bk-in-f125.1e100.5222 ESTABLISHED
> tcp 0 0 80-244-81-186.1417 baymsg1020311.ga.1863 ESTABLISHED
> tcp 0 0 80-244-81-186.7079 cs218.msg.sp1.ya.5050 ESTABLISHED
> Active Internet connections
> Proto Recv-Q Send-Q Local Address Foreign Address (state)
> tcp6 0 0 localhost.8000 localhost.30729 ESTABLISHED
> tcp6 0 0 localhost.30729 localhost.8000 ESTABLISHED
> Active UNIX domain sockets
> Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr
> 0xd8498994 stream 0 0 0x0 0xd3427f00 0x0 0x0
> 0xd8498dd4 stream 0 0 0x0 0xd3204540 0x0 0x0
> 0xd8498114 stream 0 0 0x0 0xd3045040 0x0 0x0
> 0xd8498444 stream 0 0 0x0 0xd314bb00 0x0 0x0
> 0xd8498aa4 stream 0 0 0x0 0x0 0x0 0x0
> 0xd8498664 stream 0 0 0x0 0xd32d1240 0x0 0x0
> 0xd846b998 stream 0 0 0x0 0x0 0x0 0x0
> 0xd87a8bb0 stream 0 0 0x0 0xd3109500 0x0 0x0
> 0xd87a8ee0 stream 0 0 0x0 0xd32e9440 0x0 0x0
> 0xd84a5340 stream 0 0 0x0 0xd33fbcc0 0x0 0x0
> 0xd8a3a330 stream 0 0 0x0 0xd30d9f80 0x0 0x0 /tmp/orbit-per/linc-7497-0-f1d419092fa7
> 0xd8489aac stream 0 0 0xd883d548 0x0 0x0 0x0 /tmp/orbit-per/linc-7497-0-f1d419092fa7
> 0xd848999c stream 0 0 0x0 0xd363b5c0 0x0 0x0
> 0xd84a5ef0 stream 0 0 0x0 0xd3274580 0x0 0x0
> 0xd846b558 dgram 0 0 0x0 0xd3010ac0 0x0 0xd3028640
> 0xd8a3aaa0 stream 0 0 0x0 0xd322bfc0 0x0 0x0
> 0xd84a5890 stream 0 0 0x0 0xd3551d00 0x0 0x0
> 0xd8489ddc stream 0 0 0x0 0xd34c7280 0x0 0x0
> 0xd84a5010 stream 0 0 0x0 0xd3412e00 0x0 0x0
> 0xd84a5cd0 stream 0 0 0x0 0xd340ab40 0x0 0x0
> 0xd887d010 stream 0 0 0x0 0xd33c20c0 0x0 0x0
> 0xd872166c stream 0 0 0x0 0xd32e4240 0x0 0x0
> 0xd8751338 stream 0 0 0x0 0xd32e4700 0x0 0x0
> 0xd8c3b008 stream 0 0 0x0 0xd32bf6c0 0x0 0x0
> 0xd8721ccc stream 0 0 0x0 0xd31eb140 0x0 0x0
> 0xd872199c stream 0 0 0x0 0xd31ebbc0 0x0 0x0
> 0xd872188c stream 0 0 0x0 0xd32ae600 0x0 0x0
> 0xd872177c stream 0 0 0x0 0xd32aebc0 0x0 0x0
> 0xd8afa9a0 stream 0 0 0x0 0xd3109480 0x0 0x0
> 0xd8a3a770 stream 0 0 0x0 0xd3593d80 0x0 0x0 /tmp/dbus-knw2aOONLH
> 0xd8489ccc stream 0 0 0x0 0xd326d940 0x0 0x0
> 0xd848966c stream 0 0 0x0 0xd35a70c0 0x0 0x0 /tmp/orbit-per/linc-3f5c-0-66d0115823a6
> 0xd8a3a000 stream 0 0 0x0 0xd30f5140 0x0 0x0
> 0xd848977c stream 0 0 0xd883d410 0x0 0x0 0x0 /tmp/orbit-per/linc-3f5c-0-66d0115823a6
> 0xd88bb88c stream 0 0 0x0 0xd34cbb00 0x0 0x0 /tmp/dbus-knw2aOONLH
> 0xd84a5780 stream 0 0 0x0 0xd34cbbc0 0x0 0x0
> 0xd8721bbc stream 0 0 0x0 0xd3204a80 0x0 0x0 /tmp/dbus-knw2aOONLH
> 0xd8afa890 stream 0 0 0x0 0xd30c5ac0 0x0 0x0
> 0xd8afa780 stream 0 0 0x0 0xd30c54c0 0x0 0x0
> 0xd8afa670 stream 0 0 0xd8a72d08 0x0 0x0 0x0 /tmp/dbus-knw2aOONLH
> 0xd8afa450 stream 32 0 0x0 0xd30f5d40 0x0 0x0
> 0xd8b7dddc stream 0 0 0x0 0xd30c5cc0 0x0 0x0
> 0xd8b7dbbc stream 0 0 0x0 0xd30b91c0 0x0 0x0
> 0xd8b7d99c stream 0 0 0x0 0xd30aba40 0x0 0x0
> 0xd8b7d55c stream 0 0 0x0 0xd30abbc0 0x0 0x0
> 0xd8b7d77c stream 0 0 0x0 0xd30ab100 0x0 0x0
> 0xd8b7d33c stream 0 0 0x0 0xd30abd40 0x0 0x0
> 0xd8b7d11c stream 0 0 0x0 0xd30a3cc0 0x0 0x0
> 0xd8c3bee8 stream 0 0 0x0 0xd30960c0 0x0 0x0
> 0xd8c3b888 stream 0 0 0x0 0xd308f4c0 0x0 0x0
> 0xd8c3bdd8 stream 0 0 0x0 0xd307c300 0x0 0x0
> 0xd8c3bcc8 stream 0 0 0x0 0xd3063180 0x0 0x0
> 0xd8c3baa8 stream 0 0 0x0 0xd307cb40 0x0 0x0
> 0xd8498cc4 stream 0 0 0x0 0xd303b680 0x0 0x0 /tmp/.X11-unix/X0
> 0xd846baa8 stream 0 0 0x0 0xd33fb480 0x0 0x0 /tmp/.X11-unix/X0
> 0xd848900c stream 0 0 0x0 0xd34c9e40 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8a3abb0 stream 0 0 0x0 0xd343cac0 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8a3acc0 stream 0 0 0x0 0xd3551700 0x0 0x0 /tmp/.X11-unix/X0
> 0xd848955c stream 0 0 0x0 0xd34e0d40 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8a3a440 stream 0 0 0x0 0xd32ae500 0x0 0x0 /tmp/.X11-unix/X0
> 0xd84a59a0 stream 0 0 0x0 0xd314bd40 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8a3a660 stream 0 0 0x0 0xd33c2e80 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8751448 stream 0 0 0x0 0xd32e7180 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8751228 stream 0 0 0x0 0xd32df780 0x0 0x0 /tmp/.X11-unix/X0
> 0xd872111c stream 0 0 0x0 0xd32aef40 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8721aac stream 0 0 0x0 0xd32ae1c0 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8afaab0 stream 0 0 0x0 0xd3109600 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8afa560 stream 0 0 0x0 0xd3109c80 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8b7deec stream 0 0 0x0 0xd30c5d00 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8b7dccc stream 0 0 0x0 0xd30b9200 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8b7daac stream 0 0 0x0 0xd30ab840 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8b7d88c stream 0 0 0x0 0xd30ab900 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8b7d66c stream 0 0 0x0 0xd30ab0c0 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8b7d44c stream 0 0 0x0 0xd30abd80 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8b7d22c stream 0 0 0x0 0xd30a3d00 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8b7d00c stream 0 0 0x0 0xd3096900 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8c3b998 stream 0 0 0x0 0xd308f500 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8c3bbb8 stream 0 0 0x0 0xd3048180 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8c3b778 stream 0 0 0x0 0xd3070e40 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8c3b558 stream 0 0 0xd8c22864 0x0 0x0 0x0 /tmp/.X11-unix/X0
> 0xd8c3b228 stream 0 0 0x0 0xd3063a80 0x0 0x0
> 0xd8c3b118 stream 0 0 0x0 0xd3063ac0 0x0 0x0
> 0xd8da2dd0 dgram 0 0 0x0 0xd3010ac0 0x0 0xd30103c0
> 0xd8c3b668 stream 0 0 0x0 0xd3063480 0x0 0x0
> 0xd8c71ee4 stream 0 0 0xd8c3f724 0x0 0x0 0x0 tabs/.sock
> 0xd8c71dd4 dgram 0 0 0x0 0xd3010ac0 0x0 0xd304c6c0
> 0xd8da2aa0 dgram 0 0 0x0 0xd3010ac0 0x0 0x0
> 0xd8da2990 stream 0 0 0x0 0xd3010280 0x0 0x0
> 0xd8da2880 stream 0 0 0x0 0xd3010700 0x0 0x0
> 0xd8da2770 stream 0 0 0x0 0xd3010840 0x0 0x0
> 0xd8da2660 stream 0 0 0x0 0xd3010800 0x0 0x0
> 0xd8da2550 dgram 0 0 0xd8d55640 0x0 0x0 0x0 /var/empty/dev/log
> 0xd8da2440 dgram 0 0 0xd8d555a4 0x0 0x0 0x0 /var/www/dev/log
> 0xd8da2330 dgram 0 0 0xd8d55508 0x0 0xd3232280 0x0 /dev/log
>
>
> this is th output of error.log:
>
> [2012-02-25 14:12:51] INFO main/main Icecast 2.3.2 server started
> [2012-02-25 14:12:51] INFO connection/get_ssl_certificate No SSL
> capability on any configured ports
> [2012-02-25 14:12:51] INFO fserve/fserv_thread_function file serving
> thread started
> [2012-02-25 14:12:51] INFO yp/yp_update_thread YP update thread started
> [2012-02-25 14:12:52] INFO connection/_handle_source_request Source
> logging in at mountpoint "/ices.mp3"
> [2012-02-25 14:12:53] INFO source/source_main listener count on
> /ices.mp3 now 0
> [2012-02-25 14:12:53] INFO admin/admin_handle_request Received admin
> command metadata on mount "/ices.mp3"
> [2012-02-25 14:12:53] INFO admin/command_metadata Metadata on
> mountpoint /ices.mp3 changed to "ÿþT - ÿþW"
> [2012-02-25 14:13:58] INFO admin/admin_handle_request Received admin
> command metadata on mount "/ices.mp3"
> [2012-02-25 14:13:58] INFO admin/command_metadata Metadata on
> mountpoint /ices.mp3 changed to "Johnny Cash & June Carter Cash/Johnny
> Cash & June Carter Cash - It Ain't Me Babe
>
>
> This is running on OpenBSD
>
>
>
>
>
>
>
> _______________________________________________
> Icecast mailing list
> Icecast at xiph.org
> http://lists.xiph.org/mailman/listinfo/icecast
>
More information about the Icecast
mailing list