Hi,
i need a scheduler 7pm to 7am to block p2p downloading.
it’s the code below is correct ???
and, how i can set the time frame for it ? by using scheduler ?
/ip firewall address-list
add address=address1 list=p2p-seeds
/ip firewall layer7-protocol
add name=l7-filter regexp="^(\\x13bittorrent protocol|azver\\x01\$|get /scrape\\\?info_hash=get /announce\\\?info_hash=|get /client/bitcomet/|GET /data\\\?fid=)|d1:ad2:id20:|\\x08'7P\\)[RP]"
add name=Scrape regexp="get /scrape\\\?info_has="
add name=Announce regexp="^get /announce\\\?info_hash="
add name=Bitcomet regexp="^ /client/bitcomet/"
add name=FID regexp="^GET /data\\\?fid="
add name=DHT regexp="^d1:.d2:id20:
add name=Azver regexp="^azver\01\$"
add name=RP regexp="\08'7P\\) [RP]"
add name=BitTorrent regexp="\13bittorrent protocol"
add name=ut_pex regexp=.*:md11:.*:ut_pex.*:
add name="\B5TP_FIN" regexp="^\11\00.{2}.{4}.{4}.{4}.{2}.{2}"
add name="\B5TP_STATE" regexp="^!\11\00.{2}.{4}.{4}.{4}.{2}.{2}"
add name="\B5TP_RESET" regexp="^1\11\00.{2}.{4}.{4}.{4}.{2}.{2}"
add name="\B5TP_SYN" regexp="^A\11\00.{2}.{4}.{4}.{4}.{2}.{2}"
add name=bittorrent_Teredo regexp="^`.*\13bittorrent protocol"
add name=DHT_Teredo regexp="^`.*d1:[a|r]d2:id20:.*y1:[q|r]e"
add name=ut_pex_Teredo regexp="^`.*:md11:.*:ut_pex.*"
add name="\B5TP_SYN_Teredo" regexp="^`.*A\00.{2}.{4}.{4}.{4}.{2}.{2}"
add name="\B5TP_STATE_Teredo" regexp="^`.*!\00.{2}.{4}.{4}.{4}.{2}.{2}"
add name="\B5TP_RESET_Teredo" regexp="^`.*1\00.{2}.{4}.{4}.{4}.{2}.{2}"
add name="\B5TP_FIN_Teredo" regexp="^`.*\11\00.{2}.{4}.{4}.{4}.{2}.{2}"
/ip firewall mangle
add action=add-src-to-address-list address-list=p2p-seeds address-list-timeout=35w3d13:13:56 chain=forward dst-address=10.10.0.0/16 layer7-protocol=l7-filter src-address-list=!p2p-seeds
add action=add-dst-to-address-list address-list=p2p-seeds address-list-timeout=35w3d13:13:56 chain=forward dst-address-list=!p2p-seeds layer7-protocol=l7-filter src-address-list=10.10.0.0/16
add action=mark-connection chain=forward new-connection-mark=p2p-cmark passthrough=yes src-address-list=p2p-seeds
add action=mark-connection chain=forward dst-address-list=p2p-seeds new-connection-mark=p2p-cmark passthrough=yes
add action=mark-packet chain=forward connection-mark=p2p-cmark new-packet-mark=p2p-mark passthrough=no