LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 12-31-2010, 12:45 AM   #1
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 448

Rep: Reputation: 34
squid not allowing streaming radio


I have squid running on my home gateway, but when I try to listen to streaming radio, it doesn't work.

Using mplayer with a proxy shows this:
Code:
/home/fukawi2 $ mplayer http://media.on.net/radio/143.m3u
MPlayer SVN-r32492-4.5.1 (C) 2000-2010 MPlayer Team
159 audio & 349 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing http://media.on.net/radio/143.m3u.
Resolving proxy.fukawi2.pvt for AF_INET...
Connecting to server proxy.fukawi2.pvt[192.168.31.1]: 3128...

Cache size set to 320 KBytes


Playing http://radio1.internode.on.net:8000/143.
Resolving proxy.fukawi2.pvt for AF_INET...
Connecting to server proxy.fukawi2.pvt[192.168.31.1]: 3128...

Cache size set to 320 KBytes
Cache fill:  0.00% (0 bytes)   

Cache not filling!
Cache not filling!
Cache not filling!
Cache not filling!
Cache not filling!
Cache not filling keeps repeating until ^C

squid logs the access as being allowed:
Quote:
1293774289.002 13826 192.168.31.20 TCP_MISS/200 198228 GET http://radio1.internode.on.net:8000/143 - DIRECT/192.231.203.146 -
If I unset the proxy and open a firewall hole, it works fine:
Code:
/home/fukawi2 $ http_proxy='' mplayer http://media.on.net/radio/143.m3u
MPlayer SVN-r32492-4.5.1 (C) 2000-2010 MPlayer Team
159 audio & 349 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing http://media.on.net/radio/143.m3u.
Invalid proxy setting... Trying without proxy.
Resolving media.on.net for AF_INET...
Connecting to server media.on.net[203.26.94.250]: 80...

Cache size set to 320 KBytes


Playing http://radio1.internode.on.net:8000/143.
Invalid proxy setting... Trying without proxy.
Resolving radio1.internode.on.net for AF_INET...
Connecting to server radio1.internode.on.net[192.231.203.146]: 8000...

Name   : You are listening to NovaNation
Genre  : connect . discover . explore . dance
Website: http://www.novanation.com.au
Public : yes
Bitrate: 48kbit/s
Cache size set to 320 KBytes
Cache fill:  0.00% (0 bytes)   
ICY Info: StreamTitle='Duck Sauce - Anyway';StreamUrl='SongID=3826|SongTitle=Anyway|SongArtist=Duck Sauce|CartComplete=False|AlbumArt=407.jpg|SongHook=3826.mp3|Version=|MixedBy=|AdvertiserName=|AdComplete=';


AAC file format detected.
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
versionA not supported
versionA not supported
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   6.3 (06.2) of 0.0 (unknown)  0.7% 56%
 
Old 01-02-2011, 12:23 PM   #2
grzesiek
LQ Newbie
 
Registered: Nov 2010
Location: Poland
Distribution: Debian
Posts: 20

Rep: Reputation: 0
The Squid log not contain DENIED. Maybe firewall block its?
 
Old 01-02-2011, 05:25 PM   #3
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 448

Original Poster
Rep: Reputation: 34
My firewall and proxy are on the same machine, so only OUTPUT could be blocking it. I tried setting the OUTPUT Policy to ACCEPT and flushing all rules but same result.
Quote:
tank ~ # iptables -P OUTPUT ACCEPT
tank ~ # iptables -F OUTPUT
 
Old 01-04-2011, 03:56 AM   #4
markotitel
Member
 
Registered: Feb 2009
Location: Titel - Serbia
Posts: 166

Rep: Reputation: 18
Squid config? post it
 
Old 01-04-2011, 04:51 AM   #5
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 448

Original Poster
Rep: Reputation: 34
Whoops, of course....
Code:
tank ~ # uncomment /etc/squid/squid.conf
http_port 3128
cache_mem 20 MB
cache_dir ufs /srv/squid 16000 40 256
cache_swap_low 90
cache_swap_high 100
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
maximum_object_size 60 MB
maximum_object_size_in_memory 20 KB
cache_store_log	none
access_log /var/log/squid/access.log squid
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               0       20%     4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl Connect_ports port 443 563 4243 8887 10443 5557
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443 563     # https, snews
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT
acl POST method POST
acl PURGE method PURGE
acl FTP proto ftp
forwarded_for off
header_access X-Forwarded-For deny all
acl ierestrict browser MSIE
acl ieoksites dstdomain .firefox.com
acl ieoksites dstdomain .mozilla.com
acl ieoksites dstdomain .mozilla.org
acl ieoksites dstdomain psi.secunia.com
acl ieokdsts dst 85.17.154.24
acl safe_source src 192.168.0.0/16
acl safe_source src 172.16.0.0/12
acl safe_source src 10.0.0.0/8
http_access allow manager localhost
http_access deny manager
http_access allow PURGE localhost
http_access deny PURGE
http_access deny CONNECT !Connect_ports
http_access allow localhost
http_access deny !safe_source
http_access allow ierestrict ieoksites
http_access allow ierestrict ieokdsts
http_access deny ierestrict
http_access allow all
http_access deny all
http_reply_access allow all
icp_access allow all
visible_hostname tank.fukawi2.pvt
 
Old 01-27-2011, 05:45 PM   #6
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 448

Original Poster
Rep: Reputation: 34
Bump? Anyone...?
 
  


Reply

Tags
mplayer, proxy, squid, streaming radio


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
streaming radio station gymnart Linux - Software 4 04-20-2008 12:23 AM
Streaming Radio Stump Linux - Newbie 3 07-04-2006 05:52 PM
no streaming radio scottsteibel Linux - Newbie 6 12-05-2004 04:29 PM
Streaming internet Radio Mr54mk Linux - Newbie 4 12-13-2003 09:09 PM
xmms and streaming radio TravisB Linux - General 2 03-27-2002 03:26 PM


All times are GMT -5. The time now is 10:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration