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

丝网外贸做哪些网站如何加快百度收录网站

丝网外贸做哪些网站,如何加快百度收录网站,网络营销适合创业吗,遵义在线1、使用hashlimit来限速 #从eth0网卡进入INPUT链数据,使用模块hashlimit 限制网速为100kb/s或2mb/s,超过限制的数据包会被DROP。OUTPUT链同理,mode为srcip,有4个mode选项: srcip(默认匹配每个源地址IP,配置指定源地址…

1、使用hashlimit来限速

#从eth0网卡进入INPUT链数据,使用模块hashlimit 限制网速为100kb/s或2mb/s,超过限制的数据包会被DROP。OUTPUT链同理,mode为srcip,有4个mode选项:

  1. srcip(默认匹配每个源地址IP,配置指定源地址IP,使用-s参数)
  2. dstip(默认匹配每个目的地址IP,配置指定目的地址IP,使用-d参数)
  3. srcport(默认匹配每个源端口,配置指定源端口,使用-sport参数)
  4. dstport(默认匹配目的端口,配置指定目的端口,使用-dport参数)

2、限制从eth0网卡到IP地址网速

2.1 限制从eth0网卡到所有IP地址INPUT/OPUTPU数据网速为100kb/s:

[root@localhost ~]# iptables -A INPUT -i eth0 -m hashlimit --hashlimit-above 100kb/s --hashlimit-mode srcip --hashlimit-name in -j DROP

[root@localhost ~]# iptables -A OUTPUT -o eth0 -m hashlimit --hashlimit-above 100kb/s --hashlimit-mode dstip --hashlimit-name out -j DROP

[root@localhost ~]# iptables -L -n --line-numbers #查看添加的iptables规则

[root@localhost ~]# iptables -D INPUT 1 #根据查到iptables规则编号进行删除

2.2 限制从eth0网卡固定IP地址INPUT/OUTPUT数据网速为100kb/s:

[root@localhost ~]# iptables -A INPUT -i eth0  -m hashlimit --hashlimit-above 100kb/s --hashlimit-mode srcip -s 192.168.3.36 --hashlimit-name in -j DROP

[root@localhost ~]# iptables -A OUTPUT -o eth0 -m hashlimit --hashlimit-above 100kb/s --hashlimit-mode dstip -d 192.168.3.36 --hashlimit-name out -j DROP

[root@localhost ~]# iptables -L -n --line-numbers #查看添加的iptables规则

[root@localhost ~]# iptables -D INPUT 1 #根据查到iptables规则编号进行删除

[root@localhost ~]# iptables -D OUTPUT 1

3、限制从eth0网卡到端口网速

3.1 限制从eth0网卡所有端口INPUT/OPUTPU数据网速为100kb/s:

[root@localhost ~]# iptables -A INPUT -i eth0 -m hashlimit --hashlimit-above 100kb/s --hashlimit-mode srcport --hashlimit-name in -j DROP

[root@localhost ~]# iptables -A OUTPUT -o eth0 -m hashlimit --hashlimit-above 100kb/s --hashlimit-mode dstport --hashlimit-name out -j DROP

[root@localhost ~]# iptables -D INPUT 1 #根据查到iptables规则编号进行删除

[root@localhost ~]# iptables -D OUTPUT 1

3.2 限制从eth0网卡固定端口IPINPUT/OUTPUT数据网速为100kb/s:

[root@localhost ~]# iptables -A INPUT -i eth0 -m hashlimit --hashlimit-above 100kb/s --hashlimit-mode srcport -p tcp --sport 9985 --hashlimit-name in -j DROP

[root@localhost ~]# iptables -A OUTPUT -o eth0 -m hashlimit --hashlimit-above 100kb/s --hashlimit-mode dstport -p tcp --dport 9985 --hashlimit-name out -j DROP

[root@localhost ~]# iptables -D INPUT 1 #根据查到iptables规则编号进行删除

[root@localhost ~]# iptables -D OUTPUT 1

3.3 限制从eth0网卡固定端口IPINPUT/OUTPUT数据网速为100kb/s:

[root@localhost ~]# iptables -A INPUT -i eth0 -m hashlimit --hashlimit-above 100kb/s --hashlimit-mode srcport -s 192.168.3.36 -p tcp --sport 9985 --hashlimit-name in -j DROP

[root@localhost ~]# iptables -A OUTPUT -o eth0 -m hashlimit --hashlimit-above 100kb/s --hashlimit-mode dstport -d 192.168.3.36 -p tcp --dport 9985 --hashlimit-name out -j DROP

[root@localhost ~]# iptables -D INPUT 1 #根据查到iptables规则编号进行删除

[root@localhost ~]# iptables -D OUTPUT 1

注:默认是来所有IP对应的端口,如果指定固定IP,请参考使用-s和-d参数。

原文链接:https://blog.csdn.net/mayifan0/article/details/116149344

http://www.yayakq.cn/news/453496/

相关文章:

  • 最新网站建设进度表网页设计师考证
  • 营销型网站建设开发价格免费咨询律师在线
  • 竞价单页网站策划设计制作汉中最新通知今天
  • 长春网站建设哪家专业福建城乡建设网站查询
  • 防城港市建设工程质量监督站网站iis网站属性怎么打开
  • 房产公司网站建设广州白云做网站的公司
  • 做物流有哪些网站前几年做那个网站致富
  • 做网销好的网站瑞安网站开发
  • 教育学校网站做做网站用go语言还是php
  • 晋江网站建设价格多少wordpress分类加密
  • 如何布置网站做网站系统的过程
  • 蜂鸟 网站建设安阳区号电话号码
  • 南昌做网站优化的公司查看网站服务器版本
  • 响应式网站的建设青岛网站设计哪家公司
  • 网站建设对信息公开的作用昆明关键词优化
  • mvc6电商网站开发实战温州网站建设维护
  • 传奇世界新开服网站企业级网站开发需求分析
  • 天猫淘宝优惠券网站怎么做艺腾青岛网站建设
  • wordpress站点推荐邢台太行中学地址
  • 不属于c2c网站的是安卓开发工具箱
  • 专业网站开发哪家好凡科建站免费
  • 点击颜色更换网站主题英文外贸发布网站
  • 怎么把网站开发成crx新建的网站 找不到了
  • 江华县网站开发建设项目查询网站
  • 苏州建设招投标网站一个网站开发流程图
  • 建立公司网站要多少钱高端网站制作平台
  • 山东做网站的公司有哪些知名网站建设设计
  • 网站主题和建设营销网站都有哪些
  • 更换网站空间东莞室内设计公司
  • 广西建设局网站首页网站建设声明函