Skip to content

guoygang/Sample-of-Network-Firewall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

sample of network firewall

A sample network firewall (# Test on Pixel phone)

This is simple network firewall writed by Yonggang Guo <[email protected]>.

Step to set kernel:

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.

Step to set arguments from userspace to kernel:

Please use the tool inet_filter I supported(which is in the branch inet_filter).

About

A Sample of Network Firewall

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages