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 - hometux2

#1
J'ai trouvé la solution sur repo de github :

https://github.com/opnsense/ports/issues/323

Bonne fin de journée
#3
Hello,
After updating to OPNsense 26.10.7, Suricata fails to start (Error reconfiguring IDS / configctl ids restart returns Error (1)).
When running a config test via SSH, Suricata crashes immediately with an Illegal instruction error, even when mpm-algo is set to ac-ks (Aho-Corasick) instead of Hyperscan:
text
# suricata -T -c /usr/local/etc/suricata/suricata.yaml
Info: conf-yaml-loader: Including configuration file installed_rules.yaml.
Info: conf-yaml-loader: Configuration node 'rule-files' redefined.
Illegal instruction
Utilisez le code avec précaution.

Hardware / CPU details:
My firewall runs on older bare-metal hardware whose CPU instruction set stops at SSSE3 (no SSE4.1, SSE4.2, POPCNT, or AVX):
text
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0xe39d<SSE3,DTES64,MON,DS_CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM>
AMD Features=0x20100800<SYSCALL,NX,LM>
AMD Features2=0x1<LAHF>
Utilisez le code avec précaution.

It appears that the precompiled suricata package (or one of its linked dependencies like Rust/PCRE2/Vectorscan) in 26.10.7 is built with SSE4.2 or newer SIMD flags enabled at compile time.
Is there any runtime workaround or package flag planned to keep Suricata compatible with non-SSE4.2 x86_64 CPUs without having to manually recompile the port?
Thank you!
#4
Bonjour,
Suite au passage sur OPNsense 26.10.7, le service IDS (Suricata) refuse de démarrer avec l'erreur Erreur lors de la reconfiguration de l'IDS (configctl ids restart renvoie Error (1)).
En lançant le test en SSH, le processus plante immédiatement avec une erreur Illegal instruction, y compris lorsque le moteur de correspondance (mpm-algo) est forcé sur Aho-Corasick (ac-ks) à la place d'Hyperscan :
text
# suricata -T -c /usr/local/etc/suricata/suricata.yaml
Info: conf-yaml-loader: Including configuration file installed_rules.yaml.
Info: conf-yaml-loader: Configuration node 'rule-files' redefined.
Illegal instruction
Utilisez le code avec précaution.

Contexte matériel :
Mon pare-feu tourne sur une machine physique équipée d'un processeur Intel d'ancienne génération dont les instructions s'arrêtent au SSSE3 (pas de SSE4.1, SSE4.2, POPCNT ni AVX) :
text
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0xe39d<SSE3,DTES64,MON,DS_CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM>
AMD Features=0x20100800<SYSCALL,NX,LM>
AMD Features2=0x1<LAHF>
Utilisez le code avec précaution.


Voici mon système
------------------
=== CPU ===
hw.model: Intel(R) Core(TM)2 Duo CPU     E4500  @ 2.20GHz
hw.ncpu: 2
[1]   Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
[1]   Features2=0xe39d<SSE3,DTES64,MON,DS_CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM>
[1]   AMD Features=0x20100800<SYSCALL,NX,LM>
[1]   AMD Features2=0x1<LAHF>
[1] ZFS storage pool version: features support (5000)
=== SYSTEM ===
smbios.planar.maker="Dell Inc."
smbios.planar.product="0RY007"
smbios.system.maker="Dell Inc."
smbios.system.product="Inspiron 530"
=== RAM ===
3.94 GB



Le binaire précompilé de Suricata (ou l'une de ses dépendances comme Rust, PCRE2 ou Vectorscan) semble désormais compilé avec des optimisations nécessitant au minimum le jeu d'instructions SSE4.2.
Je ne souhaite pas changer de matériel : existe-t-il une option de configuration ou un ajustement prévu au niveau des paquets officiels pour éviter de devoir recompiler le port manuellement à chaque mise à jour ?
Merci d'avance pour votre aide !