Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-30-2004, 06:09 PM   #1
LQ Newbie
Registered: May 2004
Posts: 2

Rep: Reputation: 0
mp3 stream through ssh port forward???

I work at a location with a strict firewall that really irritates me. I IM and surf the web through my house at work using dynamic port forwarding with ssh (creating a SOCKS proxy on the localhost). I've been using this for some time, and it works great. However, I've got a few shoutcast stations I'd love to listen to at work, but once again, their firewall blocks it. Anyone know how to listen to mp3 streams through a ssh port forwarding???
I've tried setting up the SOCKS proxy that ssh establishes in the xmms plugin, but still no joy. Any tips out there????
Old 01-05-2005, 04:16 PM   #2
Registered: Dec 2003
Location: munich
Distribution: Fedora Core 4
Posts: 141

Rep: Reputation: 15

your post ist very old, but did you find some answer to your question? i have the same problem and i'm looking for an answer now!


Old 01-06-2005, 09:40 AM   #3
LQ Newbie
Registered: May 2004
Posts: 2

Original Poster
Rep: Reputation: 0
I did have it working back when I kept a ssh server running at home, maybe I'll get it going one day. So it wasn't a convenient setup, but it worked. I had to explicitely setup each one, so I picked my favorite 3 stations and scripted those. Here's the script:

echo "Setting up ssh radio uplinks...."

# localhost port 8888 forwarding to KCRW worldnews
# localhost port 8889 forwarding to BigUp radio
# localhost port 8890 forwarding to Margaritaville radio

ssh -fN -L 8888: \
-L 8889: \


if [ "$rtn" -ne 0 ]
echo "Radio Uplink Failed!!!"
echo "Encrypted Radio Uplink Active"

Hopefully this makes sense, I used rsa keys so it was passwordless, and obviously you need to change the values for your ssh server, and what radio stations you want to listen too. Now, onto the next part, the .pls files:

ok, now I setup these files on the local disk, and would open them with xmms to start listening:

for the first one in the above script (kcrw news) here's the file kcrwworldnews.pls


For bigup radio the file contains:

Title1=(#1 - 173/420) BIGUPRADIO Roots Reggae (HIGH) 24/7 Steady Rockin Roots Reggae ((One Love))

I think ya get the idea. Basically I made my own local .pls file that xmms would understand to point at localhost, and whatever pre-arranged port I use for that particular station. Obviously if the station changed ip's, domain, or port numbers you'll have to adjust, but it does work. And of course, all nicely encrypted to hide from the "powers that be" where you work

Lemme know if you have any problems...

Old 01-06-2005, 11:48 AM   #4
Registered: Dec 2003
Location: munich
Distribution: Fedora Core 4
Posts: 141

Rep: Reputation: 15
wow...that works??? i'll have to take a look closer to that!



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
SSH port forward problem idsdown Linux - Networking 2 11-25-2005 12:47 AM
ssh port forward failure harmster Linux - Networking 2 03-08-2004 06:46 AM
mp3 stream? sk8guitar Programming 1 08-02-2003 10:13 PM
Forward port port 80 to lan web server dulaus Linux - Networking 9 10-04-2002 03:45 AM
port forward over ssh bedwardj Linux - Security 1 06-26-2001 04:07 PM

All times are GMT -5. The time now is 10:07 PM.

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