NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 35 36 37 38 39 … 56 Next »
Setting Up SSH to protect your network

 
  • 0 Vote(s) - 0 Average
Setting Up SSH to protect your network
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#1
2006-04-06, 07:23 AM
Using SSH to secure your network means that instead of having many open ports to the internet to which attackers can come in, you have one, secured, port. From this one port you can set up what's called a tunnel, to other ports, LAN based machines and even to internet based services.

For example, my machines at home a running behind a router, on that router you could open up any port 2222, for example (22 is the SSH standard port, you can use this, but why let script kiddies know you're there??).

On the router set up your port 2222 to forward to a local machine on your network - caled computer1 on port 22.

Then from outside you network (anywhere with an internet connection) and using a terminal client like putty, you can connect to you internet IP address and port 2222 to be connected to computer1 on port 22 inside your local network.

Now this is just the start.

Once that is verified you can set set up a tunnel.

Inside putty, in the connection options there is an option for tunnels. We're going to set up a tunnel to the GBPVR Enhanced web admin residing on computer1. In this case the machine with the SSH server.

In putty, under tunnels you will create a new tunnel with your source port 7467 and destination set to localhost:7647

That's pretty much it. Now from the internet, start your putty session, Once connected start up your browser and point it to http://localhost:7647/gbpvr/logon.aspx this is transmitted down the putty session and pops out the other side and is directed to the localhost:7647 inside your home network...neat huh???

For multiple machines you just change the destinaion port of the putty tunnel to be machine:port. This will make the transmission got down into the tunnel and pop out the other side then from the ssh server machine it will be transmitted on the local network to machine:port just like your were on the local LAN.

Here is a link I've always followed for setting up an SSH server of one of my windows machines.

http://pigtail.net/LRP/printsrv/cygwin-sshd.html


I hope I made that easy enough to follow. The URL above has a bit more on tunnelling, I've successfully had pop3, GBPVR EWA, RealVNC, Ca Unicenter Remote Control, various other websites all working the same way.

You just need to make sure that on the machine out in the internet that the port you set up in putty is not being used, since to go down in the tunnel is is always a connection to localhost.
rufus279
Offline

Junior Member

Posts: 4
Threads: 1
Joined: Dec 2004
#2
2006-04-07, 03:35 PM
SSH is a wonderfull thing.

I use it at home on one my PCs and do the same router config mentioned above except I set SSH to listen on TCP 443. Why 443, well that's HTTPS SSL. By using software like putty, Firefox, and Remote Admin (all can be installed/run off a flashdrive no local PC install needed), all you need is a PC with a USB port and Internet access and you can get to your PC from anywhere. Putty supports using a proxy server as well so you could hit/control your home PC from work. Install a proxy server at home and you can use the SSL tunnel to surf and all your admins at work will see is HTTPS traffic to your home PC. HTTP and HTTPS are almost always open outbound on corporate firewalls.

For my config, I set the putty SSL tunnel to setup local ports for redirection for:

Remote Admin
Proxy Server (bounce GBPVR, Driectv web control)
Remote Desktop Connection
MMS - I use VLC to stream LiveTV so if i'm bored at work I can watch TV Big Grin
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#3
2006-04-07, 08:42 PM
The usb key thing I have just started doing as well, it's great!!

And also once you've got SSH working, then stick an sftp server on all your machines and from the USB key install Winscp to do secure file transfers. Normal FTP does not work since it normally uses two ports.
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#4
2006-04-08, 06:40 AM
Works great thanks for the suggestion. I don't like the risk of giving access to a login shell so I installed this dummy shell so only the tunneling works which is all I need for remote GBPVR access.

http://www.mariovaldez.net/software/sleepshell/

You do need a few more packages than just sshd in your cygwin setup (make & gcc) to compile it. It's only 4Kb if someone wants a binary sleepshell.exe.
groover km
Offline

Senior Member

Posts: 731
Threads: 43
Joined: Mar 2005
#5
2006-04-12, 12:27 PM
I have been trying to set this up, and have run into problems; if anyone has any advice, I'd be grateful.

I have installed cygwin on my host machine, and I can log into it locally fine; or at least, it seems to work okay. I am then trying to access it via portaputty client on a usb drive, but everytime I have tested it (from one machine inside my LAN to the host), I get an error stating "Cannot connect to 192.168.xx.xx The network connection was refused". I suspect this is maybe a firewall issue (?), but I've gone into my firewall settings (zonealarm pro) and set up an expert rule forward the port.

Any obvious ideas?

Thanks in advance.
Celeron D 2.53GHz, 1024MB
120GB, 160GB int, 80GB, 250GB ext, 40GB lan HDDs
PVR-150 retail, 1 wired MVP, 1 wireless MVP, OFA URC-8910 Remote
Look for me on XBox Live!
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#6
2006-04-12, 08:11 PM
On your host machine can you use portaputty to connect to itself (via local host, it's lan IP address and you wan address???) you should be able to connect everytime.

You've used the standard port 22 in your local network? And have you got an external firewall on a router?? If so, take down zonealarm for a bit to confirm it all works.


I found another version of putty that was for a thumb drive, but I don;t think it was called portaputty, and it keeps everything in an ini file instead of in registry.
groover km
Offline

Senior Member

Posts: 731
Threads: 43
Joined: Mar 2005
#7
2006-04-12, 09:16 PM (This post was last modified: 2006-04-13, 01:56 AM by groover km.)
Thanks psycik, I'll give that a try tonight...

<edit> Got it sussed; firewall on the client was stopping outbound (didn't think of that). Got it running off a usb drive with ultravnc and EWA. Cool! Thanks for the help!
Celeron D 2.53GHz, 1024MB
120GB, 160GB int, 80GB, 250GB ext, 40GB lan HDDs
PVR-150 retail, 1 wired MVP, 1 wireless MVP, OFA URC-8910 Remote
Look for me on XBox Live!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  get drive temps from all computers on network pBS 6 2,248 2010-04-09, 11:06 PM
Last Post: pBS
  fix for network access + Interact w/desktop pBS 6 6,064 2009-08-04, 03:49 AM
Last Post: mvallevand
  Tip. Setting up LNB on Twinhan DVB-Sat Kevl 2 1,793 2006-08-25, 09:05 AM
Last Post: Kevl
  GPVR PVR-150 / Dish Network Guide rampy 1 2,091 2005-06-02, 03:04 AM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode