• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/iptables-1.4.x/l7-protocols/
1# Shoutcast and Icecast - streaming audio
2# Pattern attributes: good slow notsofast
3# Protocol groups: streaming_audio
4# Wiki: http://www.protocolinfo.org/wiki/Icecast
5#
6# usually runs on port 80
7#
8# Original pattern contributed by Deepak Seshadri <dseshadri AT 
9# broadbandmaritime.com> who says "The difference between [Shoutcast and 
10# Icecast] is not clearly mentioned anywhere. According to this 
11# document, my pattern would filter JUST shoutcast packets."
12#
13# Should now match both Shoutcast and Icecast.  Tested with Winamp (in 
14# 2005) and Totem using streams at dir.xiph.org (in Nov 2007).
15#
16# http://sander.vanzoest.com/talks/2002/audio_and_apache/
17# http://forums.radiotoolbox.com/viewtopic.php?t=74
18# http://www.icecast.org
19
20shoutcast
21# The first branch looks for an HTTP request that looks like it is asking for
22# a SHOUTcast stream.  The second branch looks for the server's reply.  However,
23# some (newer?) servers answer with "http/1.0 200 OK", not "ICY 200 OK", so
24# this will not work.
25# This pattern was discovered using Ethereal.
26^get /.*icy-metadata:1|icy [1-5][0-9][0-9] [\x09-\x0d -~]*(content-type:audio|icy-)
27