#!/bin/sh # Insert QUEUE-rules into IP tables. case "$1" in start) modprobe ip_queue iptables -I OUTPUT -p udp --destination-port 5060 -j QUEUE iptables -I INPUT -p udp --destination-port 5060 -j QUEUE ;; stop) iptables -D OUTPUT 1 iptables -D INPUT 1 ;; *) echo 'start or stop?' ;; esac