smeserver-qos/root/etc/e-smith/templates/etc/rc.d/init.d/qos/30Functions32Exclude

14 lines
264 B
Plaintext

# Hosts to exclude from the BW limit
{
my $excludes = ${qos}{'excludes'} || '';
foreach(split(/[;,]/,$excludes)){
$OUT .= "\$IPT -t mangle -A POSTROUTING -d $_ -j MARK --set-mark 0x6\n";
$OUT .= "\$IPT -t mangle -A POSTROUTING -d $_ -j RETURN\n";
}
}