diff --git a/daemon/Makefile b/daemon/Makefile index df537b3b..c827eebf 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -14,6 +14,8 @@ install: -t $(DESTDIR)/etc/opensnitchd/ @install -Dm644 system-fw.json \ -t $(DESTDIR)/etc/opensnitchd/ + @install -Dm644 network_aliases.json \ + -t $(DESTDIR)/etc/opensnitchd/ @systemctl daemon-reload opensnitchd: $(SRC) diff --git a/daemon/main.go b/daemon/main.go index 47fef948..b9c3a4fb 100644 --- a/daemon/main.go +++ b/daemon/main.go @@ -64,7 +64,7 @@ var ( logMicro = false rulesPath = "" configFile = "/etc/opensnitchd/default-config.json" - aliasFile = "network_aliases.json" + aliasFile = "/etc/opensnitchd/network_aliases.json" fwConfigFile = "" ebpfModPath = "" // /usr/lib/opensnitchd/ebpf noLiveReload = false @@ -579,7 +579,7 @@ func main() { err := rule.LoadAliases(aliasFile) if err != nil { - log.Fatal("Error loading network aliases: %v", err) + log.Warning("Error loading network aliases: %v", err) } log.Info("Loading network aliases from %s ...", aliasFile)