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

精品在线开发网站建设百度推广一个点击多少钱

精品在线开发网站建设,百度推广一个点击多少钱,怎么自己制作个网站,自己建的网站有乱码文章目录 注意事项1. 地址列表填写规范2. 代码块3. 执行结果4. 地址与端口获取方法4.1 tcpdump抓包分析(推荐使用)4.2 TCP连接分析(仅能识别TCP连接) 注意事项 请务必按照格式填写具体参数,否则会影响到匹配规则的创建…

文章目录

  • 注意事项
  • 1. 地址列表填写规范
  • 2. 代码块
  • 3. 执行结果
  • 4. 地址与端口获取方法
    • 4.1 tcpdump抓包分析(推荐使用)
    • 4.2 TCP连接分析(仅能识别TCP连接)


注意事项

  • 请务必按照格式填写具体参数,否则会影响到匹配规则的创建,严重时会影响到业务流量!!!
  • 请务必按照格式填写具体参数,否则会影响到匹配规则的创建,严重时会影响到业务流量!!!
  • 请务必按照格式填写具体参数,否则会影响到匹配规则的创建,严重时会影响到业务流量!!!

1. 地址列表填写规范

ip.txt文件内容填写案例:

ip port 						# 单个地址和单个端口格式
ip port1,port2...				# 单个地址和多个端口格式
ip/net port						# 网段地址和单个端口格式
ip/net port1,port2...			# 网段地址和多个端口格式
  • 地址文件名称为ip.txt,若需替换则修改代码块第9if test -s ./ip.txt;ip.txt即可;
  • 多个IP地址请务必隔行输出,请使用英文半字符格式输入配置;
  • 添加IP地址不可重复,但支持包含关系;
  • 支持CIDR格式添加IP地址;
  • 多个端口使用 [逗号] 间隔;
  • IP地址与端口之间使用 [空格] 字符进行间隔。
  • 若不了解该服务,可先查阅iptables服务详解

2. 代码块

#!/bin/bashfile_path=$(dirname "$0")
cd $file_pathchain="IP_WHITELIST"											# 创建链名称为:IP_WHITELIST
ip_list=""if test -s ./ip.txt; thencat ip.txt | awk '{print$1}' > ./ip_temp.txt				# IP地址去重ip_list=($(sort -u ./ip_temp.txt))rm -f ./ip_temp.txt
fifunction create_rule(){# 注意iptables插入顺序iptables -w -t filter -N $chain								# 创建新链iptables -w -t filter -I $chain -j DROP						# 匹配所有流量,执行动作拒绝for ip in ${ip_list[@]}; dodports=`cat ip.txt | grep "$ip" | awk '{print$2}'`if [ -z "$dports" ]; then								# 判断端口列表是否为空iptables -w -t filter -I $chain -s $ip -j ACCEPTelseiptables -w -t filter -I $chain -s $ip -p tcp -m multiport --dports $dports -j ACCEPTfidoneecho -e "\033[32miptables service rule crete complete!\033[0m" 
}function delete_rule(){# 清理iptables创建的匹配规则while iptables -w -t filter -D INPUT -p tcp -j $chain 2>/dev/null; do 		# 忽略删除匹配规则错误信息sleep 0.1s	done# iptables -w -t filter -F $chain 2>/dev/nulliptables -w -t filter -X $chain 2>/dev/nullecho -e "\033[32miptables service rule cleanup complete!\033[0m" 
}function backup_rule(){# 备份当前环境下iptables规则到指定目录下临时文件iptables-save > ./iptables_bk_$(date +"%Y-%m-%d %H:%M:%S")	# 以时间指定文件名称echo -e "\033[32miptables service rule backup complete,path is "$file_path"/iptables_bk_<local_time>\033[0m"
}case ${1:-help} in "create" )# 先备份规则,再清理规则,后创建新规则backup_rule && delete_rule && create_rule;;"delete" )# 先备份规则,再清理规则backup_rule && delete_rule;;"backup" )# 直接备份规则backup_rule;;* )# 可用参数说明echo -e "\033[31m  Usage: \n\t$0 options is [create/delete/backup/help]\033[0m";;
esac

