ChinaUnix.net
相关文章推荐:

netfilter 日志 siteblogchinaunixnet

  通俗的说,netfilter的架构就是在整个网络流程的若干位置放置了一些检测点(HOOK   ),而在每个检测点上上登记了一些处理函数进行处理(如包过滤,NAT等,甚至可以是   用户自定义的功能)。   IP层的五个HOOK点的位置如下图所示(copy from ) :   --->[1]--->[ROUTE]--->[3]--->[4]--->   | ^   | |   | [ROUTE]   v |   [2] [5]   | ^   | |   v |   [local process]   [1]:NF...

by where23 - 网络技术文档中心 - 2009-04-04 11:22:52 阅读(1271) 回复(0)

相关讨论

我想学习下netfilter 我该怎么入手呢?直接扎内核里吗?:em14:

by sunorr - C/C++ - 2008-11-25 11:54:28 阅读(1587) 回复(5)

一、Netfiter简介 ---From netfilter.samba.org/what is netfilter 从Linux Kernel 2.4开始,一个新的网络包过滤框架替代了原来的ipchains/ipfwadm系统,那就是netfilter和iptables。作为内核网络协议 堆的一个扩展子集,netfilter可以在内核空间非常高效的进行包过滤,网络地址转换(NAT)和包重组。同时,新的 netfilter/Iptables框架设计采取了更优的软件设计策略,让全世界的网络程序员可以针对各自的应用的开发各种不同的...

by where23 - 网络技术文档中心 - 2009-04-04 11:23:28 阅读(1458) 回复(0)

netfilter中那个文件是内核和,用户接口的?(我的意思是说.当用户写一个iptables -t mangle 策略时候,内核中那个文件负责读取用户空间发来的策略设置到表里面去的?)

by lib_net - 内核/嵌入技术 - 2006-12-15 09:42:52 阅读(902) 回复(5)

netfilter控制网络流量的资料 除了读/proc/下文件和netfilter控制网络流量还有别的方法吗

by ruchong - C/C++ - 2006-05-30 16:08:12 阅读(702) 回复(0)

我的程序如下: #define __KERNEL__ #define MODULE #include #include #include #include netfilter.h> #include netfilter_ipv4.h> #include #include #include #include static struct nf_hook_ops nfho_pre; struct ipv6_pk_flow { unsigned int flowid; struct sk_buff_head *q; } ; ...

by sunxpa - 内核/嵌入技术 - 2006-04-13 10:30:20 阅读(913) 回复(1)

请问: 怎样实现在两个网卡eth0,eth1上绑定两个IP_FORWARD线程(通过模块怎样实现) :?:

by filterhook - Linux论坛 - 2003-06-15 20:48:12 阅读(560) 回复(0)

1、在哪里可以下载源码? 2、谁可以在线交流?

by 我心依然 - Linux论坛 - 2003-04-09 17:50:35 阅读(617) 回复(3)

static unsigned nfhkfun(int hooknum,struct sk_buff **skb,const struct net_device *in,const struct net_device *out,int (*okfn)(struct sk_buff *)) { printk("I'm watch_out\n");//问题在此处 return NF_ACCEPT; } static int init(void) { nfhk.hook=nfhkfun; nfhk.hooknum=NF_IP_PRE_ROUTING; nfhk.pf=PF_INET; nfhk.priority=NF_IP_PRI_FIRST; nf_register_hook(&nfhk); return 0; } 这样是正常的。 但把上面...

by xiaoQ008 - C/C++ - 2009-09-07 22:24:05 阅读(1017) 回复(0)

这些人应该是开发Linux内核的 http://people.netfilter.org 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/34831/showart_270135.html

网络技术

by sinodragon21 - 网络技术文档中心 - 2007-04-03 12:20:26 阅读(686) 回复(0)

netfilter的连接跟踪表,是通过一个hash表来维护的,其首先把一个数据包根据来源/端口/协议转换成一个"tuple",然后根据这个"tuple"来计算hash值: [code]static u_int32_t hash_conntrack(const struct ip_conntrack_tuple *tuple) { #if 0 dump_tuple(tuple); #endif return (jhash_3words(tuple->src.ip, (tuple->dst.ip ^ tuple->dst.protonum), (tuple->src.u.all | (tuple->d...

by 独孤九贱 - C/C++ - 2006-07-23 15:34:51 阅读(1530) 回复(1)