PDA

View Full Version : SqueezeBox over internet



2004-11-29, 02:54
Most ssh clients can create ssh tunnels for you, it does not need to be
built into the squeezebox. I think you just need another machine with a
lan IP address that can run the client and listen on the slimserver
ports.

There are other tunnelling options as well, but generally involve more
setting up and administrative control at both ends.

Cameron.

>
> Although this already works great with SoftSqueeze, I would love it
> if the physical SqueezeBox could support SSH so that I could point it
> at a remote SlimServer and have it log in appropriately.
>
> D

David Jameson
2004-11-29, 09:02
Huh? How can I connect a physical squeezebox to a remote server where only
port 22 is open to the outside world on the remote server?
The point is that the squeezebox itself needs to have ssh client support.

D

<Cameron.Davidson (AT) csiro (DOT) au> wrote in message
news:EACFEDDE5C3616498B02626DBDCB2DB65A2AE4 (AT) exqld4-bne (DOT) nexus.csiro.au...
> Most ssh clients can create ssh tunnels for you, it does not need to be
> built into the squeezebox. I think you just need another machine with a
> lan IP address that can run the client and listen on the slimserver
> ports.
>
> There are other tunnelling options as well, but generally involve more
> setting up and administrative control at both ends.
>
> Cameron.
>
>>
>> Although this already works great with SoftSqueeze, I would love it
>> if the physical SqueezeBox could support SSH so that I could point it
>> at a remote SlimServer and have it log in appropriately.
>>
>> D

Craig Eales
2004-11-29, 09:33
SSH can open extra local ports and tunnel tcp connections over the ssh 22 port.

For example if the host with your slim server is called SlimServerHost
and Its connected to a local machine running an ssh server (on port
22) call SSHServerHost.

At the remote site you have a machine called SSHClient.

from SSHClient try

ssh -L9000:SlimServerHost:9000 -L3483:SlimServerHost:3483
SSHServerHost -l <remoteusername>

Now if you point the squeezebox at the remote site to use SSHClient
machine as its server then when the squeezebox opens a connection to
port 9000, the ssh client will intercept it, tunnel it over to
SSHServerHost which will then pass it on to SlimServerHost!

This is how I actually run my softsqueeze.

CE

On Mon, 29 Nov 2004 11:02:11 -0500, David Jameson <david (AT) digiportal (DOT) com> wrote:
> Huh? How can I connect a physical squeezebox to a remote server where only
> port 22 is open to the outside world on the remote server?
> The point is that the squeezebox itself needs to have ssh client support.
>
> D
>
> <Cameron.Davidson (AT) csiro (DOT) au> wrote in message
> news:EACFEDDE5C3616498B02626DBDCB2DB65A2AE4 (AT) exqld4-bne (DOT) nexus.csiro.au...
>
>
> > Most ssh clients can create ssh tunnels for you, it does not need to be
> > built into the squeezebox. I think you just need another machine with a
> > lan IP address that can run the client and listen on the slimserver
> > ports.
> >
> > There are other tunnelling options as well, but generally involve more
> > setting up and administrative control at both ends.
> >
> > Cameron.
> >
> >>
> >> Although this already works great with SoftSqueeze, I would love it
> >> if the physical SqueezeBox could support SSH so that I could point it
> >> at a remote SlimServer and have it log in appropriately.
> >>
> >> D
>
>

David Jameson
2004-11-30, 21:52
Everyone is answering a question I did not ask.

I know exactly what SSH can do.....but as far as I know, there is no SSH
client software built into the the physical Squeezebox.

As has been pointed out, it's trivial to do what I want with softsqueeze
(and indeed I've been doing what you suggested for ages, my firewall allows
incoming connections to port 22 and I use it for tunneling all sorts of
things including MySQL, X11 as well as SoftSqueeze) but the question is how
to do the same thing with a physical Squeezebox?

Example: suppose I go to a hotel - I've got an ethernet connection in the
room - I want to bring my squeezebox
with me and plug it into the hotel room ethernet connection. Then I need to
configure the squeezebox itself to connect to my remote server on port 22
via SSH.


D



