TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Main TiVo Forums > TiVo Series 1 - UK
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 11-26-2005, 01:07 PM   #1
ptruman
Registered User
 
Join Date: Jan 2003
Posts: 190
Hurrah - away with OrenoSP!

Hi all,

I've been using OrenoSP to gain access to my TiVo externally.
For those who don't know OrenoSP, it's a reverse proxy you run on a PC on your LAN, and you connect to it from the internet, and it forwards connections to TiVo. Nice and secure etc etc.

However, due to my PC being somewhat irksome atm, I've got a nicer solution, which may be of interest to a few people.

I have acquired a Linksys WRT54GS (802.11G wireless broadband router). It's upgradable with 3rd party open source firmware.

I've now got said router running the Sveasoft f/w, and I can SSH into the router, and then tunnel into TiVo (or anything else on the LAN).

Much more secure than OrenoSP, and doesn't need my PC on!
And of course, there are mobile SSH clients too, so you can access it on the move...

The router costs about £50 to £80 and the SSH software is free. OrenoSP is now > £150 - although I have an old copy if anyone wants it!

Tutorials available on request if anyone wants them.
__________________
--
1TB TiVo Series 3 (VirginMedia)
--
250GB TiVo Series 1
Rev 2.2 Cachecard + WLAN > Ethernet > Internet
TiVoWeb, EndPad, TyStudio (currently being fixed!)
ptruman is offline   Reply With Quote
Old 11-26-2005, 03:42 PM   #2
mike0151
A Friend of Dot
 
Join Date: Dec 2001
Location: Liverpool, Merseyside, UK
Posts: 752
Why not just post the tutorial?

Mike
__________________
6020 since Feb 2001, 1 x 500Gb, Freeview, TurboNet and TiVoWeb
6022 since Feb 2003, 160Gb, Freeview, TurboNet and TiVoWeb;
mike0151 is offline   Reply With Quote
Old 11-27-2005, 06:15 AM   #3
ncjok
Registered User
 
Join Date: Jun 2005
Posts: 27
Can your TiVo now securely serve TiVoWeb aswell?
ncjok is offline   Reply With Quote
Old 11-27-2005, 08:40 PM   #4
beastman
Registered User
 
Join Date: May 2002
Posts: 141
ptruman - do you know if a wired linksys router can so the same thing?
beastman is offline   Reply With Quote
Old 11-28-2005, 02:24 AM   #5
tefster
Registered User
 
Join Date: Mar 2004
Location: London (NE), UK
Posts: 300
>Can your TiVo now securely serve TiVoWeb aswell?

If you have an SSH tunnel to inside of your Lan then you can tunnel TivoWeb through it.

I do a similar thing, but instead of ssh/tunneling via the router I ssh directly into the TiVo instead and securely browse TivoWeb through the ssh tunnel. That does eat a tiny amount of the Tivo's cpu time, when browsing TivoWeb but I've not seen it cause any problems so far.
tefster is offline   Reply With Quote
Old 11-28-2005, 09:24 AM   #6
Fozzie
Registered User
 
Fozzie's Avatar
 
Join Date: Sep 2001
Location: Alton, Hants, UK
Posts: 837
Is there a quick guide to setting this up tefster? I'm currently using orenosp but having seen the figures people are posting for electricity usage when leaving a PC permanently on, I'm looking for a 'cheaper' solution!
Fozzie is offline   Reply With Quote
Old 11-28-2005, 11:55 AM   #7
tefster
Registered User
 
Join Date: Mar 2004
Location: London (NE), UK
Posts: 300
There's an instruction guide within the README in the tarball here,
give it a whirl and let me know how you get on, a couple of
people have downloaded it but the only person so far whom I've
heard feedback from was one of the OzTivo guys who couldn't
get it working due to some wierdness in the C runtime library
version that they are using there.
tefster is offline   Reply With Quote
Old 11-28-2005, 01:01 PM   #8
Fozzie
Registered User
 
Fozzie's Avatar
 
Join Date: Sep 2001
Location: Alton, Hants, UK
Posts: 837
Cheers tefster. Will give it a crack tomorrow night when I've a bit more time.
Fozzie is offline   Reply With Quote
Old 11-28-2005, 01:23 PM   #9
Fozzie
Registered User
 
Fozzie's Avatar
 
Join Date: Sep 2001
Location: Alton, Hants, UK
Posts: 837
As an aside, can anyone compare/contrast opening up a port on the firewall and forwarding it to Orenosp running on a Windows box or forwarding it to an SSH server running on Tivo?

TIA.
Fozzie is offline   Reply With Quote
Old 11-30-2005, 02:12 AM   #10
dimmyr
Registered User
 
Join Date: Nov 2005
Posts: 3
Any chance you could post or post a link to your old, pre 1.0 version of OrenoSP?
dimmyr is offline   Reply With Quote
Old 11-30-2005, 04:21 AM   #11
tefster
Registered User
 
Join Date: Mar 2004
Location: London (NE), UK
Posts: 300
>As an aside, can anyone compare/contrast opening up a port on the firewall and forwarding
>it to Orenosp running on a Windows box or forwarding it to an SSH server running on Tivo?

The main difference is less reliance on an extra box being up and running.

Running a tunnel via Orenosp and opening a firewall port to it means that you need an extra PC running all the time in order to access TivoWeb, however you do have the benefit of not having to run SSH server software on your Tivo and what's exposed to the outside world (Orenosp) is fairly well tested and stable.

Running an ssh server on the Tivo means having extra software in place on it, but does also mean that you don't need an extra PC running all the time in order to access TivoWeb. However when you are logged into it then as with any software the ssh server will eat up some CPU time, providing you aren't doing massive amounts of data transfer than I doubt that would be a problem though, certainly I've sat in front of Tivoweb/ssh tunnelled sessions and had recordings/play running without a problem. However, the dropbear ssh server port for the Tivo hasn't been hugely stress tested, and the kernel version that the UK TiVos run on is quite old, and so I'm not sure how well they would stand up to say a sustained SYN packet attack.
tefster is offline   Reply With Quote
Old 11-30-2005, 01:03 PM   #12
Fozzie
Registered User
 
Fozzie's Avatar
 
Join Date: Sep 2001
Location: Alton, Hants, UK
Posts: 837
Am I right in saying that you need to have a specific client installed on the remote device, such as Putty? This would be a major drawback for me if it is, as I often access Tivoweb from my Smartphone.
Fozzie is offline   Reply With Quote
Old 11-30-2005, 02:09 PM   #13
tefster
Registered User
 
Join Date: Mar 2004
Location: London (NE), UK
Posts: 300
Putty does SSH but there are SSH clients available for almost all platforms, I've SSH'd into my TiVo from my P900 phone, via the web (Java SSH client applet), etc.

For tunneling, it can be a bit more restrictive as not all clients will set up tunnels,
but there are certainly Java clients which do and so which should run on most
smartphones, and I've used native binary ports of PuTTY on Symbian smartphones
tefster is offline   Reply With Quote
Old 11-30-2005, 02:43 PM   #14
Fozzie
Registered User
 
Fozzie's Avatar
 
Join Date: Sep 2001
Location: Alton, Hants, UK
Posts: 837
Guess I'll have to do some digging to see if there's a cleint for the proper Smartphones (with a capital 'S') i.e. Windows Mobile 2003SE/5
Fozzie is offline   Reply With Quote
Old 12-04-2005, 03:35 AM   #15
Fozzie
Registered User
 
Fozzie's Avatar
 
Join Date: Sep 2001
Location: Alton, Hants, UK
Posts: 837
Quote:
Originally Posted by tefster
There's an instruction guide within the README in the tarball here,
give it a whirl and let me know how you get on, a couple of
people have downloaded it but the only person so far whom I've
heard feedback from was one of the OzTivo guys who couldn't
get it working due to some wierdness in the C runtime library
version that they are using there.
I've just given this a whirl but am getting:

