Netdata 1.1.0 FireQOS安裝與配置

百聯達發表於2016-05-04
一:Netdata 為什麼要安裝FireQOS

請參見

二:FireQOS 安裝

  1.firehol版本 firehol-3.0.1.tar.gz    下載路徑 

   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   路徑 
  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部落格 ” ,連結:http://blog.itpub.net/28624388/viewspace-2093644/,如需轉載,請註明出處,否則將追究法律責任。

相關文章