Created
May 13, 2014 21:32
-
-
Save scelfo/e2685544ebca803f2545 to your computer and use it in GitHub Desktop.
EdgeOS Traffic Shaping Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
traffic-policy { | |
shaper download-policy { | |
bandwidth 33mbit | |
class 10 { | |
bandwidth 5% | |
burst 2.5k | |
ceiling 30% | |
match RTP { | |
ip { | |
dscp 46 | |
} | |
} | |
match RTP-IPv6 { | |
ipv6 { | |
dscp 46 | |
} | |
} | |
priority 7 | |
queue-limit 10 | |
queue-type fair-queue | |
} | |
class 20 { | |
bandwidth 5% | |
burst 2.5k | |
match ICMP { | |
ip { | |
protocol icmp | |
} | |
} | |
match SIP { | |
ip { | |
dscp 26 | |
} | |
} | |
match SIP-IPv6 { | |
ipv6 { | |
dscp 26 | |
} | |
} | |
priority 4 | |
queue-limit 10 | |
queue-type fair-queue | |
} | |
class 30 { | |
bandwidth 5% | |
burst 1k | |
ceiling 20% | |
match ssh { | |
ip { | |
destination { | |
port 22 | |
} | |
dscp lowdelay | |
protocol tcp | |
} | |
} | |
match ssh-ipv6 { | |
ipv6 { | |
destination { | |
port 22 | |
} | |
dscp lowdelay | |
protocol tcp | |
} | |
} | |
priority 6 | |
queue-limit 10 | |
queue-type fair-queue | |
} | |
default { | |
bandwidth 50% | |
burst 15k | |
ceiling 100% | |
queue-type fair-queue | |
} | |
} | |
shaper upload-policy { | |
bandwidth 9mbit | |
class 10 { | |
bandwidth 5% | |
burst 2.5k | |
ceiling 30% | |
match RTP { | |
ip { | |
dscp 46 | |
} | |
} | |
match RTP-IPv6 { | |
ipv6 { | |
dscp 46 | |
} | |
} | |
priority 7 | |
queue-limit 10 | |
queue-type fair-queue | |
} | |
class 20 { | |
bandwidth 5% | |
burst 2.5k | |
match ICMP { | |
ip { | |
protocol icmp | |
} | |
} | |
match SIP { | |
ip { | |
dscp 26 | |
} | |
} | |
match SIP-IPv6 { | |
ipv6 { | |
dscp 26 | |
} | |
} | |
priority 4 | |
queue-limit 10 | |
queue-type fair-queue | |
} | |
class 30 { | |
bandwidth 5% | |
burst 1k | |
ceiling 20% | |
match ssh { | |
ip { | |
destination { | |
port 22 | |
} | |
dscp lowdelay | |
protocol tcp | |
} | |
} | |
match ssh-ipv6 { | |
ipv6 { | |
destination { | |
port 22 | |
} | |
dscp lowdelay | |
protocol tcp | |
} | |
} | |
priority 6 | |
queue-limit 10 | |
queue-type fair-queue | |
} | |
default { | |
bandwidth 50% | |
burst 15k | |
ceiling 100% | |
queue-type fair-queue | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why upload bandwidth so low?