Update on ICAP integration proposal: Working implementation of SSLproxy (icap branch) & icapsuricata (libsuricata service)

We should set user id before pledge, otherwise pledge aborts on OpenBSD, of course. My bad.

@@ -3202,5 +3202,9 @@ void SuricataPostInit(void)
         SystemHugepageSnapshotDestroy(prerun_snap);
         SystemHugepageSnapshotDestroy(postrun_snap);
     }
-    SCPledge();
+    /* Don't drop privileges if running as library */
+    if (SCRunmodeGet() != RUNMODE_LIB) {
+        SCSetUserID(suricata.userid, suricata.groupid);
+        SCPledge();
+    }
 }

Unfortunately, my workaround starting c-icap from /var/log/suricata/ does not work without the c-icap -N option, because c-icap calls chdir("/") when daemonizing. So, I had to patch the c-icap source code to not call chdir("/") instead, which is not ideal, but anyway.

UPDATE: UTMFW 8.0 released with Suricata

You can download the installation iso and img files for the amd64 arch to install and test-drive the new ICAP architecture easily.

Note that:

The release announcement is as follows.


This release showcases major new features.

  • UTMFW now supports HTTP/2 via ALPN upgrade, and deeply inspects HTTP/2 traffic.
  • The UDP 443 port is now open by default, and UTMFW deeply inspects HTTP/3 (QUIC) traffic.
  • Suricata replaces Snort, as both IDS and inline IPS.
  • UTMFW now inspects HTTP/1.1, HTTP/2, and HTTP/3 (QUIC) web traffic using icapsuricata and E2Guardian ICAP services, thanks to the new ICAP Architecture provided by SSLproxy.
  • UTMFW inspects POP3 and SMTP e-mail traffic using icapsuricata, p3scan, and smtp-gated.

Highlights of this release are:

  • SSLproxy 0.10.0, with HTTP/2 and HTTP/3 support, and ICAP subsystem
  • icapsuricata 0.1.0
  • Suricata 8.0.7
  • c-icap 0.6.5
  • E2Guardian 5.5.9
  • OpenSSL 3.5.7
  • libevent 2.1.13
  • nghttp2 1.69.0
  • nghttp3 1.18.0
  • ngtcp2 1.25.0
  • Variety of fixes and improvements

@Soner_Tari Thanks for all the updates and reporting issues. I’ve created Redmine tickets for all (I hope), if you’d like to watch them for updates, please follow them at:

@ish Thanks for the tickets. I’ll be following them for sure.

UTMFW 8.0.1 released with Suricata 8.0.8:

Highlights of this release are: