Skip to content

Instantly share code, notes, and snippets.

@Lakshanz
Lakshanz / limit-tc.sh
Last active July 26, 2024 02:04
TC limiting : Helps to set maximum upload/download speed limit to your linux server/pc's selected network interface.
#!/bin/bash
# Full path to tc binary
TC=$(which tc)
#
# NETWORK CONFIGURATION
# interface - name of your interface device
# interface_speed - speed in mbit of your $interface
# ip - IP address of your server, change this if you don't want to use