Tc
Ir a la navegación
Ir a la búsqueda
Listando las colas:
# tc qdisc list qdisc noqueue 0: dev lo root refcnt 2 qdisc noqueue 0: dev eth0 root refcnt 2 qdisc noqueue 0: dev eth1 root refcnt 2
Monitoritzar les cues:
# tc -s -d qdisc show qdisc noqueue 0: dev lo root refcnt 2 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 qdisc noqueue 0: dev eth0 root refcnt 2 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 qdisc tbf 8003: dev eth1 root refcnt 2 rate 1760Kbit burst 1023b/1 mpu 0b lat 50.0ms linklayer ethernet Sent 819 bytes 13 pkt (dropped 21, overlimits 0 requeues 0) backlog 0b 0p requeues 0
Manuals:
HTB:
- http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm
- http://lartc.org/howto/lartc.qdisc.classful.html#AEN1071
Exemples complets:
- Arch: https://wiki.archlinux.org/index.php/advanced_traffic_control
- Debian: https://wiki.debian.org/TrafficControl
- FairNat (script): https://github.com/frostschutz/FairNAT
Frameworks:
- https://github.com/firehol/firehol
- http://robert.nowotniak.com/en/security/htb/
- http://shorewall.org/traffic_shaping.htm
Tràfic de baixada:
Cal configurar el imq o, més recentment ifb:
- http://lartc.org/howto/lartc.imq.html
- http://etxea.net/docu/qos/qos.html
- https://www.linuxquestions.org/questions/linux-networking-3/traffic-shaping-with-htb-several-questions-624009/
- https://wiki.linuxfoundation.org/networking/ifb
- https://wiki.gentoo.org/wiki/Traffic_shaping
tc-police:
tc amb iptables:
- https://serverfault.com/questions/249520/how-to-identify-download-traffic-using-iptables
- https://giki.wiki/@nubela/Software-Engineering/Per-Connection-Throttling
Amb IPset: