witam
wygenerowalem sobie skrypcik ktory mi ogranicza jedego goscia w sieci
#--------------------------------------------
#WRT54 Script Generator v1.00
#Copyright (C) 2006 Robert "Robson" Mytkowski
#--------------------------------------------
TCA="tc class add dev br0"
TFA="tc filter add dev br0"
TQA="tc qdisc add dev br0"
SFQ="sfq perturb 10"
tc qdisc del dev br0 root
tc qdisc add dev br0 root handle 1: htb
tc class add dev br0 parent 1: classid 1:1 htb rate 1024kbit
$TCA parent 1:1 classid 1:10 htb rate 128kbit ceil 128kbit prio 2
$TQA parent 1:10 handle 10: $SFQ
$TFA parent 1:0 protocol ip prio 2 u32 match u16 0x0800 0xFFFF at -2 match u32 0xA41DC78D 0xFFFFFFFF at -12 match u16 0x0014 0xFFFF at -14 flowid 1:10
tc qdisc add dev br0 ingress
$TFA parent ffff: protocol ip handle 50 fw police rate 32kbit mtu 12k burst 10k drop
iptables -t mangle -A PREROUTING -m mac --mac-source 00:14:A4:1D:C7:8D -j MARK --set-mark 50
po resecie routera tylko ten gosc mial neta a reszta ktora dynamicznie powinna dzielic lacze zostala zablokowana
Router: WRT54GL v1.1 + Pomidorek
NAS: TS-101 - 300GB
DVD: KiSS DP-600
VoIP: MyFon + PAP2T
|