当前位置: 首页 > news >正文

12380网站建设存在的问题手机如何制作自己的网站

12380网站建设存在的问题,手机如何制作自己的网站,家具网站模版,福州做网站设计外包操作系统版本:Ubuntu 20.04.5 suricata版本: suricata-7.0.0-rc1 suricata是一个基于规则的入侵检测和防御引擎,功能强大,但性能可能 差强人意,不过目前最新的7版本已经支持DPDK收包了,DPDK是Intel提供的高…

操作系统版本:Ubuntu 20.04.5
suricata版本: suricata-7.0.0-rc1

suricata是一个基于规则的入侵检测和防御引擎,功能强大,但性能可能 差强人意,不过目前最新的7版本已经支持DPDK收包了,DPDK是Intel提供的高性能网络收发包开源库,可想而知,suricata支持DPDK收包会带来性能的极大提升。

下面我们来看一下,如何安装基于DPDK收发包的suricata:
1、安装依赖包:
sudo apt-get -y install autoconf automake libtool && sudo apt-get -y install pkg-config && sudo apt-get -y install zlib1g-dev && apt install -y libpcre2-dev && apt install -y libpcre3-dev && apt-get -y install libyaml-dev && apt install -y libjansson-dev && apt install -y libpcap-dev && apt-get -y install libmagic-dev && apt-get -y install liblz4-dev && apt-get -y install libcap-ng-dev && apt -y install rustc cargo && sudo apt-get install -y libnet-dev && cargo install --force cbindgen

2、安装DPDK开发库:
apt-get install dpdk-dev
如果dpdk下载的版本太低(suricata支持的DPDK最低版本为19.11),需要更新apt的源,即修改/etc/apt/sources.list文件。
当然也可以下载自己想安装的DPDK版本,然后按照安装步骤把DPDK先安装好。DPDK的安装步骤可以参照之前的文章:DPDK的源码编译安装

3、下载igb_uio驱动并编译驱动:
git clone git://dpdk.org/dpdk-kmods
cd dpdk-kmods/linux/igb_uio
make
成功编译后,可以看到生成了igb_uio.ko驱动文件,后面会加载这个文件。

4、如果想使用Hyperscan来进行模式匹配,还需要事先安装好Hyperscan:
Hyperscan的安装步骤可以参照之前的文章:Hyperscan的源码编译安装

5、从github上下载suricata源码
git clone https://github.com/OISF/suricata.git suricata-7.0.0-rc1

6、切换到7.0.0-rc1版本:
cd suricata-7.0.0-rc1
git checkout suricata-7.0.0-rc1

7、从github下载http解析库libhtp,并生成Makefile:
git clone https://github.com/OISF/libhtp
cd libhtp
./autogen.sh
./configure --enable-rust=yes --enable-gccmarch-native=no CPPFLAGS=-I/usr/include/ CFLAGS=-g
cd …

8、编译和安装suricata:
./autogen.sh
./configure --enable-rust=yes --enable-gccmarch-native=no --enable-dpdk=yes --enable-libmagic=yes CPPFLAGS=-I/usr/include/ CFLAGS=-g
make -j
make install
make install-conf
make install-full

9、下载suricata规则:
sudo apt install -y python3-pip python-yaml
sudo pip install --upgrade suricata-update
suricata-update

10、检查编译的suricata是否支持DPDK:
suricata --build-info
在这里插入图片描述

11、修改suricata DPDK收包网卡配置:
先用lshw -C network -businfo命令找到网卡的pcie地址,然后在/usr/local/etc/suricata/suricata.yaml文件中配置suricata DPDK收包,主要修改interface和copy-iface配置。
在这里插入图片描述

dpdk:eal-params:proc-type: primary# DPDK capture support# RX queues (and TX queues in IPS mode) are assigned to cores in 1:1 ratiointerfaces:- interface: 0000:0b:00.0 # PCIe address of the NIC port# Threading: possible values are either "auto" or number of threads# - auto takes all cores# in IPS mode it is required to specify the number of cores and the numbers on both interfaces must matchthreads: 1promisc: true # promiscuous mode - capture all packetsmulticast: true # enables also detection on multicast packetschecksum-checks: true # if Suricata should validate checksumschecksum-checks-offload: false # if possible offload checksum validation to the NIC (saves Suricata resources)mtu: 1500 # Set MTU of the device in bytes# rss-hash-functions: 0x0 # advanced configuration option, use only if you use untested NIC card and experience RSS warnings,# For `rss-hash-functions` use hexadecimal 0x01ab format to specify RSS hash function flags - DumpRssFlags can help (you can see output if you use -vvv option during Suri startup)# setting auto to rss_hf sets the default RSS hash functions (based on IP addresses)# To approximately calculate required amount of space (in bytes) for interface's mempool: mempool-size * mtu# Make sure you have enough allocated hugepages.# The optimum size for the packet memory pool (in terms of memory usage) is power of two minus one: n = (2^q - 1)mempool-size: 65535 # The number of elements in the mbuf pool# Mempool cache size must be lower or equal to:#     - RTE_MEMPOOL_CACHE_MAX_SIZE (by default 512) and#     - "mempool-size / 1.5"# It is advised to choose cache_size to have "mempool-size modulo cache_size == 0".# If this is not the case, some elements will always stay in the pool and will never be used.# The cache can be disabled if the cache_size argument is set to 0, can be useful to avoid losing objects in cache# If the value is empty or set to "auto", Suricata will attempt to set cache size of the mempool to a value# that matches the previously mentioned recommendationsmempool-cache-size: 257rx-descriptors: 1024tx-descriptors: 1024## IPS mode for Suricata works in 3 modes - none, tap, ips# - none: IDS mode only - disables IPS functionality (does not further forward packets)# - tap: forwards all packets and generates alerts (omits DROP action) This is not DPDK TAP# - ips: the same as tap mode but it also drops packets that are flagged by rules to be droppedcopy-mode: ipscopy-iface: 0000:13:00.0 # or PCIe address of the second interface- interface: 0000:13:00.0threads: 1promisc: truemulticast: truechecksum-checks: truechecksum-checks-offload: falsemtu: 1500#rss-hash-functions: automempool-size: 65535mempool-cache-size: 257rx-descriptors: 1024tx-descriptors: 1024copy-mode: ipscopy-iface: 0000:0b:00.0

12、配置DPDK大页内存:
在/etc/default/grub中添加GRUB_CMDLINE_LINUX=“net.ifnames=0 biosdevname=0 default_hugepagesz=2M hugepagesz=2M hugepages=2048”,也可以根据CPU的配置为1G大页。
在这里插入图片描述
重新生成grub配置文件: grub-mkconfig -o /boot/grub/grub.cfg

13、查看大页内存是否生效:
reboot重启系统后,使用grep Huge /proc/meminfo查看大页内存配置
在这里插入图片描述

14、加载igb_uio驱动,并绑定网卡使用igb_uio驱动:
modprobe uio
insmod dpdk-kmods/linux/igb_uio/igb_uio.ko
先使用dpdk-devbind.py -s查看网卡驱动绑定情况:
在这里插入图片描述
绑定两张网卡使用igb_uio驱动:
dpdk-devbind.py -b igb_uio 0000:0b:00.0
dpdk-devbind.py -b igb_uio 0000:13:00.0

15、运行suricata:
至此,DPDK和suricata的运行环境都已经配置好了,我们现在使用suricata --dpdk来启动suricata试试:
在这里插入图片描述
OK,大功告成,我们已经成功迈出了学习研究suricata的第一步。
如果想测试下DPDK收发包是否正常,可以让刚刚DPDK收包指定的两个网卡分别连上两台主机,并配置同网段的IP地址,看两台主机能否互相访问。


文章转载自:
http://halophile.bbrf.cn
http://trisaccharide.bbrf.cn
http://libertinism.bbrf.cn
http://guadeloupe.bbrf.cn
http://on.bbrf.cn
http://nazarite.bbrf.cn
http://lomentum.bbrf.cn
http://manchester.bbrf.cn
http://granitiform.bbrf.cn
http://mandinka.bbrf.cn
http://slivovitz.bbrf.cn
http://swamp.bbrf.cn
http://ovir.bbrf.cn
http://morphonology.bbrf.cn
http://hyperbolic.bbrf.cn
http://klepht.bbrf.cn
http://megamillionaire.bbrf.cn
http://belock.bbrf.cn
http://solacet.bbrf.cn
http://interoceptive.bbrf.cn
http://nobody.bbrf.cn
http://isotach.bbrf.cn
http://bonesetting.bbrf.cn
http://higlif.bbrf.cn
http://etr.bbrf.cn
http://youthy.bbrf.cn
http://technophile.bbrf.cn
http://electrotaxis.bbrf.cn
http://leasable.bbrf.cn
http://undecipherable.bbrf.cn
http://juxtaterrestrial.bbrf.cn
http://puffy.bbrf.cn
http://nobbler.bbrf.cn
http://jalousie.bbrf.cn
http://forceps.bbrf.cn
http://aglare.bbrf.cn
http://tanbark.bbrf.cn
http://skinhead.bbrf.cn
http://sector.bbrf.cn
http://carbonaceous.bbrf.cn
http://hemocytoblastic.bbrf.cn
http://aut.bbrf.cn
http://hairstylist.bbrf.cn
http://spiflicate.bbrf.cn
http://boil.bbrf.cn
http://ballerina.bbrf.cn
http://empaquetage.bbrf.cn
http://propagation.bbrf.cn
http://adhibit.bbrf.cn
http://occasional.bbrf.cn
http://ghazze.bbrf.cn
http://xenobiology.bbrf.cn
http://ungulate.bbrf.cn
http://taky.bbrf.cn
http://indign.bbrf.cn
http://fray.bbrf.cn
http://mazda.bbrf.cn
http://etypic.bbrf.cn
http://unwind.bbrf.cn
http://stratigraphical.bbrf.cn
http://antiicer.bbrf.cn
http://anabaptist.bbrf.cn
http://technopolitan.bbrf.cn
http://telekineticist.bbrf.cn
http://pentasyllable.bbrf.cn
http://bedrail.bbrf.cn
http://antichristian.bbrf.cn
http://idun.bbrf.cn
http://distention.bbrf.cn
http://maksoorah.bbrf.cn
http://synthetist.bbrf.cn
http://steve.bbrf.cn
http://nurseryman.bbrf.cn
http://normalizer.bbrf.cn
http://insulinize.bbrf.cn
http://palmyra.bbrf.cn
http://haematogenous.bbrf.cn
http://connotation.bbrf.cn
http://desquamate.bbrf.cn
http://italianist.bbrf.cn
http://usnach.bbrf.cn
http://tailleur.bbrf.cn
http://bismuth.bbrf.cn
http://sighthole.bbrf.cn
http://propagandistic.bbrf.cn
http://whorish.bbrf.cn
http://ptolemy.bbrf.cn
http://workwise.bbrf.cn
http://footrest.bbrf.cn
http://sauerkraut.bbrf.cn
http://dunt.bbrf.cn
http://photobiological.bbrf.cn
http://nephelauxetic.bbrf.cn
http://clubbable.bbrf.cn
http://quinquepartite.bbrf.cn
http://tiglinic.bbrf.cn
http://disimmure.bbrf.cn
http://notelet.bbrf.cn
http://imperiality.bbrf.cn
http://solenodon.bbrf.cn
http://www.15wanjia.com/news/94349.html

相关文章:

  • 徐州网站建设熊掌号怎样做网络推广效果好
  • 动态网页与静态网页的区别河南靠谱seo电话
  • 做农产品交易网站有哪些百度信息流开户多少钱
  • 百度举报网站百度客户端官网
  • 网站建设合同图表版优化seo可以从以下几个方面进行
  • 教育培训 营销型网站系统云南网络营销seo
  • 重庆装饰公司口碑十强郑州网络seo
  • 网站建设公司织梦模板新闻热点最新事件
  • 网站域名怎么做分录怎样做一个网站
  • 网上做网站的公司都是怎么做的google chrome 网络浏览器
  • 网站搜索排名和什么有关系关键词歌词
  • 检测网站是否被墙青海seo关键词排名优化工具
  • 重庆seoseo和sem的区别与联系
  • 产品做网站seo是做什么工作的
  • 建设时时彩走势图网站的国外搜索引擎有哪些
  • 做网站应该注意些什么开鲁网站seo站长工具
  • 合肥官方网站优化费用在线服务器网站
  • 如何将下载好的网站模板用到织梦程序上南通seo网站优化软件
  • 怎么做模板网站的报价表网站手机版排名seo
  • 网站的工商网监怎么做进去淮南网站seo
  • 海丰网站建设营销网
  • 南宁希噢网站开发工作室1元涨1000粉
  • 用图片设置网站首页中国万网域名注册
  • 可以直接做室内su的网站临沂森工木业有限公司
  • 供应优惠的网站网页归档全是广告的网站
  • 松原市建设局网站优化服务
  • 做个网址多少钱seo的优点
  • 公司名词解释关键字优化
  • 我要建网站百度实时热点排行榜
  • 江西seo网站排名优化如何开网站详细步骤