Skip to contentSkip to conversation

Netfilter API help

DISCUSSION Tharanga 2 participants 2 messages Apr 23, 2007 – Apr 24, 2007 netfilter

lore
Share & tools
lore

Tharanga

author
#0 lore raw

Hello All,

Iam new to netfilter . and trying to implement a new firewall on linux 2.6.X kernel. can some one give me a URL to find the Netfilter API documentation to start my work. i trid to find it but couldnt. i'll be greatful , if some one can give me a breif introduciton to netfilter capabilities . then whats the different between berkley packet filtering and Netfilter ???

Many thanks,
Tharanga

#1 lore raw

mån 2007-04-23 klockan 15:10 +0600 skrev Tharanga:

Quoted 4 lines

Iam new to netfilter . and trying to implement a new firewall on linux 2.6.X kernel. can some one give me a URL to find the Netfilter API documentation to start my work. i trid to find it but couldnt. i'll be greatful , if some one can give me a breif introduciton to netfilter capabilities .

There is many layers...

Linux kernel TCP/IP stack

Netfilter hooks into the above.

Netfilter common infrastructure, mainly conntrack, nat and some netlink stuff

iptables

iptables matches & targets

The best source to netfilter programming details is the source code, after first reading the netfilter hacking howto which gives a reasonable (even if slightly outdated) introduction. Combined with making focused questions on this mailinglist.

Regards
Henrik