Skip to content

Netfilter-based ACL kernel module under Network stack for studying

Notifications You must be signed in to change notification settings

net-rw/nf-tinyacl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NF-TinyACL

NTL which stands for NF-TinyACL is a netfilter based ACL kernel module for studying. With this module, administrators can control incoming packets which their eth source address is matched to an entry in Deny List at bridge pre routing time. Packets income from device driver to bridge layer and walk through a bunch of hook points. Once the module is registered on the system, at the point of a packet through nf-tinyacl consider it should be dropped or passed to next stage.

The purpose of this module is studying for kernel network subsystem. No warranty on any risky situation and you have to verify all together before put in release. I have no responsibility for that case at all.

Module Workflow

diagram

Commands

Add
$ echo "add XX:XX:XX:XX:XX:XX" > /sys/kernel/debug/ntl/bridge/deny_list
Delete
$ echo "del XX:XX:XX:XX:XX:XX" > /sys/kernel/debug/ntl/bridge/deny_list
Show
$ cat /sys/kernel/debug/ntl/bridge/deny_list

License

Dual BSD/GPL

Thanks to

  • Christian Benvenuti, who wrote such a great book, Understanding Linux Network Internals.
  • 문c, who wrote great articles about Linux Kernel features, especially RCU part was helpful.
  • Austin Kim, who wrote a great book, 디버깅을 통해 배우는 리눅스 커널의 구조와 원리.
  • Kernel Hackers, who wrote such great source code.

About

Netfilter-based ACL kernel module under Network stack for studying

Resources

Stars

Watchers

Forks