DEBIAN PRO

DEBIAN PRO
DEBIAN

jueves, 14 de abril de 2016

Linux y QOS


Un proyecto para ver y controlar QOS, es decir, gestionar el ancho de banda, identificar el uso de red y regular el tráfico en cada uno de ellos.
Información de un servidor Linux y sus recursos, gráfico y bonito.
https://github.com/firehol/netdata/wiki/You-should-install-QoS-on-all-your-servers


Mas información aqui
https://firehol.org/tutorial/fireqos-new-user/

Mi configuración

cat /etc/fireqos/fireqos.conf
# FireQOS configuration file
#
# See fireqos.conf(5) manual page and FireQOS Manual for details.
#
# This configuration file is for illustration purpose only and
# will shape no traffic.
#

DEVICE=eth0
INPUT_SPEED=100000kbit
OUTPUT_SPEED=100000kbit

interface $DEVICE world-in input rate $INPUT_SPEED
class voip commit 100kbit
match udp port 5060 # SIP
match udp dports 10000:10100 # RTP
match sports 3478,5349 # STUN
class interactive commit 30%
match udp port 53 # DNS
match tcp port 22 # SSH
match icmp # ping
match tcp sports 5222,5228 # gtalk
match tcp sports 5223 # Apple push notifications
class facetime
class vpns commit 20%
class surfing commit 20%
match tcp sports 0:1023 # include TCP traffic from port 0-1023
class synacks # the new synacks class
match tcp syn # TCP packets with SYN set
match tcp ack # small TCP packets with ACK set

class default # added the default class

class torrents commit 2%
match dports 6881:6999 # official torrent ports
match dport 51414 prio 1 # my torrent client
match sports 16384:65535 dports 16384:65535 # my trick to match torrents

interface $DEVICE world-out output rate $OUTPUT_SPEED
class voip commit 200kbit
match udp port 5060 # SIP
match udp dports 10000:10100 # RTP
match sports 3478,5349 # STUN
class interactive commit 20%
match udp port 53 # DNS
match tcp port 22 # SSH
match icmp # ping
match tcp sports 5222,5228 # gtalk
match tcp sports 5223 # Apple push notifications
class facetime
class vpns commit 10%
class surfing commit 50%
match tcp sports 0:1023 # include TCP traffic from port 0-1023

class synacks # the new synacks class
match tcp syn # TCP packets with SYN set
match tcp ack # small TCP packets with ACK set

class default # added the default class

class torrents
match sports 6881:6999 # official torrent ports
match sport 51414 prio 1 # my torrent client
match sports 16384:65535 dports 16384:65535 # my trick to match torrents

No hay comentarios:

Publicar un comentario