"Craig Eales" <craig.eales (AT) gmail (DOT) com> wrote in
message news:dc15a8f1041129083343b9e7a3 (AT) mail (DOT) gmail.com...
> SSH can open extra local ports and tunnel tcp connections over the ssh 22
> port.
>
> For example if the host with your slim server is called SlimServerHost
> and Its connected to a local machine running an ssh server (on port
> 22) call SSHServerHost.
>
> At the remote site you have a machine called SSHClient.
>
> from SSHClient try
>
> ssh -L9000:SlimServerHost:9000 -L3483:SlimServerHost:3483
> SSHServerHost -l <remoteusername>
>
> Now if you point the squeezebox at the remote site to use SSHClient
> machine as its server then when the squeezebox opens a connection to
> port 9000, the ssh client will intercept it, tunnel it over to
> SSHServerHost which will then pass it on to SlimServerHost!
>
> This is how I actually run my softsqueeze.
>
> CE
>
> On Mon, 29 Nov 2004 11:02:11 -0500, David Jameson
> <david (AT) digiportal (DOT) com> wrote:
>> Huh? How can I connect a physical squeezebox to a remote server where
>> only
>> port 22 is open to the outside world on the remote server?
>> The point is that the squeezebox itself needs to have ssh client support.
>>
>> D
>>
>> <Cameron.Davidson (AT) csiro (DOT) au> wrote in message
>> news:EACFEDDE5C3616498B02626DBDCB2DB65A2AE4 (AT) exqld4-bne (DOT) nexus.csiro.au...
>>
>>
>> > Most ssh clients can create ssh tunnels for you, it does not need to be
>> > built into the squeezebox. I think you just need another machine with a
>> > lan IP address that can run the client and listen on the slimserver
>> > ports.
>> >
>> > There are other tunnelling options as well, but generally involve more
>> > setting up and administrative control at both ends.
>> >
>> > Cameron.
>> >
>> >>
>> >> Although this already works great with SoftSqueeze, I would love it
>> >> if the physical SqueezeBox could support SSH so that I could point it
>> >> at a remote SlimServer and have it log in appropriately.
>> >>
>> >> D
>>
>>

Jack Coates
2004-11-30, 22:56
David Jameson wrote:

>Everyone is answering a question I did not ask.
>
>I know exactly what SSH can do.....but as far as I know, there is no SSH
>client software built into the the physical Squeezebox.
>
>As has been pointed out, it's trivial to do what I want with softsqueeze
>(and indeed I've been doing what you suggested for ages, my firewall allows
>incoming connections to port 22 and I use it for tunneling all sorts of
>things including MySQL, X11 as well as SoftSqueeze) but the question is how
>to do the same thing with a physical Squeezebox?
>
>Example: suppose I go to a hotel - I've got an ethernet connection in the
>room - I want to bring my squeezebox
>with me and plug it into the hotel room ethernet connection. Then I need to
>configure the squeezebox itself to connect to my remote server on port 22
>via SSH.
>
>
>D
>
>
....

I think it's not so much that what you want isn't clear, as it is that
what you want is so bizarre that people think they must have misread and
move on to the first plausible misunderstanding.

I've never come across a hotel or a conference room with a stereo in it
and ready to accept SPIDF or RCA from a Squeezebox-like device. While
there may be stereos around at friend's and relative's houses, most
people don't want to spend time dorking with them (especially if travel
was involved to get there). Basically, most people's traveling music
needs are met with Softsqueeze or http://server:9000/stream.mp3.

Can you explain the usage scenario a little more clearly?

Also, FWIW, I doubt the Squeezebox has sufficient CPU for handling
encryption.

--
Jack at Monkeynoodle dot Org: It's a Scientific Venture...
Riding the Emergency Third Rail Power Trip Since 1996

