2009. szeptember 15., kedd

shaperd

/etc/shaperd/shaperd.conf

log level = info
packet forwarding = ipq
daemon = yes
pidfile = /var/run/shaperd.pid

class informatika_up {
ipv4 classifier proto=all saddr=10.1.1.46
bandwidth = 1 mbyte/s

}

class informatika_down {
ipv4 classifier proto=all daddr=10.1.1.46
bandwidth = 1 mbyte/s
}


iptables -A FORWARD -s 10.1.1.46 -j QUEUE
iptables -A FORWARD -d 10.1.1.46 -j QUEUE

modprobe ip_queue
echo 65535 > /proc/sys/net/ipv4/ip_queue_maxlen