LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mp3 stream through ssh port forward??? (https://www.linuxquestions.org/questions/linux-networking-3/mp3-stream-through-ssh-port-forward-187780/)

nixmeister 05-30-2004 06:09 PM

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????

legolin 01-05-2005 04:16 PM

hi,

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!

thankx!!!!


leg

nixmeister 01-06-2005 09:40 AM

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:

#!/bin/bash
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 mydomain.org -L 8888:205.188.234.68:8020 \
-L 8889:66.28.68.70:8005 \
-L 8890:radmarg.sc.llnwd.net:12105

rtn=$?

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



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

[playlist]
NumberOfEntries=1
File1=http://localhost:8888/



For bigup radio the file contains:

[playlist]
numberofentries=1
File1=http://localhost:8889
Title1=(#1 - 173/420) BIGUPRADIO Roots Reggae (HIGH) 24/7 Steady Rockin Roots Reggae ((One Love))
Length1=-1
Version=2


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...

-Drew

legolin 01-06-2005 11:48 AM

wow...that works??? i'll have to take a look closer to that!

thankx!


All times are GMT -5. The time now is 06:02 PM.