SageTV Community  

Go Back   SageTV Community > General Discussion > General Discussion
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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 Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
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)?
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #2  
Old 08-16-2012, 03:35 PM
nycjoe's Avatar
nycjoe nycjoe is offline
Sage Advanced User
 
Join Date: Jun 2008
Location: New York
Posts: 106
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.
__________________
{"HW": "NUC",
"CPU": "i7-5557U",
"RAM": "16GB",
"Recordings": "2TB SATA",
"Imports": "2x 4TB USB",
"Clients": ["HD300", "HD200", "SageTVClient"]}
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 Icon
 
Join Date: Aug 2007
Location: Richmond, VA
Posts: 1,042
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: AMD Ryzen Threadripper 2990WX 32-Core
Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64
Tuner HW: HDHR
Client: Nvidia Shield (HD300, HD100 in storage)
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 Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
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.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #7  
Old 08-17-2012, 04:56 PM
KeithAbbott KeithAbbott is offline
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
Every time I see this topic, I think of this:

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

__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls
Reply With Quote
Reply


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

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 07: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 12:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.