Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Connection closed Web Interface

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
xtura
Posts: 3
Joined: Sat 07 Jan 2017 6:08 pm
Weather Station: Oregon Scientific WMR180
Operating System: Debian / OSX

Connection closed Web Interface

Post by xtura »

Hi all,

I've been testing Cumulus MX on a PI for about 2 years now. Never had the need to access the web interface from outside my internal network. Yesterday I decided to have a test and do a port forwarding (TCP & UDP) to see if I can access from the outer world. The result is that I can access the web interface but no displayed data. Just a popup message "Conection is Closed". I'm using the last 3.9.4 (build 3099) in a Raspbian Stretch. I'm also running an Nginx server that is not giving me any problems to access outside.

I can access configuration, recent charts and so on, only happens in the Dashboard and Now Menus. I was wondering if I'm missing some port forwarding or configuration here, any ideas are welcome.

And finally, thanks to all the comunity and developers for a fantastic piece of software!

roger

Connection_is_closed.jpg
You do not have the required permissions to view the files attached to this post.
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Connection closed Web Interface

Post by freddie »

I wouldn't open your MX interface to the Internet as anybody can access it and potentially read/adjust your configuration settings.

That aside, some MX interface webpages use websockets to access data. Perhaps that is the problem?
Freddie
Image
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Connection closed Web Interface

Post by mcrossley »

Freddie is correct, you will need to allow web sockets through your firewall as well. But I'd also reinforce - this is a really bad idea.

If you need to see it remotely then set up a VPN, or worse allow a desktop sharing app through. Limit them to known IP addresses, or IP ranges as well if you can.
xtura
Posts: 3
Joined: Sat 07 Jan 2017 6:08 pm
Weather Station: Oregon Scientific WMR180
Operating System: Debian / OSX

Re: Connection closed Web Interface

Post by xtura »

freddie wrote: Mon 04 Jan 2021 4:46 pm I wouldn't open your MX interface to the Internet as anybody can access it and potentially read/adjust your configuration settings.

That aside, some MX interface webpages use websockets to access data. Perhaps that is the problem?
You're totally correct :bash: , luckily in this case I was using a src filter as I'm using static IP address in the office, but it's definitely a bad idea to do it without proper firewall filtering.

The websocket must be my problem here, time to configure once and for all my VPN.

Thank you freddie!

roger
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Connection closed Web Interface

Post by mcrossley »

From memory, the Dashboard, Now, and Gauges pages use a web socket connection.
xtura
Posts: 3
Joined: Sat 07 Jan 2017 6:08 pm
Weather Station: Oregon Scientific WMR180
Operating System: Debian / OSX

Re: Connection closed Web Interface

Post by xtura »

mcrossley wrote: Mon 04 Jan 2021 5:47 pm Freddie is correct, you will need to allow web sockets through your firewall as well. But I'd also reinforce - this is a really bad idea.

If you need to see it remotely then set up a VPN, or worse allow a desktop sharing app through. Limit them to known IP addresses, or IP ranges as well if you can.
Sorry, yes, I was writing my post before seeing yours. I already have my OpenVPN up and running :mrgreen:

Thank you!
Post Reply