Did you port netfilter?
alexsalig opened this issue · comments
Did you port netfilter completely? if no, which parts are ported? which rules can be defined?
no, I didn't
Thanks for your response.
I want to port the netfilter, as a start I want to port as less as possible to define simplest rules via iptables (e.g. droping packets from a specified IP address). With which files I should start? could you provide some guide lines for me?
- copy net/ipv4/netfilter folder from original 3.14 kernel under net/ipv4. According to your description, it looks like you need to port iptable filter table (iptable_filter.c), ip_tables.c , REJECT target (ipt_REJECT.c)
- copy net/netfilter/x_tables.c from original 3.14 kernel under corresponding location and port it
- Call init functions for added modules in appropriated places
This is to start. It is a time-consuming project, to port iptables.
Thank you so much!