Page 1 of 1

Need help compiling a kernel module for latest Raspbian

Posted: Tue Apr 17, 2018 3:08 pm
by FlexMcMurphy
Hello,

I have a Pi3 running a recent Raspbian:

# uname -a
Linux nextcloudpi 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l GNU/Linux

I am trying to run a program, sshttp https://github.com/stealth/sshttp on my Pi that requires a module: nf_tproxy_core

However when i try to load this module with:
# modprobe nf_tproxy_core

I get the error:
modprobe: FATAL: Module nf_tproxy_core not found in directory /lib/modules/4.9.80-v7+

So I had a look and indeed nf_tproxy_core.ko does not exist in /root/lib/modules/4.9.80-v7+/kernel/net/netfilter

There is source code for nf_tproxy_core.c here https://github.com/opennetworklinux/lin ... oxy_core.c although I'm not sure if it will compile/make on my Raspbian.

Would anyone know by looking at that code (considering the headers it has for instance) if it could be compiled into a compatible loadable module for my version of Raspbian?

Maybe there is another reason why this module is not already in Raspbian.. maybe it is obsolete and deprecated?

Thank you,

Flex

Re: Need help compiling a kernel module for latest Raspbian

Posted: Tue Apr 17, 2018 5:16 pm
by FlexMcMurphy
OK so I updated to the latest Raspbian Kernel with # rpi-update

and

downloaded the source and header files for the latest Raspbian kernel with # rpi-source (from gitHub)

A "Linux" directory is created in the root users HOME dir however when I go to:

/linux/net/netfilter there is no nf_tproxy_core.c
and in
/linux/include/net/netfilter there is no nf_tproxy_core.h

Sorry if this is a basic question but ... does this mean there is no way for me to get this program - sshttp to run on my Pi3 since it requires nf_tproxy_core.ko

Could I get nf_tproxy_core.c and nf_tproxy_core.h from somewhere else and compile/make them for my Raspbian OS?

Thank you,

Flex

Re: Need help compiling a kernel module for latest Raspbian

Posted: Wed Apr 18, 2018 9:16 am
by SteveSpencer
Looking at the github you specified, it appears that this is for kernel version 3.8.13, which is far older than the version currently available for the Pi .
You may be out of luck, unless you can find the source for a later version. Is there a discussion group or anything for the opennetworking stuff?