Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: Embedded webserver - advice needed  (Read 4497 times)

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43608
  • Penguins CAN fly
    • DSLstats
Embedded webserver - advice needed
« on: December 17, 2013, 08:27:12 PM »

I'm intending to add a simple embedded webserver to DSLstats, so that users can view their stats and graphs remotely. I've got it working to the point where users on the LAN can view the pages it serves, but now I have to make it available to remote connections, and I'm outside my comfort zone here. As I see it, there are three possibilities:

- put the PC running DSLstats in a DMZ
- use an unallocated port chosen by the user, and the user forwards that port in their firewall
- use uPnP

The first option is probably a non-starter, except for a small minority.
The second is easy to implement, but I'm unsure about the security implications.
I know next to nothing about uPnP.

Any advice would be welcome.

Logged
  Eric

ryant704

  • Reg Member
  • ***
  • Posts: 318
Re: Embedded webserver - advice needed
« Reply #1 on: December 17, 2013, 08:56:14 PM »

DMZ wouldn't be an option for me as it's already in use.

Security port would be most favorable depending upon the security issues it could raise.

Not too sure on uPnP but I've assumed it to be rather vulnerable unless it's been fixed in the last year or so.

I think this is a very good idea overall!
Logged

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43608
  • Penguins CAN fly
    • DSLstats
Re: Embedded webserver - advice needed
« Reply #2 on: December 17, 2013, 10:46:06 PM »

Thanks for that.
Logged
  Eric

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Embedded webserver - advice needed
« Reply #3 on: December 17, 2013, 11:49:48 PM »

Of your three options, I would not be happy using either the first or third (DMZ or UPnP).  :no:

The second, however, is reasonable and I would be prepared to configure my firewall appropriately -- if I ever require remote access to the statistics.  :)
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43608
  • Penguins CAN fly
    • DSLstats
Re: Embedded webserver - advice needed
« Reply #4 on: December 18, 2013, 07:24:54 AM »

Thanks, that ties up with a couple of opinions I've received privately.
Logged
  Eric

broadstairs

  • Kitizen
  • ****
  • Posts: 3700
Re: Embedded webserver - advice needed
« Reply #5 on: December 18, 2013, 08:10:10 AM »

I'd go for option 2 as well if I ever needed it. I'm sure that you have considered making the embedded web server an option as I probably would not use it anyway.

Stuart
Logged
ISP:Vodafone Router:Vodafone Wi-Fi hub FTTP

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43608
  • Penguins CAN fly
    • DSLstats
Re: Embedded webserver - advice needed
« Reply #6 on: December 18, 2013, 08:25:14 AM »

Thanks Stuart, yes it will be optional. There will be another tab under 'Configuration', where you can enable/disable it and set parameters such as the port number.
Logged
  Eric

broadstairs

  • Kitizen
  • ****
  • Posts: 3700
Re: Embedded webserver - advice needed
« Reply #7 on: December 18, 2013, 08:51:47 AM »

One thought about this which has just struck me. What happens if someone already runs an Apache (other web servers are available  :angel: ) on the same PC? Could there be a problem with which port(s) this DSLStats server listens on?

Stuart
Logged
ISP:Vodafone Router:Vodafone Wi-Fi hub FTTP

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43608
  • Penguins CAN fly
    • DSLstats
Re: Embedded webserver - advice needed
« Reply #8 on: December 18, 2013, 10:11:06 AM »

I guess the answer to that is that it's up to the user to choose a port which isn't currently in use on their system. I'm intending to stick to the officially unassigned ports (49152 - 65535) because the port authority says: "Assigned ports both System and User ports SHOULD NOT be used without or prior to IANA registration."

http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml
Logged
  Eric

Ronski

  • Moderator
  • Kitizen
  • *
  • Posts: 4308
Re: Embedded webserver - advice needed
« Reply #9 on: December 18, 2013, 10:12:43 AM »

@broadstairs You just configure it to use a different port.

You'll also need to open the relevant port  in your pc's firewall.
Logged
Formerly restrained by ECI and ali,  now surfing along at 550/52  ;D

broadstairs

  • Kitizen
  • ****
  • Posts: 3700
Re: Embedded webserver - advice needed
« Reply #10 on: December 18, 2013, 10:36:15 AM »

@broadstairs You just configure it to use a different port.

You'll also need to open the relevant port  in your pc's firewall.

Yes I know but since you can re-direct ports as well in most routers I just wanted to make sure that the server itself was not limited to port 80 or 8080 and relied on redirection.

Stuart
Logged
ISP:Vodafone Router:Vodafone Wi-Fi hub FTTP

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43608
  • Penguins CAN fly
    • DSLstats
Re: Embedded webserver - advice needed
« Reply #11 on: December 18, 2013, 11:21:47 AM »

Just to be clear, DSLstats will use the port chosen by the user. To access the webserver remotely, you'll point your browser at <IP address>:<Port number>/<Page name> (e.g. 50.60.70.80:55555/snrm.html).
Logged
  Eric

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Embedded webserver - advice needed
« Reply #12 on: December 18, 2013, 04:22:49 PM »

Excellent. That is just what I would have expected.  :)
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.
 

anything