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.