LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 05-30-2004, 06:09 PM   #1
nixmeister
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
legolin
Member
 
Registered: Dec 2003
Location: munich
Distribution: Fedora Core 4
Posts: 141

Rep: Reputation: 15
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
 
Old 01-06-2005, 09:40 AM   #3
nixmeister
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:

#!/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
 
Old 01-06-2005, 11:48 AM   #4
legolin
Member
 
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!

thankx!
 
  


Reply


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 04:25 PM.

Main Menu
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