A sample network firewall (# Test on Pixel phone)
This is simple network firewall writed by Yonggang Guo <[email protected]>.
Step 1:
cp ipv4_hunter.c net/ipv4/netfilter/ipv4_hunter.c
cp ipv4_hunter.h cp include/net/ipv4_hunter.h
step 2:
vim net/ipv4/netfilter/Makefile
Add the content as followed:
obj-y += ipv4_hunter.o
step 3:
Compile kernel source & fastboot the kernel to device.
Please use the tool inet_filter I supported(which is in the branch inet_filter).