What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

How to build iptables extensions

michael249478

Occasional Visitor
Hi

Someone could help me, for building an iptables extension on asusmerlin firmware ?

I downloaded firmware source and the toolchain (via docker), i am able to build the firmware with thoses commands:

source /home/docker/envs/bcm-hnd-ax-4.19.sh
cd /build/release/src-rt-5.04axhnd.675x/
make gt-*****

I want to include an additionnel iptables module in the firmware .

i see ".h" and ".c" files those location
/build/release/src-rt-5.04axhnd.675x/kernel/linux-4.19/net/netfilter/xt_rateest.c and /build/var/lib/docker/volumes/asusmerlin/release/src-rt-5.04axhnd.675x/kernel/linux-4.19/include/net/netfilter/xt_rateest.h.

but how to tell make command to build those modules ?

Thanks in advance for help

Best regards
 
Thanks very much for the help.
I succefully build this netfilter module.

But the module is in .so format (i think user space module)
When i try to measure interface bandwitch with netfilter, i see only some Kb traffic while i download at 1 Gbps (pehaps, because the rateest module is build, for user space .so)

It's a way to create a .ko module to have a kernel space module ?

Best Regards
 
When i try to measure interface bandwitch with netfilter, i see only some Kb traffic while i download at 1 Gbps
It probably demonstrates how HW acceleration is bypassing netfilter after the initial connection processing.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top