Skip to content

Instantly share code, notes, and snippets.

View datsenko's full-sized avatar

Игорь Даценко datsenko

  • home
  • Украина
View GitHub Profile
@datsenko
datsenko / shaper
Last active January 16, 2016 13:31
edgeOS_shaper_users
# общая полоса
set traffic-policy shaper myShaper_downstream bandwidth 100mbit
# =====================================================================
# с.Біляки
# =====================================================================
# Даценко И.Ю. 10.10.0.21
set traffic-policy shaper myShaper_downstream class 2 bandwidth 5mbit
set traffic-policy shaper myShaper_downstream class 2 match client2 ip source address 10.10.0.21/24
# =====================================================================
# Роговенко М.И. 10.10.0.22
@datsenko
datsenko / QOS
Created January 16, 2016 12:28
QOS for VOIP calls
4 QOS for VOIP calls
Taken directly from this page
Assumes your LAN is on eth0, Internet is eth1, and 30/6Mbps connection.
# Set-up the details of the DownStream Policy
set traffic-policy shaper DownStream description "DownStream QoS policy"
set traffic-policy shaper DownStream bandwidth 30000kbit
set traffic-policy shaper DownStream class 10 description "RTP"
@datsenko
datsenko / edgeos
Last active January 14, 2016 13:14
new_shaper_from_edgeOS
#
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%
@datsenko
datsenko / qos_shaper_USERS
Created January 13, 2016 10:58
ubiquiti_qos_users
ubnt@ubnt:~$ configure
[edit]
ubnt@ubnt# set traffic-policy shaper shaper1 bandwidth 100mbit
[edit]
ubnt@ubnt# set traffic-policy shaper shaper1 class 2 bandwidth 10mbit
[edit]
ubnt@ubnt# set traffic-policy shaper shaper1 class 2 match client2 ip source address 192.168.0.2/32
[edit]
ubnt@ubnt# set traffic-policy shaper shaper1 class 3 bandwidth 20mbit
[edit]
@datsenko
datsenko / edgerouter_lite-qos
Last active January 14, 2016 00:18 — forked from beardicus/edgerouter-qos
EdgeRouter Lite QOS Settings
# http://поток.укр
# fair-queue based settings for EdgeRouter Lite traffic shaping
#
# download is typically 30 and change. everything can burst to 100%
# of bandwidth, priority rules keep the garbage in check
# =======================================================================
set traffic-policy shaper download
set traffic-policy shaper download bandwidth 12Mbit
# =======================================================================
# DOWNLOAD - eth2
@datsenko
datsenko / WoT QoS
Created January 12, 2016 00:34
WoT QoS
All destination UDP ports: 20013, 20014, 20018, 32801-32825
TCP game ports: 80, 443, 1080, 3128, 8080, 8081, 8088, 8888, 53, 20000-25000, 32801, and 32803
UDP voice chat ports: 12000-29999, 5060, 5062, 3478, 3479
@datsenko
datsenko / test
Created January 11, 2016 22:06
test
set traffic-policy shaper shaper1 bandwidth 100mbit
set traffic-policy shaper shaper1 default bandwidth 60mbit
set traffic-policy shaper shaper1 class 2 bandwidth 20mbit
set traffic-policy shaper shaper1 class 2 match client2 ip source address 10.0.1.2/32
set traffic-policy shaper shaper1 class 3 bandwidth 20mbit
set traffic-policy shaper shaper1 class 3 match client3 ip source address 10.0.1.3/32
set interfaces ethernet eth0 traffic-policy out shaper1
commit