Esta vez, necesito limitar el Rx/tx del servicio FTP que tengo en casa…. limitaré a 2 Mb’s simetricos, con puntas de 3 Mbp’s…
Primero, identificamos el tráfico….. primero identificamos la conexión y luego, después de identificar, marcamos los paquetes:
add action=mark-connection chain=postrouting comment=FTP_POSTROUTING disabled=no dst-port=21 new-connection-mark=FTP passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=FTP_PRE_ROUTING disabled=no dst-port=21 new-connection-mark=FTP passthrough=yes protocol=tcp
add action=mark-packet chain=postrouting comment=FTP_GENERAL connection-mark=FTP disabled=no new-packet-mark=FTP_GENERAL passthrough=no
add action=mark-packet chain=prerouting comment=FTP_GENERAL connection-mark=FTP disabled=no new-packet-mark=FTP_GENERAL passthrough=no
Y ahora, a la queue tree:
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=2M max-limit=3M name=FTP_UPLOAD packet-mark=FTP_GENERAL parent=global-in priority=7 queue=default-small
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=2M max-limit=3M name=FTP_DOWNLOAD packet-mark=FTP_GENERAL parent=global-out priority=7 queue= default-small
Aquí hemos de mirar si nuestro FTP usa otro rango de puertos….
Enjoy your QoS