ITPub博客

首页 > 应用开发 > IT综合 > Netdata 1.1.0 FireQOS安装与配置

Netdata 1.1.0 FireQOS安装与配置

原创 IT综合 作者:百联达 时间:2016-05-04 17:38:44 0 删除 编辑
一:Netdata 为什么要安装FireQOS

请参见https://github.com/firehol/netdata/wiki/You-should-install-QoS-on-all-your-servers

二:FireQOS 安装

  1.firehol版本 firehol-3.0.1.tar.gz    下载路径 https://firehol.org/download/firehol/latest/

   2.安装依赖库  
yum install zlib1g-dev gcc make git autoconf autogen automake pkg-config traceroute ipset curl nodejs zip unzip jq ulogd

3.安装 iprange-1.0.3_master.tar.gz   路径 https://github.com/firehol/iprange
  tar -zxvf iprange-1.0.3_master.tar.gz ./configure
  make && make install

4.安装firehol tar -zxvf firehol-3.0.1.tar.gz  ./configure --prefix=/usr/local/  --sysconfdir=/etc  --localstatedir=/var --libexecdir=/usr/lib
  make 
  make install

安装成功后,可以在/etc/firehol/目录下看到配置文件

三:FireQOS 参数配置
cp fireqos.conf.example  fireqos.conf

点击(此处)折叠或打开

  1. # my internet link is using dsl0 (pppX, renamed)
  2. DEVICE=eth0
  3. # my speed is 12200kbit down, 890 up
  4. # I use only 85% of down and 95% of up
  5. INPUT_SPEED="$((12200 * 85 / 100))kbit"
  6. OUTPUT_SPEED="$((890 * 95 / 100))kbit"
  7. # adsl = ATM overheads calculation
  8. # local = I run pppoe on this linux box
  9. # pppoe-llc = ADSL encapsulation as reported by ADSL modem
  10. LINKTYPE="adsl local pppoe-llc"
  11. # ------------- CUSTOM SERVICES -------------
  12. # unlike FireHOL, only server ports are needed.
  13. # all the services used but not defined here, are defined internally in FireQOS.
  14. # VoIP RTP ports.
  15. # As configured in /etc/asterisk/rtp.conf
  16. server_rtp_ports="udp/10000:10100"
  17. # League of Legends match, for my kids
  18. server_lol_ports="udp/5000:5500 tcp/8393:8400,2099,5223,5222,8088"
  19. # My OpenVPN servers
  20. server_openvpn_ports="any/1195:1198"
  21. # Torrent client configured to listen at a fixed port
  22. server_mytorrent_ports="any/51414"
  23. server_netdata_ports="tcp/19999"
  24. # ------------- INTERFACES -------------
  25. interface $DEVICE world bidirectional $LINKTYPE input rate $INPUT_SPEED output rate $OUTPUT_SPEED
  26. interface eth0 world bidirectional ethernet balanced rate 50Mbit
  27.     
  28.     class voip commit 100kbit pfifo
  29.         # 1st priority: VoIP
  30.         
  31.         server sip
  32.         client sip
  33.         server rtp
  34.         client stun
  35.     
  36.     class interactive input commit 20% output commit 10%
  37.         # 2nd priority: ICMP, DNS, SSH
  38.         
  39.         server icmp
  40.         
  41.         server dns
  42.         client dns
  43.         
  44.         server ssh
  45.         client ssh
  46.         
  47.         client teamviewer
  48.         client lol
  49.     
  50.     class chat input commit 1000kbit output commit 440kbit
  51.         # 3rd priority: chat and conferencing
  52.         
  53.         client facetime
  54.         
  55.         server hangouts
  56.         client hangouts
  57.         
  58.         client gtalk
  59.         client jabber
  60.     
  61.     class vpns input commit 20% output commit 10%
  62.         # 4th priority: my VPNs
  63.         
  64.         server pptp
  65.         server GRE
  66.         server openvpn
  67.     
  68.     class servers
  69.         # 5th priority: the servers I run
  70.         
  71.         server http
  72.     
  73.     class surfing prio keep commit 10%
  74.         # Again 5th priority (prio keep): Internet Surfing
  75.         
  76.         client surfing
  77.         client rsync
  78.        
  79.     class synacks
  80.         # 6th priority: SYNs and small ACKs for the rest of the traffic
  81.         
  82.         match tcp syn
  83.         match tcp ack
  84.         
  85.     class default
  86.         # 7th priority: default
  87.         # unclassified traffic ends up in the 'default' class
  88.         # no need to match anything here
  89.     
  90.     class torrents
  91.         # 8th priority: torrents
  92.         
  93.         client torrents
  94.         server mytorrent prio 1
  95.         match sports 16384:65535 dports 16384:65535
  96.          class arp
  97.           match arp
  98.        class icmp
  99.           match icmp
  100.        class dns commit 1Mbit
  101.           server dns
  102.           client dns
  103.        class ntp
  104.           server ntp
  105.           client ntp
  106.        class ssh commit 2Mbit
  107.           server ssh
  108.           client ssh
  109.        class rsync commit 2Mbit max 10Mbit
  110.           server rsync
  111.           client rsync
  112.        class web_server commit 40Mbit
  113.           server http
  114.           server netdata
  115.        class client
  116.           client surfing
四:启动fireqos fireqos start 五:启动netdata

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28624388/viewspace-2093644/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: fireHOL and fireQOS
请登录后发表评论 登录
全部评论
15年以上互联网经验,先后从事过制造业,证券业,物业行业和物流行业信息系统和互联网产品的设计落地实施,8年系统架构经验。最近关注企业数字化转型、财务数字化服务共享、大语言模型、Kubernetes微服务架构和Istio微服务治理框架。

注册时间:2013-02-05

  • 博文量
    332
  • 访问量
    1265622