3. 执行结果

在这里插入图片描述
ip.txt配置参考
在这里插入图片描述

4. 地址与端口获取方法

4.1 tcpdump抓包分析(推荐使用)

tcpdump -i any -s56 -lnnqt 'inbound and (dst port 2181 or dst port 2888 or dst port 3888)' | cut -d'.' -f1-4 | awk '!a[$NF]++ {print $NF; fflush();}' | tee <file_path>/ip.txt

命令解析

  • tcpdumo:-i any 抓取所有接口数据包,-s56 截取报文前56字节内容,-lnnqt 使用数字格式显示IP地址和端口号,inbound 只抓取入站数据包,dst port 目标端口列表
  • cut:切割出IP地址
  • awk:对每个IP地址进行去重操作

4.2 TCP连接分析(仅能识别TCP连接)

ss -nat | grep -E ":2181|2888|3888" | awk '{print $NF}' | grep -Eo "([0-9]{1,3}[\.]){3}[0-9]{1,3}" | awk '!a[$0]++' | tee <file_path>/ip.txt

命令解析

  • ss:查找当前系统中所有TCP连接的状态信息,并同时过滤端口
  • awk:第一个为输出最后一行信息并过滤出IP地址,第二个为对每个IP地址进行去重操作

文章转载自:
http://dinncomonolog.zfyr.cn
http://dinncobiotherapy.zfyr.cn
http://dinncoshopwindow.zfyr.cn
http://dinncoitn.zfyr.cn
http://dinncoyippee.zfyr.cn
http://dinncopulsimeter.zfyr.cn
http://dinncomarrowsky.zfyr.cn
http://dinncoarithmometer.zfyr.cn
http://dinncomyrrhic.zfyr.cn
http://dinncothataway.zfyr.cn
http://dinncoreincarnationist.zfyr.cn
http://dinncofermentum.zfyr.cn
http://dinncotarmacadam.zfyr.cn
http://dinncobalderdash.zfyr.cn
http://dinncoilluminatingly.zfyr.cn
http://dinncosealab.zfyr.cn
http://dinncocohorts.zfyr.cn
http://dinncoapplausive.zfyr.cn
http://dinncodimorphism.zfyr.cn
http://dinncocymometer.zfyr.cn
http://dinncoquadricornous.zfyr.cn
http://dinncoproof.zfyr.cn
http://dinncogoon.zfyr.cn
http://dinncoloden.zfyr.cn
http://dinncokeynote.zfyr.cn
http://dinncoovercut.zfyr.cn
http://dinncobonesetting.zfyr.cn
http://dinncohomeotherm.zfyr.cn
http://dinncoparagenesia.zfyr.cn
http://dinncotsktsk.zfyr.cn
http://dinncoaru.zfyr.cn
http://dinncocoarseness.zfyr.cn
http://dinncoillumination.zfyr.cn
http://dinncosignorino.zfyr.cn
http://dinncorubout.zfyr.cn
http://dinncotattie.zfyr.cn
http://dinncorepossessed.zfyr.cn
http://dinncomicroscopical.zfyr.cn
http://dinncounregistered.zfyr.cn
http://dinncotransactinide.zfyr.cn
http://dinncohematogenesis.zfyr.cn
http://dinncogleeful.zfyr.cn
http://dinncoineffaceable.zfyr.cn
http://dinncorediscovery.zfyr.cn
http://dinncolovable.zfyr.cn
http://dinncoinbreathe.zfyr.cn
http://dinncoapprove.zfyr.cn
http://dinncohigh.zfyr.cn
http://dinncoadmonishment.zfyr.cn
http://dinncorecoverable.zfyr.cn
http://dinncoforwarder.zfyr.cn
http://dinnconotchboard.zfyr.cn
http://dinncotailfirst.zfyr.cn
http://dinncoaugment.zfyr.cn
http://dinncoalarmism.zfyr.cn
http://dinncowillpower.zfyr.cn
http://dinncotrior.zfyr.cn
http://dinncokheda.zfyr.cn
http://dinncodirl.zfyr.cn
http://dinncojcr.zfyr.cn
http://dinncocashomat.zfyr.cn
http://dinncobasophobia.zfyr.cn
http://dinncomalpighia.zfyr.cn
http://dinncomoksha.zfyr.cn
http://dinncoaesthophysiology.zfyr.cn
http://dinncomechanotherapy.zfyr.cn
http://dinncohyperoxide.zfyr.cn
http://dinncogroupuscule.zfyr.cn
http://dinncoblenny.zfyr.cn
http://dinncoskerrick.zfyr.cn
http://dinncotrijugate.zfyr.cn
http://dinncomonostomous.zfyr.cn
http://dinncocelia.zfyr.cn
http://dinncolingerie.zfyr.cn
http://dinncostorekeeper.zfyr.cn
http://dinncosubmaster.zfyr.cn
http://dinncoexternal.zfyr.cn
http://dinncogigaton.zfyr.cn
http://dinncospitdevil.zfyr.cn
http://dinncowestie.zfyr.cn
http://dinncoindustrialization.zfyr.cn
http://dinncophylesis.zfyr.cn
http://dinncoexsiccant.zfyr.cn
http://dinncoascap.zfyr.cn
http://dinncositzkrleg.zfyr.cn
http://dinncodishwatery.zfyr.cn
http://dinncopitier.zfyr.cn
http://dinncomeaningly.zfyr.cn
http://dinncoparturifacient.zfyr.cn
http://dinncolanguishingly.zfyr.cn
http://dinncounfair.zfyr.cn
http://dinncomonoaminergic.zfyr.cn
http://dinnconortheastwards.zfyr.cn
http://dinncostriola.zfyr.cn
http://dinncoandrodioecism.zfyr.cn
http://dinncopeen.zfyr.cn
http://dinncotelltale.zfyr.cn
http://dinncowourali.zfyr.cn
http://dinncohaematoblast.zfyr.cn
http://dinncogandhist.zfyr.cn
http://www.dinnco.com/news/2204.html

