SageTV Community  

Go Back   SageTV Community > General Discussion > General Discussion

General Discussion General discussion about SageTV and related companies, products, and technologies.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-16-2012, 12:57 PM
Tiki's Avatar
Tiki Tiki is offline
Sage Fanatic
 
Join Date: Feb 2005
Location: Southeast Michigan, USA
Posts: 968
Web Server Security - is it safe?

I'm wondering what people's opinions are on the safety of running web servers (like the Sage web server add-on) over the open internet?

What's the risk if I get a dynamic dns account and setup port forwarding in my router so that I can access a lightweight web server like this over the internet?

I'm interested because I recently installed some security cameras outside my house and have been playing with some different camera monitoring software. One of the programs I have been looking at is Blue Iris. The Blue Iris software has its own web server built-in to allow you to access your live cameras and recorded clips over the LAN or WAN. I plan to run it on the same PC that is used as my Sage Server. I was also thinking about installing the web server plugin for Sage (I can set it to use a different port than Blue Iris).

  1. Does using a port other than 80 reduce the risks much?
  2. If someone tries to hack the web server, how likely is it that they could gain access to files outside the www directory?
  3. How likely is it that they could gain access to other computers on my LAN?
  4. Does the fact that the Sage plugin (or Blue Iris) are relatively obscure webservers make them less likely to be hacked than a major web server (like IIS or Apache)?
__________________
CPU: Athlon II X4 630, Motherboard: Gigabyte MA770T-UD3P (AM3), Video Card: VisionTek Radeon HD4670 PCIe w/ Component output to 50" CRT Rear-Projection HDTV (Mitsubishi), Tuners (9): 1x Colossus, 1x HD-PVR, 1x HDHR, 1x HVR-2250, 1x HDHR Prime Other info: Win7-64Bit (Home Premium), 4GB RAM, 4.5TB HDD total, also 1x HD200 connected via HDMI to 42" LCD HDTV (Vizio). Comcast Cable (2x STB's to Colossus and HD-PVR, 2x QAM to HDHR, 2x QAM to HVR2250, 3x CableCard to Prime w/ SageDCT).
Reply With Quote
  #2  
Old 08-16-2012, 03:35 PM
nycjoe's Avatar
nycjoe nycjoe is offline
Sage User
 
Join Date: Jun 2008
Location: New York
Posts: 48
Just my opinion...
Quote:
Originally Posted by Tiki View Post
Does using a port other than 80 reduce the risks much?
Not really
Quote:
Originally Posted by Tiki View Post
If someone tries to hack the web server, how likely is it that they could gain access to files outside the www directory?
Unlikely if they try.. Very likely if they succeed.
Quote:
Originally Posted by Tiki View Post
How likely is it that they could gain access to other computers on my LAN?
Make sure to install updates regularly and this probably isn't a big concern, and disable stuff like paswordless RDP
Quote:
Originally Posted by Tiki View Post
Does the fact that the Sage plugin (or Blue Iris) are relatively obscure webservers make them less likely to be hacked than a major web server (like IIS or Apache)?
Sagetv uses Jetty which isn't quite as common as apache/iis, so it is less-hardened. For that reason, there probably have been fewer vulnerabilities discovered in it, so I don't think there's a right answer. I'd be hesitant to put a web server on the internet that wasnt IIS, jetty, apache, tomcat, or nginx.

What I do at home is I use apache as a reverse proxy for this sort of thing - this allows me to wrap the sagetv web interface with SSL.
__________________
Love,
Joe
Reply With Quote
  #3  
Old 08-16-2012, 10:34 PM
bastafidli bastafidli is offline
Sage Expert
 
Join Date: Dec 2007
Location: Charlottesville, VA
Posts: 728
You may want to look at port knocking

http://en.wikipedia.org/wiki/Port_knocking

to improve your chances.
__________________

TV: Samsung UN46D8000
Server: Intel Core i3 540, 4G RAM, Matrox G450, 70GB EXT3 encrypted software RAID1 system drive, 1TB XFS tv recording drive, 2TB EXT3 encrypted data drive mirror across 2 machines, 2TB EXT3 encrypted media drive mirror across 2 machines, CentOS 6 64 bit, Experimenting with DNLA servers
1Gb wired network
Disconnected after G day[HD 100 Media Extender, Placeshifter 7.x, SageTV 7.x, HDHomeRun]
Reply With Quote
  #4  
Old 08-17-2012, 05:13 AM
drewg drewg is offline
Sage Fanatic
 
Join Date: Aug 2007
Location: Atlee, VA
Posts: 980
VPN

You might want to look into running a VPN server for access to your internal network. OpenVPN is quite good.

Also, running a simple / small / obscure web server does tend to help. I ran my company's web server with thttpd running under FreeBSD on a DEC Alpha for many years. It was never down & never hacked. All the apache / x86 targeted attacks just bounced right off. With "professional IT" now running the server since it is "business critical", it is running some kind of "best practices" apache/php clusterf*ck and gets hacked pretty much weekly.. So much for the pros.

Drew
__________________
Server HW: Xeon CPU E3-1270, 16GB RAM, 9TB Raid-Z + L2Arc,
Server SW: Ubuntu 12.04 x86_64, ZFS on Linux, Java 1.6.0_21, SageTV 7.1.9.1
Tuner HW: Pinnacle 800i, Pinnacle 801e USB, HDHR
Client: HD300, HD100
Reply With Quote
  #5  
Old 08-17-2012, 08:42 AM
DMT DMT is offline
Sage Advanced User
 
Join Date: Jun 2009
Posts: 94
+1 for VPN

Jetty can use HTTPS but obviously you still have to forward the port. I am using pfSense firewall and IPsec VPN (for iOS clents). If you don't need iPhone/iPad access you can use OpenVPN.

IMHO
Ps. I also use Blue Iris ...very good.
__________________
SageTV 7.1.9 on Win 7 Ultimate x86; Intel DH67CF, i3-2100T, 4GB DDR3, 60GB SSD, 8TB Drive Bender storage pool, blu-ray. 2x HD PVR (SA 4250HD firewire channel change), 2x HD200 extenders (external IR receiver mod, HD300 remotes).
Plugins: Custom Main Menu, Enable/Disable Favorites, Stock Manager, Web Interface, Mobile Web Interface, PlayOn

Last edited by DMT; 08-17-2012 at 08:45 AM.
Reply With Quote
  #6  
Old 08-17-2012, 04:41 PM
Tiki's Avatar
Tiki Tiki is offline
Sage Fanatic
 
Join Date: Feb 2005
Location: Southeast Michigan, USA
Posts: 968
Quote:
Originally Posted by DMT View Post
+1 for VPN

Jetty can use HTTPS but obviously you still have to forward the port. I am using pfSense firewall and IPsec VPN (for iOS clents). If you don't need iPhone/iPad access you can use OpenVPN.

IMHO
Ps. I also use Blue Iris ...very good.
I would want to be able to access through iPhone and PC at least.
This wouldn't be for public viewing (just me and possibly family members), but I want to be able to access from the office or when traveling.

I'm not sure what Blue Iris uses for its web server (maybe it's Jetty, maybe not).