Code:
./dropbearkey: error in loading shared libraries
libcrypt.so.1: cannot open shared object file: No such file or directory
Any ideas?
Fozzie is offline   Reply With Quote
Old 12-04-2005, 02:24 PM   #16
tefster
Registered User
 
Join Date: Mar 2004
Location: London (NE), UK
Posts: 300
Hmm, it should have the crypt routines compiled into the static binary. Unfortunately my
aging Wireless Access Point seems to have finally and so I can't get into my TiVo remotely
at present to check, when I get home I'll telnet into it and see if I have libcrypt on there.
tefster is offline   Reply With Quote
Old 12-05-2005, 05:43 PM   #17
Fozzie
Registered User
 
Fozzie's Avatar
 
Join Date: Sep 2001
Location: Alton, Hants, UK
Posts: 837
Quote:
Originally Posted by tefster
Hmm, it should have the crypt routines compiled into the static binary. Unfortunately my
aging Wireless Access Point seems to have finally and so I can't get into my TiVo remotely
at present to check, when I get home I'll telnet into it and see if I have libcrypt on there.
Did you manage to find anything tefster?

Ta.
Fozzie is offline   Reply With Quote
Old 12-06-2005, 02:26 PM   #18
tefster
Registered User
 
Join Date: Mar 2004
Location: London (NE), UK
Posts: 300
Odd, it seems that somewhere along the way I acquired a libcrypt in my /var/hack/lib, not
sure where it came from and I don't remember cross-compiling it but there you go I need
to pull the drive tomorrow to re-do my network configuration with the new wireless bridge
and so I'll extract the libcrypt library and PM you it.
tefster is offline   Reply With Quote
Old 12-06-2005, 06:47 PM   #19
Fozzie
Registered User
 
Fozzie's Avatar
 
Join Date: Sep 2001
Location: Alton, Hants, UK
Posts: 837
Cheers
Fozzie is offline   Reply With Quote
Old 12-07-2005, 04:31 AM   #20
tefster
Registered User
 
Join Date: Mar 2004
Location: London (NE), UK
Posts: 300
here you go
tefster is offline   Reply With Quote
Old 12-07-2005, 01:00 PM   #21
Fozzie
Registered User
 
Fozzie's Avatar
 
Join Date: Sep 2001
Location: Alton, Hants, UK
Posts: 837
Quote:
Originally Posted by tefster
Many thanks. But, I've still got the same error as before. I've created a /var/hack/lib and but the library in there and changed the permissions. I've also put a copy in /var/hack/bin and done the same but still the same error message.

What have I missed? Are there any paths or links that I need to set for /var/hack/lib, or anything like that?

Thanks.
Fozzie is offline   Reply With Quote
Old 12-07-2005, 01:37 PM   #22
tefster
Registered User
 
Join Date: Mar 2004
Location: London (NE), UK
Posts: 300
If this is the first library that you've added into /var/hack/lib then you'll need to add
"export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/hack/lib" (without the quotes) to
your .profile (which might be in /var/hack/.profile or might be in /.profile)
tefster is offline   Reply With Quote
Old 12-07-2005, 06:29 PM   #23
Fozzie
Registered User
 
Fozzie's Avatar
 
Join Date: Sep 2001
Location: Alton, Hants, UK
Posts: 837
Thanks for that; another step forward.

Ok, Dropbear now running but unable to connect using PuTTY. Looking at the PuTTY log, it just seems to hang after "Connecting to a.b.c.d port 80". The PuTTY session window also appears to just hang.

Lo is Up on TiVo.

Any ideas? Thanks again.

Edit: Up and running now. It helps if you connect to the right port i.e. 22!

Last edited by Fozzie : 12-07-2005 at 07:46 PM.
Fozzie is offline   Reply With Quote
Old 12-08-2005, 05:25 PM   #24
Fozzie
Registered User
 
