Open Trigus42 opened 3 months ago
This error is caused by the missing of nfnetlink_queue
kernel module.
I have no experience with Raspbian, and I don't have a RaspberryPi. You may be able to find a third-party kernel with this kernel module, or try apt search
to see if there are any additional kernel modules available.
If you'd like to build the kernel yourself, make sure you have following kernel config enabled.
# NFQUEUE
CONFIG_NETFILTER_NETLINK_QUEUE=m
CONFIG_NFT_QUEUE=m
CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m
# Conntrack
CONFIG_NF_CONNTRACK=m
CONFIG_NFT_CT=m
# MARK
CONFIG_NETFILTER_XT_MARK=m
CONFIG_NETFILTER_XT_MATCH_MARK=m
# CONNMARK
CONFIG_NETFILTER_XT_CONNMARK=m
CONFIG_NETFILTER_XT_TARGET_CONNMARK=m
CONFIG_NETFILTER_XT_MATCH_CONNMARK=m
Unfortunately that doesn't seem to be the issue:
root@raspberrypi:~/OpenGFW# lsmod | grep nfnetlink_queue
nfnetlink_queue 24576 0
nfnetlink 20480 5 nfnetlink_queue,nft_compat,nf_conntrack_netlink,nf_tables
root@raspberrypi:~/OpenGFW# ./OpenGFW -l debug -c config.yaml rules.yaml
2024-04-11T20:01:49+02:00 INFO engine started
2024-04-11T20:01:49+02:00 DEBUG worker started {"id": 0}
2024-04-11T20:01:49+02:00 DEBUG worker started {"id": 2}
2024-04-11T20:01:49+02:00 DEBUG worker started {"id": 1}
2024-04-11T20:01:49+02:00 DEBUG worker started {"id": 3}
2024-04-11T20:01:49+02:00 DEBUG worker stopped {"id": 1}
2024-04-11T20:01:49+02:00 DEBUG worker stopped {"id": 0}
2024-04-11T20:01:49+02:00 INFO engine exited {"error": "netlink receive: operation not supported"}
2024-04-11T20:01:49+02:00 DEBUG worker stopped {"id": 3}
2024-04-11T20:01:49+02:00 DEBUG worker stopped {"id": 2}
Trying to run this on a RaspberryPi 4, I get the following error:
I'd guess this is some problem with the kernel. If that's the case, could you give me some hints as to which kernel options I need to enable or packages I have to install? If not, do you have an idea what could be the problem here?