Skip to content

Commit

Permalink
add exact command to run when nfnetlink_log not loaded for af
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Carter committed Jul 13, 2021
1 parent 0ea6e01 commit b5e84ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nftrace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit b5e84ea

Please sign in to comment.