evilsocket / opensnitch

OpenSnitch is a GNU/Linux interactive application firewall inspired by Little Snitch.
GNU General Public License v3.0
9.86k stars 486 forks source link

ERR: Module not found (opensnitch-dns.o) in any of the paths #1076

Closed onny closed 5 months ago

onny commented 6 months ago

I have following errors in my OpenSnitch daemon log:

[2023-12-26 11:10:10]  ERR  [eBPF DNS]: Module not found (opensnitch-dns.o) in any of the paths.
[2023-12-26 11:10:10]  WAR  EBPF-DNS: Unable to attach ebpf listener: Module not found (opensnitch-dns.o) in any of the paths

This is my default-config.json:

{
  "DefaultAction": "allow",
  "DefaultDuration": "once",
  "Ebpf": {
    "ModulesPath": "/nix/store/7y60saa55lvwvk6vy68vpb2cfp55wpqa-opensnitch_ebpf-unstable-2023-12-22-6.1.69/etc/opensnitchd"
  },
  "Firewall": "nftables",
  "InterceptUnknown": false,
  "LogLevel": 2,
  "LogMicro": false,
  "LogUTC": true,
  "ProcMonitorMethod": "ebpf",
  "Rules": {
    "EnableChecksums": false
  },
  "Server": {
    "Address": "unix:///tmp/osui.sock",
    "LogFile": "/dev/stdout"
  },
  "Stats": {
    "MaxEvents": 150,
    "MaxStats": 25,
    "Workers": 6
  }
}

Inside the modules path are the files present:

ls /nix/store/7y60saa55lvwvk6vy68vpb2cfp55wpqa-opensnitch_ebpf-unstable-2023-12-22-6.1.69/etc/opensnitchd -la
total 480
dr-xr-xr-x 2 root root      0 Jan  1  1970 .
dr-xr-xr-x 3 root root      0 Jan  1  1970 ..
-r--r--r-- 2 root root  43400 Jan  1  1970 opensnitch-dns.o
-r--r--r-- 2 root root 303872 Jan  1  1970 opensnitch.o
-r--r--r-- 2 root root 143232 Jan  1  1970 opensnitch-procs.o

Reference: https://github.com/NixOS/nixpkgs/pull/276468

gustavo-iniguez-goya commented 5 months ago

Hey @onny ,

This problem should be fixed now. thank you for reporting it!

onny commented 5 months ago

Thanks this seems to have worked :)