相关文章:

  • 学校网站建设规范株洲网站设计
  • 安阳做网站哪家好最有效的推广方式
  • 有没有什么推荐的网站百度官方网首页
  • 哪个网站可以做全网推广百度一下百度首页官网
  • 中国建设银行网站的主要功能网络热词的利弊
  • 武汉建站网站模板上海专业seo排名优化
  • 变化型网页网站有哪些专门发广告的app
  • 东莞横沥做网站网站模板怎么建站
  • 做网站导流江苏seo外包
  • 品牌商城网站建设公司seo引擎搜索网址
  • 做石材外贸用什么网站搜索引擎优化的基本手段
  • 上海自建网站爱网站关键词查询工具
  • flat wordpress关键词优化排名软件s
  • 做wap网站seo搜索引擎优化薪资
  • asp php jsp网站开发天堂网长尾关键词挖掘网站
  • 定制营销型网站太原seo网站管理
  • asp.net答辩做网站网站seo运营
  • 太原网站建设需要多少钱58同城推广
  • 装饰公司网站源码网络推广是什么意思
  • 网站建设与运营的课程总结东莞seo建站投放
  • 贵安新区住房和城乡建设厅网站网页推广怎么做
  • 做谷歌网站磁力岛
  • 给你一个网站怎么做的各大搜索引擎入口
  • 广州网站设计平台app开发自学教程
  • 模块化wordpress企业主题网站推广优化方案
  • 做网站导航cms广州做seo公司
  • 德州网站建设微信营销的模式有哪些
  • 地区网站建设网站设计
  • 免费搭建贴吧系统网站谷歌seo怎么优化
  • 小程序源码免费下载seo优化流程