https://mynetworktraining.com - In this video I will show you how you can limit Netflix traffic using MikroTik RouterOS QOS Queue Tree.
Here is the export of the configuration:
/ip pool
add name=dhcp_pool0 ranges=172.20.20.2-172.20.20.254
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=ether2 name=dhcp1
/queue tree
add max-limit=2M name=Netflix-Total-Bandwidth parent=global
add max-limit=512k name=Upload packet-mark=Up-Netflix-Packets parent=Netflix-Total-Bandwidth
add max-limit=1536k name=Download packet-mark=Down-Netflix-Packets parent=Netflix-Total-Bandwidth
/ip address
add address=172.20.20.1/24 interface=ether2 network=172.20.20.0
/ip dhcp-client
add disabled=no interface=ether1
/ip dhcp-server network
add address=172.20.20.0/24 gateway=172.20.20.1
/ip firewall mangle
add action=add-dst-to-address-list address-list=Netflix address-list-timeout=4w2d chain=prerouting content=nflxvideo.net
add action=mark-connection chain=prerouting comment="Netflix Upload" dst-address-list=Netflix new-connection-mark=Up-Netflix-Conn passthrough=yes \
src-address=172.20.20.0/24
add action=mark-packet chain=prerouting connection-mark=Up-Netflix-Conn new-packet-mark=Up-Netflix-Packets passthrough=no
add action=mark-connection chain=postrouting comment=Download dst-address=172.20.20.0/24 new-connection-mark=Down-Netflix-Conn passthrough=yes \
src-address-list=Netflix
add action=mark-packet chain=postrouting connection-mark=Down-Netflix-Conn new-packet-mark=Down-Netflix-Packets passthrough=no
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
#Netflix #MikroTik #RouterOS
Here is the export of the configuration:
/ip pool
add name=dhcp_pool0 ranges=172.20.20.2-172.20.20.254
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=ether2 name=dhcp1
/queue tree
add max-limit=2M name=Netflix-Total-Bandwidth parent=global
add max-limit=512k name=Upload packet-mark=Up-Netflix-Packets parent=Netflix-Total-Bandwidth
add max-limit=1536k name=Download packet-mark=Down-Netflix-Packets parent=Netflix-Total-Bandwidth
/ip address
add address=172.20.20.1/24 interface=ether2 network=172.20.20.0
/ip dhcp-client
add disabled=no interface=ether1
/ip dhcp-server network
add address=172.20.20.0/24 gateway=172.20.20.1
/ip firewall mangle
add action=add-dst-to-address-list address-list=Netflix address-list-timeout=4w2d chain=prerouting content=nflxvideo.net
add action=mark-connection chain=prerouting comment="Netflix Upload" dst-address-list=Netflix new-connection-mark=Up-Netflix-Conn passthrough=yes \
src-address=172.20.20.0/24
add action=mark-packet chain=prerouting connection-mark=Up-Netflix-Conn new-packet-mark=Up-Netflix-Packets passthrough=no
add action=mark-connection chain=postrouting comment=Download dst-address=172.20.20.0/24 new-connection-mark=Down-Netflix-Conn passthrough=yes \
src-address-list=Netflix
add action=mark-packet chain=postrouting connection-mark=Down-Netflix-Conn new-packet-mark=Down-Netflix-Packets passthrough=no
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
#Netflix #MikroTik #RouterOS
- Category
- Mikrotik
Be the first to comment