filmov
tv
MikroTik Tutorial 79 - Prioritizing Gaming (Valve Steam dota 2) V1

Показать описание
Learn MikroTik RouterOs Tutorial Series (english)
-------------- Script ----------------
/ip firewall layer7-protocol
add name=Steam regexp="^..+\\.(steam|valve|steampowered|steamcommunity|steamga\
mes|steamusercontent|steamcontent|steamstatic).*\$"
/queue simple
add max-limit=1M/10M name=Global priority=1/1 target=192.168.88.0/24
add limit-at=1M/10M max-limit=1M/10M name=Steam packet-marks=steam-pk parent=\
Global priority=1/1 queue=default/default target=192.168.88.0/24
add limit-at=512k/2M max-limit=512k/2M name=Browsing packet-marks=\
http-pk parent=Global priority=5/5 queue=default/default target=\
192.168.88.0/24
add limit-at=512k/1M max-limit=512k/1M name=Other packet-marks=\
other-pk parent=Global queue=default/default target=192.168.88.0/24
/ip firewall mangle
add action=mark-connection chain=forward comment="Steam UDP Ports" \
new-connection-mark=steam-conn passthrough=yes port=\
27000-28999,3478,4379,4380 protocol=udp
add action=mark-connection chain=forward comment="Steam TCP Ports" dst-port=\
27015,27036,27037 new-connection-mark=steam-conn passthrough=yes \
protocol=tcp
add action=mark-connection chain=forward comment="Steam L7" layer7-protocol=\
Steam new-connection-mark=steam-conn passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment="Steam https" dst-port=443 \
new-connection-mark=steam-conn passthrough=yes protocol=tcp tls-host=\
*steam*
add action=mark-packet chain=forward comment=all-steam-pk connection-mark=\
steam-conn new-packet-mark=steam-pk passthrough=no
add action=mark-connection chain=forward comment="http-conn 80" dst-port=80 \
new-connection-mark=http-conn passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment="http-conn 443" dst-port=443 \
new-connection-mark=http-conn passthrough=yes protocol=tcp
add action=mark-packet chain=forward comment=http-pk connection-mark=\
http-conn new-packet-mark=http-pk passthrough=no
add action=mark-connection chain=forward comment=other-conn \
new-connection-mark=other-conn passthrough=yes
add action=mark-packet chain=forward comment=other-pk connection-mark=\
other-conn new-packet-mark=other-pk passthrough=no
-------------- Script ----------------
/ip firewall layer7-protocol
add name=Steam regexp="^..+\\.(steam|valve|steampowered|steamcommunity|steamga\
mes|steamusercontent|steamcontent|steamstatic).*\$"
/queue simple
add max-limit=1M/10M name=Global priority=1/1 target=192.168.88.0/24
add limit-at=1M/10M max-limit=1M/10M name=Steam packet-marks=steam-pk parent=\
Global priority=1/1 queue=default/default target=192.168.88.0/24
add limit-at=512k/2M max-limit=512k/2M name=Browsing packet-marks=\
http-pk parent=Global priority=5/5 queue=default/default target=\
192.168.88.0/24
add limit-at=512k/1M max-limit=512k/1M name=Other packet-marks=\
other-pk parent=Global queue=default/default target=192.168.88.0/24
/ip firewall mangle
add action=mark-connection chain=forward comment="Steam UDP Ports" \
new-connection-mark=steam-conn passthrough=yes port=\
27000-28999,3478,4379,4380 protocol=udp
add action=mark-connection chain=forward comment="Steam TCP Ports" dst-port=\
27015,27036,27037 new-connection-mark=steam-conn passthrough=yes \
protocol=tcp
add action=mark-connection chain=forward comment="Steam L7" layer7-protocol=\
Steam new-connection-mark=steam-conn passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment="Steam https" dst-port=443 \
new-connection-mark=steam-conn passthrough=yes protocol=tcp tls-host=\
*steam*
add action=mark-packet chain=forward comment=all-steam-pk connection-mark=\
steam-conn new-packet-mark=steam-pk passthrough=no
add action=mark-connection chain=forward comment="http-conn 80" dst-port=80 \
new-connection-mark=http-conn passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment="http-conn 443" dst-port=443 \
new-connection-mark=http-conn passthrough=yes protocol=tcp
add action=mark-packet chain=forward comment=http-pk connection-mark=\
http-conn new-packet-mark=http-pk passthrough=no
add action=mark-connection chain=forward comment=other-conn \
new-connection-mark=other-conn passthrough=yes
add action=mark-packet chain=forward comment=other-pk connection-mark=\
other-conn new-packet-mark=other-pk passthrough=no
Комментарии