Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - JasMan

#46
I've to correct my first findings.
It's not Suricata only which causing the issue. The Wireguard interfaces causing the high load too, when the WG service stops or reloads.
Each WG IF causes a high load of an eastpect instance. If I remove all WG IFs from the Zenarmor configuration, the high load doesn't appear anymore.

I can't find a connection between the IPS rule update and the restart of the WG service. It seems that Suricata doesn't restart the WG service when the rules are updated.


Any guesses?
#47
Hi,
I noticed a recuring issue with the two processes "eastpect: Eastpect Instance 1 (eastpect){Eastpect Main Event}" and "eastpect: Eastpect Instance 2 (eastpect){Eastpect Main Event}". After some time both processes are producing 100% CPU load on two of four processors on my OPNsense appliance. I can only solve this by restarting Zensei or the whole appliance.

I've already found out, that this occures when Suricata has downloaded and installed the ET ruleset (https://rules.emergingthreats.net/open/suricata-6.0/emerging.rules.tar.gz), which is updated daily.
But the issue occures not every day. Sometimes it works for four or five days, and sometimes it happens on two or three consecutive days.

Has anybody noticed the same issue?
I've already opened a ticket at Sensei, but they don't know this issue.

Jas

EDIT: Changed the subject due to new findings
#48
21.1 Legacy Series / Re: 20.1.8 php error
July 07, 2021, 08:54:57 PM
Yep, I can confirm this.

After the update Sensei said that it needs to start "Elasticsearch DB" to show the reports. When I clicked "Yes" to confirm, the process "eastpect" consumed permanently 100% CPU, and the "There was an error" message on the dashboard appeared, which showed me the "PHP deprecated" message.
#49
21.1 Legacy Series / Re: 20.1.8 php error
July 07, 2021, 08:17:42 PM
Same here!
Thank you  :)
#50
Quote from: Greelan on June 06, 2021, 11:59:48 AM
Thanks for the suggestion. Is it possible to edit /conf/config.xml in situ and reload it?

I did it several times to change the IP subnet for all components (interface, aliases, DHCP reservations....) to get a configuration file, which I can import into my OPNsense VM test environment whitout having any IP conflicts in my network. Not sure if it's really supported, but I think as long as you just edit some values and keep the structure of the file, it should be fine.
#51
I would try to export the configuration in clear text, remove the alias from the XML and import the modified file again.
I would also recommend to search for the alias in the rule section of the exported configuration. Maybe the rule is still there.
#52
Hi folks,

I've configured a DHCPv4 lease with static ARP entry containing the broadcast mac address ff:ff:ff:ff:ff:ff. I'm using this IP to send WoL packets from other subnets to reach all clients in this subnet.

Worked well for years. But now, I've no idea since when exactly, OPNsense doesn't reply to queries for this IP address.

I did a packet capture and the ARP queries are arriving on the right interface. But I can't see any response. Only when the clients request the gateway address, which is the OPNsense interface, I can see the responses.
Any idea ?

EDIT: The ARP table of OPNsense contains the static ARP entry.
#53
@Greelan: Yep, the WG config contained a wrong DNS server (typo). Solved. Thank you :)
#54
Hey,

When I restart the Wireguard service, OPNsense is no longer able to resolve DNS names by itself. The LAN clients are all fine, only OPNsense can't resolve e.g. FQDN aliases.

Quote2021-05-23T12:21:01    unable to resolve download.qnap.com for alias WAN_QNAP_Download

I've to restart the appliance to resolve the issue.

I'm using Unbound as DNS resolver. It's listening on a loopback adapter, which address I have configured in the DHCP DNS server options for the clients as well as in the general settings of OPNsense (System: Settings: General)

I can remember that there was a similiar issue with OpenVPN, but I can't find the thread/issue on Github.

Any recommendations?

EDIT: Found out that saving the genereal settings of OPNsense again also solves the issue.
#55
Thank you for the How-To.

All values were already configured in the standard files as mentioned in your How-To.
I have only added the IP addresses of my hosts to the host-os-policy section, but that didn't helped.  :(
#56
I've about 58.000 rules enabled. That's a lot, I know. But it seems that they're not harming any other services like Netflix, Deezer or other connections which are using a constant bandwidth over a longer time.

I've enabled IDS/IPS on the LAN interface because I'm having several VLANs and interfaces. Therefore I want to scan the the traffic between them too.

My iPerf test run about two hours and there was no rising memory usage. So I guess it's a single rule which causes the issue during the SMB stream.

#57
Hey,

I'm often watching TV shows that I've recorded in the past, and saved on my NAS as MPG-2 file.
The playing device is a Dreambox (Linux based) in a different VLAN. The Dreambox uses SMB2 to play the file. The connection uses about 5 Mbit/s.

After approxm. 30 minutes watching I get an warning from my OPNsense, that the memory usage has reached 80% of 8 GB. The activity page shows that Suricata uses the most of it. The memory usage continues to grow up to 97% as long as the episode plays. Then the SWAP usage starts to grow.
My OPNsense uses about 20% of the memory during normal operation.

I do not see any drops or alerts in the IDS/IPS logs regarding this connection. I can try to define an IP-to-IP exception in the user rules section to prevent it. But if it's a single rule which causes this behaviour, I would prefer to identify and disable this rule.
Is this a normal behaviour? If not, how should I go through to prevent this?

Current Suricata settings: Promiscus & IPS modes are active. The pattern matcher is Hyperscan, and Suricata is only listening on the physical LAN interface. The home network subnets are entered.

Jas

EDIT: I'm not able to reproduce this issue by using iPerf3 to create an TCP connection with an constant bandwidth usage.
#58
@FullyBorked: I'm having the issues #3 and #4 (both) too.

I've reported issue #3 some minutes ago (https://github.com/opnsense/core/issues/4272)
Regarding syslog-ng there are several reports of users which having the same or other issues (https://github.com/opnsense/core/issues/4263)
#59
I'm having the same network setup as you. You need to allow the UDP responses from the Sonos devices for ports 40000-60000.

This is my "UDP Broadcast Relay" configuration
udp_vars="--id 1 --port 1900 --dev [INTERFACE_LAN] --dev [INTERFACE_IOT] --multicast 239.255.255.250"

This is my firewall ruleset to allow the communication between the Sonos app and the devices

From Sonos app to Sonos devices
TCP/1400, 1443

From Sonos devices to Sonos app
TCP/3400, 3401, 3500
TCP/4444
UDP/40000-60000
#60
Hey,
Same issue here.

I've opened a new thread: https://forum.opnsense.org/index.php?topic=17572.0
Not exactly what you are searching for, but maybe it's helpful for you too.

Jas