Fozzie's Avatar
 
Join Date: Sep 2001
Location: Alton, Hants, UK
Posts: 837
Got everything running perfectly with one exception. I can't get dropbear to start from rc.sysinit.author; I've tried most combinations of full paths in the shell script, .author and such like. The commands all work perfectly from a BASH prompt but reboot TiVo and everything but dropbear is started.

Any ideas/tips? Thanks again.

Last edited by Fozzie : 12-08-2005 at 05:39 PM.
Fozzie is offline   Reply With Quote
Old 12-09-2005, 03:17 AM   #25
tefster
Registered User
 
Join Date: Mar 2004
Location: London (NE), UK
Posts: 300
You'll probably need to add the /var/hack/lib to your library path within the script, the
.profile is only called for login sessions. Try adding the LIBPATH statement above (the one
you added to your .profile) to the script before the dropbear invocation.
tefster is offline   Reply With Quote
Old 12-09-2005, 03:37 AM   #26
Fozzie
Registered User
 
Fozzie's Avatar
 
Join Date: Sep 2001
Location: Alton, Hants, UK
Posts: 837
Flippin' 'eck, you're clever I didn't think of that one! All working perfectly now. Thanks for all your help.

All I've got to get working now is the IP detection bit in Dailymail_jazz and I can keep the PC switched off; I don't have a static IP and my router doesn't support DynDNS updating and so I have to use DirectUpdate running on the PC).

One final question: Is there any way (or any point) in changing the SSH port number, perhaps to a higher, less likely to be probed number?

Thanks again.

Last edited by Fozzie : 12-09-2005 at 03:57 AM.
Fozzie is offline   Reply With Quote
Old 12-09-2005, 04:15 AM   #27
tefster
Registered User
 
Join Date: Mar 2004
Location: London (NE), UK
Posts: 300
I don't use DynDNS any more as I have a static subnet coming into the house pipe, but
for a while I used this script to update a DynDNS account from a Linux box.

I haven't tried it on a TiVo, but in theory if you grab that, change the path of the shell, and
install the wget TiVo binary and OzTivo resolver library then you should be able to cron-enable the script and have it update your DynDNS account directly from the TiVo.

It wouldn't hurt to have it listening on a much higher port, I would also suggest
only opening up firewall access to it from known/trusted IP addresses and/or
subnets and not having it world-open.
tefster is offline   Reply With Quote
Old 12-09-2005, 06:36 PM   #28
Fozzie
Registered User
 
Fozzie's Avatar
 
Join Date: Sep 2001
Location: Alton, Hants, UK
Posts: 837
Excellent stuff. I've now got TiVo detecting my WAN IP address and updating my DynDNS account PC can now formally be switched off!

One final question: I'm happy about changing the listening port on the non-TiVo/remote end of the tunnel. Is there any way though of changing the port that the SSH tunnel establishes with, or is it fixed at 22?

Many thanks again for all your help with this. My electric bill should be getting smaller from now!
Fozzie is offline   Reply With Quote
Old 12-10-2005, 06:16 AM   #29
tefster
Registered User
 
Join Date: Mar 2004
Location: London (NE), UK
Posts: 300
No probs, glad I've helped the ozone layer a little

You can change the port which dropbear listens on by adding a -p <port> to its invocation
command. Or, rather than forward port 22 on your router to port 22 on the Tivo then if your
router allows it remap a higher port on the router's outside edge to port 22 on the TiVo.

You can also change the listening port for the tunnel (ie the port on your client machine
that you browse via) via the SSH command. E.g. if you have dropbear accessed via port 22
(the default) then you can do
ssh -l tivo -L8080:127.0.0.1:80
to set up the client end of the tunnel to listen on localhost:8080
or
ssh -l tivo -L1234:127.0.0.1:80
to make it listen on port 1234, i.e. change the first parameter on the -L command. If you
are using e.g. PuTTY then just change the "source port" parameter on the tunnel definition.

