hi all ..
i work with a script to make a load balance that redirect a youtube traffic to specific PPPOE and Download Traffic to another PPPOE and Browsing Traffic to another PPPOE
and evry traffic i specific more then One user
it means
- 2 user for youtube
- 2 user for Download
- 2 user for Browsing
But it dont work correct
Please who can help me to solve this issue
/ip firewall layer7-protocol
add name=Stream regexp=videoplayback|video
add name=download regexp=“^.get.+\.(exe|rar|iso|zip|7zip|flv|mkv|avi|mp4|3gp|rmvb|mp3|img|dat|mov).$”
/ip firewall address-list
add address=109.224.40.251 list=YouTube
add address=109.224.40.212 list=YouTube
add address=109.224.40.226 list=YouTube
add address=109.224.40.247 list=YouTube
add address=109.224.40.227 list=YouTube
add address=109.224.40.237 list=YouTube
add address=109.224.40.231 list=YouTube
add address=109.224.40.216 list=YouTube
add address=109.224.40.246 list=YouTube
add address=109.224.40.232 list=YouTube
add address=109.224.40.242 list=YouTube
add address=109.224.40.241 list=YouTube
add address=109.224.40.236 list=YouTube
add address=109.224.40.222 list=YouTube
add address=109.224.40.221 list=YouTube
add address=109.224.40.217 list=YouTube
/ip firewall mangle
add action=mark-routing chain=prerouting dst-address-type=!local dst-port=80 log-prefix=“” new-routing-mark=HTTP passthrough=no per-connection-classifier=
both-addresses-and-ports:2/1 protocol=tcp
add action=mark-routing chain=prerouting dst-address-type=!local dst-port=80 log-prefix=“” new-routing-mark=HTTP passthrough=no per-connection-classifier=
both-addresses-and-ports:2/2 protocol=tcp
add action=mark-routing chain=prerouting dst-address-type=!local dst-port=80 log-prefix=“” new-routing-mark=HTTP passthrough=no per-connection-classifier=
both-addresses-and-ports:2/1 protocol=tcp
add action=mark-routing chain=prerouting dst-address-type=!local dst-port=80 log-prefix=“” new-routing-mark=HTTP passthrough=no per-connection-classifier=
both-addresses-and-ports:2/2 protocol=tcp
add action=mark-routing chain=prerouting content=youtube.com dst-address-list=YouTube dst-address-type=!local layer7-protocol=Stream log-prefix=“” new-routing-mark=Video
passthrough=no per-connection-classifier=both-addresses-and-ports:2/2
add action=mark-routing chain=prerouting content=youtube.com dst-address-list=YouTube dst-address-type=!local layer7-protocol=Stream log-prefix=“” new-routing-mark=Video
passthrough=no per-connection-classifier=both-addresses-and-ports:2/1
add action=mark-routing chain=prerouting dst-address-type=!local layer7-protocol=download log-prefix=“” new-routing-mark=Download passthrough=no per-connection-classifier=
both-addresses-and-ports:2/1
add action=mark-routing chain=prerouting dst-address-type=!local layer7-protocol=download log-prefix=“” new-routing-mark=Download passthrough=no per-connection-classifier=
both-addresses-and-ports:2/2
/ip firewall nat
add action=masquerade chain=srcnat log-prefix=“” src-address=192.168.1.0/24
/ip route
add check-gateway=ping distance=1 gateway=WAN5,WAN4 routing-mark=HTTP
add check-gateway=ping distance=1 gateway=WAN2,WAN3 routing-mark=Video
add check-gateway=ping distance=1 gateway=WAN1,WAN6 routing-mark=Download
add check-gateway=ping distance=1 gateway=WAN1,WAN5,WAN2,WAN4,WAN3,WAN6