If users in the company use facebook, youtube, Instagram, log out from a different modem.
The internet used for the business to log out from another modem.
To perform this operation, you need to create a scenario in a few steps.
1- We need to determine our target ip addresses. On this side, version 6.3x started to accept the Mikrotik domain input together with it. We can specify a domain name in the address list, and these domains automatically resolve the strings.
2- We assume that the name of our 2nd line is VDSL_2, so a gateway is defined.
3- This configuration is prepared in the test environment. different rules may be required by examining other rules on the router to be implemented.
/ip firewall filter
add chain=forward action=accept dst-address-list=DIFFERENT_MODEM_DOMAIN // Not mandatory..
/ip firewall address-list
add address=instagram.com list=DIFFERENT_MODEM_DOMAIN // In this field you can define as many domains as you want.
add address=www.instagram.com list=DIFFERENT_MODEM_DOMAIN
add address=www.facebook.com list=DIFFERENT_MODEM_DOMAIN
add address=facebook.com list=DIFFERENT_MODEM_DOMAIN
/ip firewall mangle
add action=mark-packet chain=prerouting dst-address-list=DIFFERENT_MODEM_DOMAIN new-packet-mark=PackMark_DIFFERENT_MODEM_DOMAIN passthrough=yes // If the packets to the specified address are checked, the purpose is to ensure that the queues pass.
add action=mark-routing chain=prerouting new-routing-mark=private_Domain_Route packet-mark=PackMark_DIFFERENT_MODEM_DOMAIN passthrough=no // Routing (DSL belirlememiz için bu işaretlenmiş paketleri Routing mark ile tekrar route işareti vererek bir sonraki route kuralına tabi olmasını sağlıyoruz.
/ip route add routing-mark=private_Domain_Route gateway=VDSL_2
add name=Different_Domain_Permissions packet-marks=PackMark_DIFFERENT_MODEM_DOMAIN target="" Comment="FIRST ORDER"
move Different_Domain_Permissions destination=0 // It will set the default speed limit to the default default for the corresponding packet operations and free transfer will be provided since que is defined as no limit.