Skip to content

Instantly share code, notes, and snippets.

@Multikas
Multikas / add-flow-to-vm.sh
Last active November 22, 2022 19:21
Script for limiting SmartOS zones bandwidth.
#!/usr/bin/bash
#
# Script should be run in GZ.
#
# example:
# ./add-flow-to-vm.sh c480b89f-f8a1-41b1-abd0-45bac4685cb2 15M
#
# It will add TCP/UDP flows for this particular VM, and limits bandwidth to 15Mbps
#