David Jameson
2004-12-01, 13:38
Could be - I didn't realise it would be considered that bizarre - actually I
only used the hotel as an example (I also use my laptop when I'm in a hotel)

However, I wasn't really thinking of myself. I would like to give presents
of SqueezeBoxes to a couple of relatives (my mother in Ireland, my brother
in Canada). Neither of them would consider having a local (always on)
server, never mind trying to configure tunneling.


The idea is that they would plug the thing into their LAN, put in a
username/password that would allow the squeezebox to login to MY slimserver
through port 22 and access my CD collection.


The only way to get to ANY server in my environment is through port 22 and
I"m not interested in changing that.

D


"Jack Coates" <jack (AT) monkeynoodle (DOT) org> wrote in
message news:41AD5D15.9080203 (AT) monkeynoodle (DOT) org...

>
> I think it's not so much that what you want isn't clear, as it is that
> what you want is so bizarre that people think they must have misread and
> move on to the first plausible misunderstanding.
>
> I've never come across a hotel or a conference room with a stereo in it
> and ready to accept SPIDF or RCA from a Squeezebox-like device. While
> there may be stereos around at friend's and relative's houses, most people
> don't want to spend time dorking with them (especially if travel was
> involved to get there). Basically, most people's traveling music needs are
> met with Softsqueeze or http://server:9000/stream.mp3.
>
> Can you explain the usage scenario a little more clearly?
>
> Also, FWIW, I doubt the Squeezebox has sufficient CPU for handling
> encryption.
>
> --
> Jack at Monkeynoodle dot Org: It's a Scientific Venture...
> Riding the Emergency Third Rail Power Trip Since 1996

Jack Coates
2004-12-01, 14:29
David Jameson wrote:

>Could be - I didn't realise it would be considered that bizarre - actually I
>only used the hotel as an example (I also use my laptop when I'm in a hotel)
>
>However, I wasn't really thinking of myself. I would like to give presents
>of SqueezeBoxes to a couple of relatives (my mother in Ireland, my brother
>in Canada). Neither of them would consider having a local (always on)
>server, never mind trying to configure tunneling.
>
>
>The idea is that they would plug the thing into their LAN, put in a
>username/password that would allow the squeezebox to login to MY slimserver
>through port 22 and access my CD collection.
>
>
>The only way to get to ANY server in my environment is through port 22 and
>I"m not interested in changing that.
>
>D
>

That's clearer, thanks. Unfortunately, I don't think it's possible with
the current offering, and Slim Devices doesn't talk about upcoming
offerings. Perhaps if you included a pre-configured server in-a-box...
there've been quite a few discussions about building them into LaCie and
Buffalo NAS devices.

--
Jack at Monkeynoodle dot Org: It's a Scientific Venture...
Riding the Emergency Third Rail Power Trip Since 1996

kdf
2004-12-01, 15:00
Quoting David Jameson <david (AT) digiportal (DOT) com>:

> Could be - I didn't realise it would be considered that bizarre - actually I
> only used the hotel as an example (I also use my laptop when I'm in a hotel)
>
> However, I wasn't really thinking of myself. I would like to give presents
> of SqueezeBoxes to a couple of relatives (my mother in Ireland, my brother
> in Canada). Neither of them would consider having a local (always on)
> server, never mind trying to configure tunneling.
>
hate to break it to you, but from my testing, you are not likely to get anything
better than about 64kbps bandwidth from North America to Europe without some
nasty dropouts. Not to mention the lag in response to the remote control. The
squeezebox can't do a thing without server response. This includes every
character you see on the dislay aside from the basic power-on setup screens.

More likely what you need is a standalone device that doesn't need a server, and
can access a remote stream. Then setup your slimserver to accept the requests
for streams. I can't think of any device that does this for a custom internet
radio site.

-kdf

David Jameson
2004-12-01, 19:29
Definitely a potential downside - so pretend that my family lives two miles
away from me!

But perhaps my comments should just be taken as feedback for a new device
(from SlimDevices) that has more smarts in the box but can still work with a
remote server for some things.

D

> hate to break it to you, but from my testing, you are not likely to get
> anything
> better than about 64kbps bandwidth from North America to Europe without
> some
> nasty dropouts. Not to mention the lag in response to the remote control.
> The
> squeezebox can't do a thing without server response. This includes every
> character you see on the dislay aside from the basic power-on setup
> screens.
>
> More likely what you need is a standalone device that doesn't need a
> server, and
> can access a remote stream. Then setup your slimserver to accept the
> requests
> for streams. I can't think of any device that does this for a custom
> internet
> radio site.
>
> -kdf