If you do change the dropbear access port to something other than 22 then for
command line ssh clients add "-p <port>", e.g.
ssh -l tivo -p <dropbears_port> -L<localhost_port>:127.0.0.1:80
when you set the tunnel up.

Again though, I would definately suggest that you restrict the IP addresses which can
access your dropbear port so that only known trusted IP addresses can access it.
tefster is offline   Reply With Quote
Old 12-12-2005, 04:22 PM   #30
ptruman
Registered User
 
Join Date: Jan 2003
Posts: 190
Hmm, I go away for a while, and someone replies to my thread! :P

In answer to various questions :

1) The Linksys router won't serve HTTPS, it doesn't need to - SSH is the same as HTTPS, your traffic just goes through it (tunnelled) so it won't look secure, but it will be.

2) You need a Linksys WRT54G or WRT54GS to do this. Comet are knocking them out for about £49 for the G and £79 for the GS (54 and 125 Mbps versions respectively)

Make DAMN sure you get a V1, V2 or V3 router. V4s are problematic, and V5s are INCOMPATIBLE with the flash. The version is under the router, and the serial numbers on the box betray the versions. V5 serials start "CDFB".
Google, you'll find the lists (I've lost the link)

3) You do NOT REPEAT NOT need SSH running on TiVo, and DO NOT need anything on a PC. You just need the router!

4) I can post the 0.84 Oreno if needed, but seriously, just get the router
(it's SOOOO much nicer)

5) The Alchemy ROM runs WOL, so you can wake up your PC if you keep a note of the MAC address and have a WOL capable NIC. Highly useful.

6) The Alchemy ROM runs a DYNDNS client, so you don't have to remember your DNS IP etc....or run it on TiVo!

7) I have two WRT54GS routers running a Meshed WLAN via Alchemy (RAR!) and can get TiVo tystreams to run a 880 mbps via 802.11G. Thats NOT bad...

THE INSTRUCTIONS!

You also need the Sveasoft Alchemy public ROM.
Thats available here > http://www.sveasoft.com/modules/phpB...fo&file_id=146
HOWEVER you need to register

Flash your router in the normal Linksys way (read the manual!)

Go to the admin page, enable SSHD, DISABLE password login, and set the SSHD to 443 (compatible with most firewalls)

Make VERY sure you follow the bit which reads :

nvram set rc_firewall="/usr/sbin/iptables -I INPUT 1 -p tcp --dport 7490 -j logaccept"
nvram commit

But change 7490 to 443 (or whatever port you're using!)

Follow the instructions at http://hetos.de/sshtut.html
You'll need Putty and PuttyGen (available at http://www.chiark.greenend.org.uk/~s.../download.html)

This step is in conjunction with the HETOS info above.

Then, from whereever you are, with an SSH client and a copy of your private key, you can connect to your public IP, and get a shell on your router.

From there, you can telnet to Tivo. Or, if you use Putty and the instructions on tunnelling from the HETOS site above, you can tunnel web connections into TiVo via your router.

All traffic encrypted, all via 443, "legally" via most firewalls - the snag being you MAY be in breach of work policies as you are opening a secured connection outside/through firewalls....

Either way, it's secure, and allows TiVo or more (Terminal Services anyone?) services to be opened up.....
__________________
--
1TB TiVo Series 3 (VirginMedia)
--
250GB TiVo Series 1
Rev 2.2 Cachecard + WLAN > Ethernet > Internet
TiVoWeb, EndPad, TyStudio (currently being fixed!)

Last edited by ptruman : 12-12-2005 at 04:33 PM.
ptruman is offline   Reply With Quote
Reply
Forum Jump




Thread Tools


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

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

Advertisements

TiVo Community
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
vBulletin Skins by: Relivo Media
(C) 2013 Magenium Solutions - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVo® is a registered trademark of TiVo Inc. This site is not owned or operated by TiVo Inc.
All times are GMT -5. The time now is 07:40 PM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |