Diferencia entre revisiones de «Tc»
Ir a la navegación
Ir a la búsqueda
Sin resumen de edición |
Sin resumen de edición |
||
(No se muestran 12 ediciones intermedias del mismo usuario) | |||
Línea 1: | Línea 1: | ||
Listando las colas: | |||
<pre class="code"> | |||
# 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 | |||
</pre> | |||
Monitoritzar les cues: | |||
<pre class="code"> | |||
# 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 | |||
</pre> | |||
Manuals: | |||
* http://acacha.org/mediawiki/Traffic_Shaping#tc | |||
HTB: | HTB: | ||
* http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm | * http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm | ||
Línea 12: | Línea 37: | ||
Frameworks: | Frameworks: | ||
* https://github.com/firehol/firehol | * 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: | |||
* https://www.systutorials.com/docs/linux/man/8-tc-police/ | |||
* https://gist.github.com/bradoaks/940616 | |||
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: | |||
* http://www.linuxjournal.com/content/advanced-firewall-configurations-ipset?page=0,2 |
Revisión actual - 22:58 18 nov 2017
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: