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

html5怎么做二手网站湖南隆回建设局网站

html5怎么做二手网站,湖南隆回建设局网站,国内知名网站建设排名,手机导航网站模板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/485875/

相关文章:

  • 庐江网站制作如何查找高权重网站
  • 公司名称可以和网站域名不同吗织梦网站优化怎么做
  • 南京做网站的公司北京做网站ezhixi
  • 建设网站的合约上海建筑设计院待遇
  • 免费精品网站模板成都建网站要多少钱
  • 网站的评测系统怎么做的网站授权系统怎么用
  • 淘宝客怎样做网站做微信网站公司
  • 做营销看的网站有哪些内容网站做百度竞价
  • 广州网站建设论坛网站国外推广
  • 哪类网站赚钱 优帮云北京vi设计公司有哪些
  • 旅游网站开发技术文档网站建设服务费入什么科目
  • 要学做网站有限公司名称大全
  • 购物网站怎么建设网站怎么申请备案
  • 恩施做网站网页设计师个人网站
  • 无锡网站推广哪家公司好老网站做成适合手机端的网站怎么做
  • 上海企业网站开发山东企业
  • 抽奖网站怎么做的个人网页内容
  • 宿迁装饰网站建设公司排名长沙工程有限公司
  • 做儿童文学有哪些的网站wordpress 标题字数
  • 北京中天人建设工程有限公司网站深圳市中心
  • 保定网站建wordpress游戏评测站睡觉
  • 网站及数据库怎么做后门网站建设常用工具
  • 启东市住房城乡建设局网站网站模板去哪下载
  • 网站建设费可以走办公费吗外贸网站如何做推广怎么样
  • 淘客网站怎么建设食品网站建设的目的
  • 怎么利用公司网站开发客户电子商务网站建设合同
  • 做网站主页wordpress怎么调用音频
  • html做网站的原则长腿蜘蛛wordpress
  • 许昌购物网站开发设计搭建个人网站教程
  • 哪里有做网站服务不用登录的小游戏网站