From b5e84ea7006387724170b95a085a6f54021eaf61 Mon Sep 17 00:00:00 2001 From: Ryan Carter Date: Mon, 12 Jul 2021 21:21:36 -0700 Subject: [PATCH] add exact command to run when nfnetlink_log not loaded for af --- nftrace.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nftrace.go b/nftrace.go index deab633..84bb611 100644 --- a/nftrace.go +++ b/nftrace.go @@ -167,7 +167,8 @@ func CheckSysctl(af string) { log.Fatal(err) } if val != "nfnetlink_log" { - log.Fatalf("nfnetlink_log not loaded for address family, check 'sysctl net.netfilter.nf_log.%s'", af) + log.Fatalf("nfnetlink_log not loaded for address family, 'modprobe nfnetlink_log' kernel module and "+ + "enable it with: 'sysctl -w net.netfilter.nf_log.%s=nfnetlink_log'", af) } }