Installation Guide For PF_RING

本文提供了一个详细的PF_RING安装教程,适用于Ubuntu 9.10系统,包含卸载旧版libpcap、安装依赖软件、使用Subversion获取源代码等步骤,并针对Intel PRO/1000网络卡进行了具体说明。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Installation Guide For PF_RING June 15, 2010

Below you can find an installation guide for PF_RING written by Gunjan Bansal.

 

The original blog entry can be found at this URL .

 

————-

Hi,

This is my first guide so please bear with me for any disrespencies.

 

These steps were tested on Intel Core 2 Duo machine with 4 GB Ram and  Intel(R) PRO/1000 Network Card , with Ubuntu 9.10 installed.This guide explains the installation procedure for Version 4.3.1

 

PF_RING implementation by Luca Deri is a great method for efficient Packet Capture on Commodity Hardware.It can be found on http://www.ntop.org/PF_RING.html

 

 

I made a clean install,no other packages were installed other than mentioned.

 

 

  1. Uninstall libpcap and other dependent applications/library using syanptic or apt-get
  2. Install subversion (For fetching latest source codes),flex and bison (Required to recompile pf_ring aware pcap),ethtool (if not preinstalled,required for some basic Nic info of your computer)
  3. Use Subversion to fetch source codes
    svn co https://svn.ntop.org/svn/ntop/trunk/PF_RING/   PF_RING
  4. Check your current network card/driver using ethtool

    ethtool -i eth0 #change eth0 to your ethernet card Sample
    driver: e1000e
    version: 1.0.2-k2
    firmware-version: 0.4-3
    bus-info: 0000:00:19.0 use man ethtool for more information on how to use ethtool As of version 4.3.1 PF_RING can be fully exploited only on the PF_RING aware device drivers.The modified device drivers for some of the popular network cards can be found in PF_RING/drivers .
    These are modified version of the drivers supplied from respective companies.(Might be a bit older sometimes but will work)
  5. Unload the ethernet card driver (this is shown in the first line of output of above command

    sudo rmmod e1000e
  6. Change current working directory to kernel cd PF_RING/kernel
  7. Make the source codes make Here i had observed that many a times people(even I on first attempt)use sudo make or sudo -s , make . The former is not a correct method and will give you errors such as bounds.c missing , etc.
    Latter is also wrong but will do the job . The reason for such a thing is better explained by the difference in the command “sudo” and “sudo -s” . This can be found at http://ubuntuforums.org/showthread.php?t=983645 , or searching for “difference between sudo and sudo -s” on our favorite google
  8. Now install the newly build source

    sudo make install
  9. Change the working directory to PF_RING/userland/lib cd ../userland/lib
  10. Again build the source codes make
  11. Install the library (This include pfring.h) sudo make install
  12. One bizarre thing that I observed is that the make install copies pfring.h to /usr/local/include but leaves the other dependent files these are :-
    • pfring_e1000e_dna.c
    • pfring_e1000e_dna.h
  13. Although the function in these files are not required in much of the program, they are include in pfring.h and i don’t want to mess up with that.So we copy this to /usr/local/include . Please check this in later versions . cp pfring_e1000e_dna.c /usr/local/include
    cp pfring_e1000e_dna.h /usr/local/include
  14. Now we have to compile PF_RING aware pcap library . Change the working directory to userland/libpcap-1.0.0-ring cd ../libpcap-1.0.0-ring/
  15. Configure ./configure
  16. Build the sources make
  17. Install pf_ring aware libpcap

    sudo make install
  18. Now we need to install the device driver(pf_ring aware).Change the working directory to drivers///src
    In my case it is “drivers/intel/e1000e-1.0.15/src cd ../../drivers/intel/e1000e-1.0.15/src
  19. Build the source

    make
  20. Install the driver sudo make install
  21. Now we need to activate PF_RING if its not already activated . You can use lsmod to check if pf_ring is started or not.Change the working diectory to /lib/modules//kernel/net/pf_ring . cd /lib/modules/2.6.31-14-generic/kernel/net/pf_ring
    Use uname -r to get the kernel version
  22. Enable PF_RING(if already enabled you can disable it using sudo rmmod pf_ring )

    sudo insmod pf_ring.ko transparent_mode=1 More on transparent mode can be found at http://www.ntop.org/blog/?p=56
  23. Now enable to enable your driver go to /lib/modules//kernel/drivers/net/e100e cd /lib/modules/2.6.31-14-generic/kernel/drivers/net/e1000e
  24. Enable the driver sudo insmod e1000e.ko
  25. Now you can start working on your PF_RING application.You will have to recompile many applications such as tcpdump(modified included),network manager etc. Google for doing so :)
基于Spring Boot搭建的一个多功能在线学习系统的实现细节。系统分为管理员和用户两个主要模块。管理员负责视频、文件和文章资料的管理以及系统运营维护;用户则可以进行视频播放、资料下载、参与学习论坛并享受个性化学习服务。文中重点探讨了文件下载的安全性和性能优化(如使用Resource对象避免内存溢出),积分排行榜的高效实现(采用Redis Sorted Set结构),敏感词过滤机制(利用DFA算法构建内存过滤树)以及视频播放的浏览器兼容性解决方案(通过FFmpeg调整MOOV原子位置)。此外,还提到了权限管理方面自定义动态加载器的应用,提高了系统的灵活性和易用性。 适合人群:对Spring Boot有一定了解,希望深入理解其实际应用的技术人员,尤其是从事在线教育平台开发的相关从业者。 使用场景及目标:适用于需要快速搭建稳定高效的在线学习平台的企业或团队。目标在于提供一套完整的解决方案,涵盖从资源管理到用户体验优化等多个方面,帮助开发者更好地理解和掌握Spring Boot框架的实际运用技巧。 其他说明:文中不仅提供了具体的代码示例和技术思路,还分享了许多实践经验教训,对于提高项目质量有着重要的指导意义。同时强调了安全性、性能优化等方面的重要性,确保系统能够应对大规模用户的并发访问需求。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值