OPNsense Forum

English Forums => Zenarmor (Sensei) => Topic started by: WhiteTiger on February 10, 2024, 10:46:01 AM

Title: I need some advice for a first installation of Zenarmor
Post by: WhiteTiger on February 10, 2024, 10:46:01 AM
I installed Zenarmor with a Home license.
Over time I had already configured Suricata on the WAN and a rule to block all countries outside my own.
Now with Zernarmor I will have to change something.

Title: Re: I need some advice for a first installation of Zenarmor
Post by: sy on February 10, 2024, 08:55:36 PM
Hi,

1- It is in our roadmap. Please keep in touch for the announcement.

2- You can not protect the same interface with Suricata in (IPS mode) and Zenarmor. You can protect your WAN interface on Zenarmor.

3- The default policy matches the session which if it is not match any custom policy. So you need to set each policy rules individually. The default policy settings will be applied only the sessions that matches it.

4- Home license has the default + 2 custom policies.

5- It is enough to protect only the parent interface. Zenarmor will cover VLANs inside it. If you protect both the parent and child interface together, the traffic will be inspected 2 times.

6- Zenarmor always checks the network packages if there is more detail or new information for the devices until you activate stop device updates in device detail.

7- It should be better to wait a bit more. Zenarmor catches the information from network packages and match them with its device identification database. If it is not be corrected for a while, please share Zenarmor logs with the team via Have feedback option in UI. It could be a false positive classification.
Title: Re: I need some advice for a first installation of Zenarmor
Post by: WhiteTiger on February 11, 2024, 12:43:23 PM
Thanks for the reply.
I'm sorry, but it's still not clear to me how the two policies overlap.

If I didn't misunderstand:
It's correct?

Furthermore, it is not clear to me the overlap between the protection of em0 and em1. If I protect the WAN from malware, for example, I shouldn't need to also protect the LAN and VLANs.
I can only think of the case in which a laptop infected elsewhere is then connected to the LAN.

Then, I have a Quad Core i5 and 8GB RAM, after installing Zenarmor (still configuring superficially) and I have CPU peaks at 95% and stable RAM at 81%. It's correct?
Title: Re: I need some advice for a first installation of Zenarmor
Post by: sy on February 11, 2024, 10:11:02 PM
Hi,

1- The best practice is to protect the LAN physical interface(s) on Zenarmor. But if you would like to protect only specific VLAN(s) on the interface, you can protect individual VLAN(s) as well. If you protect all inner interface(s) on Zenarmor, The WAN interface protection is optional.

2- Zenarmor applies only one policy to a session. So, if you configure a custom policy that matches to your VLAN traffic, only the custom policy will apply for your VLAN traffic. The Default policy only will be applied for the sessions that don't match to your custom policy(ies). If you don't add any custom policy, the default policy will be applied to all sessions. Or, for example, you added a policy for VLAN 100, this policy will be applied to VLAN 100 and all other traffic will match to default policy. Please visit the following link for further detail.
https://www.zenarmor.com/docs/opnsense/policies/configuring-policy

3- Yes, that's correct.

CPU and Ram usage seems pretty high. Can you share top -ao res command?

Title: Re: I need some advice for a first installation of Zenarmor
Post by: WhiteTiger on February 11, 2024, 11:42:51 PM
In attach the screenshot of "top -ao res" command.

I'm just doing some testing at the moment and have only secured em0-WAN and em1.
In default policy I only have:
* in Security Malware/Virus, Phishing, hacking, Potentially Dangerous.
* In Web control Adult, Dating, Pornography, Social Networks.

If I open a well-known porn site I get an error page "This page is blocked".
Instead, if I open a well-known adult magazine, a dating site and the most well-known social network, an ERR_CONNECTION_CLOSED error appears with the message "WEBSITE has closed the connection unexpectedly".
Why is there no error page for these?

About the devices, they are all wrong.
The switch is Android, Win 11 is another Android, the router is Win10, ...
I'll send a log tomorrow.