After reading the various comments, I'm beginning to think the VPN route makes the most sense. I see that iPhone doesn't support OpenVPN, but it looks like it supports PPtP. It looks like Windows 7 has built in support to set-up PPtP for inbound connections, so I may give that a shot.

Even with VPN, I'll need to open up a port on the router, but it seems like a VPN connection is a lot more secure than an exposed web server.
__________________
CPU: Athlon II X4 630, Motherboard: Gigabyte MA770T-UD3P (AM3), Video Card: VisionTek Radeon HD4670 PCIe w/ Component output to 50" CRT Rear-Projection HDTV (Mitsubishi), Tuners (9): 1x Colossus, 1x HD-PVR, 1x HDHR, 1x HVR-2250, 1x HDHR Prime Other info: Win7-64Bit (Home Premium), 4GB RAM, 4.5TB HDD total, also 1x HD200 connected via HDMI to 42" LCD HDTV (Vizio). Comcast Cable (2x STB's to Colossus and HD-PVR, 2x QAM to HDHR, 2x QAM to HVR2250, 3x CableCard to Prime w/ SageDCT).
Reply With Quote
  #7  
Old 08-17-2012, 04:56 PM
KeithAbbott KeithAbbott is offline
Sage Expert
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 694
Every time I see this topic, I think of this:

http://www.youtube.com/watch?v=UP-Nlb549J8

__________________
Server (Headless): MSI H57M-ED65 mATX Motherboard, Intel i3-530 CPU, 4 x 2TB Hitachi Drives, Win7 Home Premium 32 bit, SageTV 7.1.9
Tuners: 4 x Hauppauge WinTV-HVR-2250 Dual TV Tuner Boards, 1 x SiliconDust HDHomeRun Dual Digital TV Tuner (OTA)
Clients: 4 x HD300 Extenders, 2 x HD200 Extenders
Miscellaneous: 2 x Sony RM-VLZ620 Universal Remote Controls
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java safe to use list MacDaddy SageTV Software 3 03-27-2011 08:15 AM
Safe to use Diamond on 7.1.5 or stil must stay on 7.1.2? TechBill Diamond 10 03-15-2011 08:00 AM
Safe to edit UID Prefix? tmiranda SageTV Studio 7 12-19-2009 06:43 PM
How safe is 33099??? Big Jeff SageTV Placeshifter 3 07-21-2007 04:12 AM
New Safe Way to Expand Storage spike5884 The SageTV Community 17 07-07-2007 03:12 PM


All times are GMT -6. The time now is 11:48 PM.


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2003-2005 SageTV, LLC. All rights reserved.