qos {
always_set_tos = no;
rules {
tcclass = "sip";
rules = "udp.dport 5060";
} {
tcclass = "dns";
rules = "udp.dport 53";
} {
tcclass = "http_req";
rules = "tcp.dport 80 ip.len <= 800",
"tcp.dport 8080 ip.len <= 800",
"tcp.dport 3128 ip.len <= 800";
} {
tcclass = "tcp_ack";
rules = "ip.proto == tcp ip.len <= 64";
} {
tcclass = "icmp";
rules = "ip.proto == icmp";
}
}
prios {
users {
ip = 0.0.0.0;
profile = "Internettelefonie";
type = prio_very_high;
weight = 0;
} {
ip = 0.0.0.0;
profile = "FRITZ! Media Videostreaming";
type = prio_very_high;
weight = 0;
}
profiles {
name = "HTTP-Server";
rules = "TCP 80 0 0 0";
} {
name = "FTP-Server";
rules = "TCP 20 21 0 0";
} {
name = "eMule";
rules = "TCP 0 0 4662 0", "UDP 0 0 4672 0";
} {
name = "BitTorrent";
rules = "TCP 0 0 6881 6999";
} {
name = "MS Remotedesktop";
rules = "TCP 3389 0 0 0";
} {
name = "SSH";
rules = "TCP 0 0 22 0";
} {
name = "Telnet";
rules = "TCP 0 0 23 0";
}
}
nqos {
version = 1;
defaultresult {
tos = -1;
vlan_prio = -1;
queueref = "default";
}
appls {
enabled = yes;
name = "sip-appl";
protocol = qos_classifier_appl_sip;
result {
tos = -1;
vlan_prio = -1;
queueref = "hrealtime";
}
}
classifiers {
enabled = yes;
name = "igmp";
type = qos_cfg_hidden;
iface = qos_local;
rule = "localmark none ip.proto == igmp";
result {
tos = -1;
vlan_prio = -1;
queueref = "ifacectl";
}
} {
enabled = yes;
name = "tr069";
type = qos_cfg_hidden;
iface = qos_local;
rule = "localmark sipdns,ntpdns,tr069dns,tr069";
result {
tos = -1;
vlan_prio = -1;
queueref = "hprio";
}
} {
enabled = yes;
name = "mstv";
type = qos_cfg_hidden;
iface = qos_lan;
rule = "udp.dport 43962";
result {
tos = -1;
vlan_prio = -1;
queueref = "hprio";
}
} {
enabled = yes;
name = "mstv";
type = qos_cfg_hidden;
iface = qos_lan;
rule = "udp.dport 47806";
result {
tos = -1;
vlan_prio = -1;
queueref = "hprio";
}
} {
enabled = yes;
name = "icmp";
type = qos_cfg_hidden;
iface = qos_lan;
rule = "ip.proto icmp";
result {
tos = -1;
vlan_prio = -1;
queueref = "hprio";
}
} {
enabled = yes;
name = "dns";
type = qos_cfg_hidden;
iface = qos_lan;
rule = "udp.dport 53";
result {
tos = -1;
vlan_prio = -1;
queueref = "hprio";
}
} {
enabled = yes;
name = "Internettelefonie";
type = qos_cfg_internal;
iface = qos_local;
rule = "localmark sip";
result {
tos = -1;
vlan_prio = -1;
queueref = "realtime";
}
} {
enabled = yes;
name = "Internettelefonie";
type = qos_cfg_internal;
iface = qos_local;
rule = "localmark rtp";
result {
tos = -1;
vlan_prio = -1;
queueref = "realtime";
}
} {
enabled = yes;
name = "Internettelefonie";
type = qos_cfg_internal;
iface = qos_lan;
rule = "udp.dport 5060";
result {
tos = -1;
vlan_prio = -1;
queueref = "realtime";
applref = "sip-appl";
}
} {
enabled = yes;
name = "FRITZ! Media Videostreaming";
type = qos_cfg_internal;
iface = qos_lan;
rule = "dhcpoption 12 FRITZ!Media* mediatab";
result {
tos = -1;
vlan_prio = -1;
queueref = "realtime";
}
} {
enabled = yes;
name = "FRITZ! Media Videostreaming";
type = qos_cfg_internal;
iface = qos_lan;
rule = "ethsrctab mediatab";
result {
tos = -1;
vlan_prio = -1;
queueref = "realtime";
}
} {
enabled = no;
name = "Surfen";
type = qos_cfg_system;
iface = qos_lan;
rule = "ip.proto == tcp ip.len <= 64";
result {
tos = -1;
vlan_prio = -1;
queueref = "none";
}
} {
enabled = no;
name = "Surfen";
type = qos_cfg_system;
iface = qos_lan;
rule = "tcp.dest 80 ip.len <= 800";
result {
tos = -1;
vlan_prio = -1;
queueref = "none";
}
} {
enabled = no;
name = "Surfen";
type = qos_cfg_system;
iface = qos_lan;
rule = "tcp.dest 8080 ip.len <= 800";
result {
tos = -1;
vlan_prio = -1;
queueref = "none";
}
} {
enabled = no;
name = "Surfen";
type = qos_cfg_system;
iface = qos_lan;
rule = "tcp.dest 3128 ip.len <= 800";
result {
tos = -1;
vlan_prio = -1;
queueref = "none";
}
}
queues {
enabled = yes;
with_sfq = no;
type = qos_cfg_system;
name = "ifacectl";
iface = qos_wan;
precedence = 0;
weight = 0;
shapingrate = 0;
shapingburst = 0;
} {
enabled = yes;
with_sfq = no;
type = qos_cfg_system;
name = "hprio";
iface = qos_wan;
precedence = 10;
weight = 0;
shapingrate = 0;
shapingburst = 0;
} {
enabled = yes;
with_sfq = no;
type = qos_cfg_system;
name = "hrealtime";
iface = qos_wan;
precedence = 20;
weight = 0;
shapingrate = 0;
shapingburst = 0;
} {
enabled = yes;
with_sfq = yes;
type = qos_cfg_system;
name = "realtime";
iface = qos_wan;
precedence = 30;
weight = 0;
shapingrate = 0;
shapingburst = 0;
} {
enabled = yes;
with_sfq = yes;
type = qos_cfg_system;
name = "important";
iface = qos_wan;
precedence = 100;
weight = 90;
shapingrate = 0;
shapingburst = 0;
} {
enabled = yes;
with_sfq = yes;
type = qos_cfg_system;
name = "default";
iface = qos_wan;
precedence = 100;
weight = 10;
shapingrate = 0;
shapingburst = 0;
} {
enabled = yes;
with_sfq = yes;
type = qos_cfg_system;
name = "low";
iface = qos_wan;
precedence = 200;
weight = 0;
shapingrate = 0;
shapingburst = 0;
}
}