Last active
January 14, 2016 13:14
-
-
Save datsenko/ccfb52fc5ce8ec5c11f0 to your computer and use it in GitHub Desktop.
new_shaper_from_edgeOS
This file contains 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
# | |
set traffic-policy shaper myShaper bandwidth 20mbit | |
# | |
set traffic-policy shaper myShaper default bandwidth 15% | |
set traffic-policy shaper myShaper default ceiling 35% | |
set traffic-policy shaper myShaper priority 7 | |
# http, https: | |
set traffic-policy shaper myShaper class 2 match PORT80 ip source port 80 | |
set traffic-policy shaper myShaper class 2 bandwidth 20% | |
set traffic-policy shaper myShaper class 2 ceiling 70% | |
set traffic-policy shaper myShaper class 2 priority 3 | |
# https: | |
set traffic-policy shaper myShaper class 3 match PORT443 ip source port 443 | |
set traffic-policy shaper myShaper class 3 bandwidth 20% | |
set traffic-policy shaper myShaper class 3 ceiling 70% | |
set traffic-policy shaper myShaper class 3 priority 3 | |
# ftp: | |
set traffic-policy shaper myShaper class 4 match PORT20 ip source port 20 | |
set traffic-policy shaper myShaper class 4 match PORT21 ip source port 21 | |
set traffic-policy shaper myShaper class 4 bandwidth 10% | |
set traffic-policy shaper myShaper class 4 ceiling 20% | |
set traffic-policy shaper myShaper class 4 priority 7 | |
# dns: | |
set traffic-policy shaper myShaper class 5 match PORT53 ip source port 53 | |
set traffic-policy shaper myShaper class 5 bandwidth 5% | |
set traffic-policy shaper myShaper class 5 ceiling 10% | |
set traffic-policy shaper myShaper class 5 priority 0 | |
# other low priority traffic: | |
set traffic-policy shaper myShaper class 6 match PORT563 ip source port 563 | |
set traffic-policy shaper myShaper class 6 match PORT8080 ip source port 8080 | |
set traffic-policy shaper myShaper class 6 match PORT119 ip source port 119 | |
set traffic-policy shaper myShaper class 6 match PORT23 ip source port 23 | |
set traffic-policy shaper myShaper class 6 match PORT1818 ip source port 1818 | |
set traffic-policy shaper myShaper class 6 match PORT25 ip source port 25 | |
set traffic-policy shaper myShaper class 6 bandwidth 5% | |
set traffic-policy shaper myShaper class 6 ceiling 80% | |
set traffic-policy shaper myShaper class 6 priority 7 | |
# bittorrent: | |
set traffic-policy shaper myShaper class 8 bandwidth 10% | |
set traffic-policy shaper myShaper class 8 ceiling 20% | |
set traffic-policy shaper myShaper class 8 priority 7 | |
set traffic-policy shaper myShaper class 8 queue-type fair-queue | |
set traffic-policy shaper myShaper class 8 match bittorrent ip source port 6881 | |
set traffic-policy shaper myShaper class 8 match bittorrent ip source port 6882 | |
set traffic-policy shaper myShaper class 8 match bittorrent ip source port 6883 | |
set traffic-policy shaper myShaper class 8 match bittorrent ip source port 6884 | |
set traffic-policy shaper myShaper class 8 match bittorrent ip source port 6885 | |
set traffic-policy shaper myShaper class 8 match bittorrent ip source port 6886 | |
set traffic-policy shaper myShaper class 8 match bittorrent ip source port 6887 | |
set traffic-policy shaper myShaper class 8 match bittorrent ip source port 6888 | |
set traffic-policy shaper myShaper class 8 match bittorrent ip source port 6889 | |
set traffic-policy shaper myShaper class 8 match bittorrent ip source port 51413 | |
# | |
set interfaces ethernet eth2 traffic-policy out myShaper | |
commit | |
save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment