Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Zenarmor (Sensei)
»
Zenarmor Cloud Nodes Status
« previous
next »
Print
Pages: [
1
]
2
3
Author
Topic: Zenarmor Cloud Nodes Status (Read 4387 times)
just4fun
Newbie
Posts: 17
Karma: 2
Zenarmor Cloud Nodes Status
«
on:
May 18, 2024, 12:29:42 pm »
Hi,
I notice in the Zenarmor Dashboard that the Cloud Nodes Status drops over time to 0%
This has been the case since 1.17.1 (maybe earlier, I am a new user to Opnsense and Zenarmor),
in 1.17.2 the Global CTI Server disappeared ( as described in the release notes) , showing only Europe and Europe2 for me.
In addition, in 1.17.2, in the Zenarmor -> Settings -> Cloud Thread Intelligence -> Cloud Reputation Servers
I see no longer any Servers. In 1.17.1 I had a bunch of Servers shown there (US, Australia, etc).
The "Re-check Reputation Servers" Button is still there.
In the Log under System -> Log Files -> Backend I have Log entries like the following coming once per
Minute (so likely triggered by the "sensai periodicals" cron Job), which could be related:
[d65d2101-36a1-46cf-861d-7cfaaa43934b] Script action failed with Command '/usr/local/opnsense/scripts/OPNsense/Zenarmor/nodes_status.py --mode 'read'' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/actions/script_output.py", line 44, in execute subprocess.check_call(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.11/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '/usr/local/opnsense/scripts/OPNsense/Zenarmor/nodes_status.py --mode 'read'' returned non-zero exit status 1.
Also, I have Logs once per Minute pointing to
/usr/local/opnsense/scripts/OPNsense/Zenarmor/userenrich.py
which may or may not be related.
Does Cloud Nodes Status = Down or Cloud Nodes Status < 100% imply loss of security,
because Reputation Data cannot be retreived, or does it cause Network Delays because
Queries to the Reputation Servers are stalling?
I am not 100% sure but it could be the case that the CTI Servers disappeared after the thast
Upgrade to Opnsense itself, which came 2 days or so after Zenarmor 1.17.2. Opnsense ist at 24.1.7.
best regards,
Stephan
Logged
phantomsfbw
Jr. Member
Posts: 64
Karma: 3
Re: Zenarmor Cloud Nodes Status
«
Reply #1 on:
May 19, 2024, 02:55:18 pm »
I have the same problem
Logged
MikkoM
Newbie
Posts: 2
Karma: 0
Re: Zenarmor Cloud Nodes Status
«
Reply #2 on:
May 19, 2024, 02:55:49 pm »
Hello,
I'm also experiencing the same issue as you are and contacted the ZenArmor support with the same issue. Let's see what comes out of their recommendations, latest version update broke the Cloud Reputation Servers list.
Backend log full of this, like the with original thread poster.
2024-05-19T16:23:06 Error configd.py [1736955c-ddf2-4ca4-99b4-6864a9bec47e] Script action failed with Command '/usr/local/opnsense/scripts/OPNsense/Zenarmor/userenrich.py ' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/actions/script_output.py", line 44, in execute subprocess.check_call(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.11/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '/usr/local/opnsense/scripts/OPNsense/Zenarmor/userenrich.py ' returned non-zero exit status 1.
«
Last Edit: May 19, 2024, 03:25:23 pm by MikkoM
»
Logged
sy
Hero Member
Posts: 592
Karma: 44
Re: Zenarmor Cloud Nodes Status
«
Reply #3 on:
May 19, 2024, 09:04:11 pm »
Hi,
Thanks for the reporting. It doesn't seem a general problem. All servers are up and running. Can you check if OPNsense can reach both ICMP and UDP port 5355 to the used Servers. The server IP list is below
US-West 104.198.6.78
US-Central 104.155.129.221
US-East 34.74.12.235
Europe 35.198.172.108
Europe2 34.65.117.157
Asia 34.92.15.156
Asia2 35.244.50.89
Australia 35.189.37.160
Logged
MikkoM
Newbie
Posts: 2
Karma: 0
Re: Zenarmor Cloud Nodes Status
«
Reply #4 on:
May 19, 2024, 09:42:10 pm »
Fact still remains that the problem started immediately after the last ZenArmor update and Cloud Reputation Server functionality broke, why and how to fix it?
Second time already in short while spending timing fixing unknown problems after ZenArmor updates, getting somewhat frustrated.
Tests with UDP to the Europe servers, ICMP works fine and UDP test with NC:
Connection to 35.198.172.108 5355 port [udp/*] succeeded!
^C
root@OPNsense:~ # nc -u -v 34.65.117.157 5355
Connection to 34.65.117.157 5355 port [udp/*] succeeded!
^C
«
Last Edit: May 19, 2024, 09:47:44 pm by MikkoM
»
Logged
phantomsfbw
Jr. Member
Posts: 64
Karma: 3
Re: Zenarmor Cloud Nodes Status
«
Reply #5 on:
May 19, 2024, 10:07:00 pm »
SY,
I tried a Zenarmor reset as that was the only thing working in the Zenarmor menu. The reset seemed to work initially up to selecting a database type. I noticed there is now an Elastic 5 and 8 version database you can choose. I tried the version 8, and the installer said to make sure the Zenarmor cloud agent was connected. So after running that routine twice with no joy, I decided to uninstall from the Opnsense package manager and then reinstall. The reinstall failed as no Zenarmor entry was set in the Opnsense menu. So I have just uninstalled again and will leave it for a bit until the next Opnsense update. I am on the dev firmware so understand these things will happen.
Cheers!
Logged
just4fun
Newbie
Posts: 17
Karma: 2
Re: Zenarmor Cloud Nodes Status
«
Reply #6 on:
May 20, 2024, 11:37:03 am »
I can ping the CTI Servers.
The test with nc -u seems to be a bit pointless,
I also get the succeeded reply, but when I try random ports
or IP adresses I get the same succeeded message.
I always have to use CRTL-C to get out of nc then - no further activity
occours after the succeeded message.
What would be the correct way to test UDP Connectivity to those servers?
running
root@opnsense:~ # nc -u -v 104.198.6.78 5355
Connection to 104.198.6.78 5355 port [udp/*] succeeded!
in one window and
root@opnsense:~ # tcpdump -n -i pppoe1 host 104.198.6.78
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on pppoe1, link-type NULL (BSD loopback), capture size 262144 bytes
11:20:20.368732 IP 113.30.181.18.2034 > 104.198.6.78.5355: UDP, length 1
11:20:20.368768 IP 113.30.181.18.2034 > 104.198.6.78.5355: UDP, length 1
11:20:20.368801 IP 113.30.181.18.2034 > 104.198.6.78.5355: UDP, length 1
11:20:20.368818 IP 113.30.181.18.2034 > 104.198.6.78.5355: UDP, length 1
in another window tells me nothing comes back.
Adding the Source of the CTI Servers and the Source Port 5535 into an ACL didn't change
anything, so either really nothing is coming back, or the servers only respond to
specific UDP requests which authenticate as legitime queries, which is what I think and hope ...
Logged
dinguz
Sr. Member
Posts: 275
Karma: 13
Re: Zenarmor Cloud Nodes Status
«
Reply #7 on:
May 20, 2024, 01:07:42 pm »
This used to happen in the past as well, IIRC it had something to do with Zenarmor flagging the cloud servers as down after let’s say 10 minutes, but then it only pings them once every 20 minutes. So they’re always shown as down towards the end of the ping interval.
Logged
In theory there is no difference between theory and practice. In practice there is.
sy
Hero Member
Posts: 592
Karma: 44
Re: Zenarmor Cloud Nodes Status
«
Reply #8 on:
May 21, 2024, 11:48:36 am »
Hi All,
Do you protect the WAN interface on Zenarmor?
Logged
just4fun
Newbie
Posts: 17
Karma: 2
Re: Zenarmor Cloud Nodes Status
«
Reply #9 on:
May 21, 2024, 02:22:49 pm »
I do not protect WAN Interfaces with Zenarmor, only internal LAN and Guest Networks
Logged
phantomsfbw
Jr. Member
Posts: 64
Karma: 3
Re: Zenarmor Cloud Nodes Status
«
Reply #10 on:
May 21, 2024, 07:55:28 pm »
I was LAN only with Zenarmor as well. Use CROWDSEC and SURICATA for WAN.
Logged
just4fun
Newbie
Posts: 17
Karma: 2
Re: Zenarmor Cloud Nodes Status
«
Reply #11 on:
May 23, 2024, 12:02:13 pm »
Recent Updates (OPNsense 24.1.7_4-amd64 and Zenarmor 1.17.3 - May 20, 2024 4:08 PM)
brought back the CTI Server list in the Zenarmor Settings -> Cloud Threat Intelligence.
Cloud Nodes Status still goes down to "DOWN 0%"
Logged
lewald
Sr. Member
Posts: 333
Karma: 21
Re: Zenarmor Cloud Nodes Status
«
Reply #12 on:
May 24, 2024, 11:04:08 am »
Same here.
Cloud Nodes Statu ist down.
Europe and Europe2.
This happens after update
Logged
lewald
Sr. Member
Posts: 333
Karma: 21
Re: Zenarmor Cloud Nodes Status
«
Reply #13 on:
May 24, 2024, 02:50:33 pm »
Ok,
after make off->on in "~ui/zenarmor/#/0/settings/cloud-threat-intelligence" for Europe Nodes it runs now.
Logged
just4fun
Newbie
Posts: 17
Karma: 2
Re: Zenarmor Cloud Nodes Status
«
Reply #14 on:
May 24, 2024, 07:09:17 pm »
lewald,
can you please describe in a liitle more detail? I do not have / can not find those files / directories.
cd ~ui/zenarmor/#/0/settings gives me "no such user"
Thanks a lot,
Regards,
Stephan
Logged
Print
Pages: [
1
]
2
3
« previous
next »
OPNsense Forum
»
English Forums
»
Zenarmor (Sensei)
»
Zenarmor Cloud Nodes Status