Netfilter-packet-flow.svg

http://upload.wikimedia.org/wikipedia/commons/3/37/Netfilter-packet-flow.svg

 

 

调试网络的方法:(Debugging the kernel using Ftrace)

 $ watch -n1 -d sudo cat /proc/net/snmp
$ watch -n1 -d sudo cat /proc/net/dev
 

1. $ sudo mount -t debugfs nodev debug

2. $ echo ip_rcv > set_graph_function

3. $ echo function_graph > current_tracer

4. $ echo 0 > tracing_on turn off trace, default is on

5. all log is on trace file

 

更多的文章,请看 内核目录下面的 $ ls Documentation/trace/events.txt Documentation/trace/tracepoints.txt  

 

有关 IP forwarding 

https://en.wikipedia.org/wiki/IP_forwarding

http://unix.stackexchange.com/questions/14056/what-is-kernel-ip-forwarding

各种使能IP forwarding的方法

http://www.ducea.com/2006/08/01/how-to-enable-ip-forwarding-in-linux/

IPtables中SNAT和MASQUERADE的区别

http://soft.zdnet.com.cn/techupdate/2008/0317/772069.shtml

http://blog.163.com/qk_zhu/blog/static/195076154201162795311632/ 

nat_tutorial 

http://www.karlrupp.net/en/computer/nat_tutorial

 

redhat firewall

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Security_Guide/ch-fw.html

 

Port forward with iptables

介绍了local process的处理过程 

https://serverfault.com/questions/646522/port-forward-with-iptables

转载于:https://www.cnblogs.com/shaohef/p/3952431.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值