Community discussions

 
arielbest
just joined
Topic Author
Posts: 1
Joined: Mon Sep 09, 2019 1:09 pm

Destination Port Priotity

Mon Sep 09, 2019 1:48 pm

Hello Mikrotik Community,

Looking for help please, here is the situation,

i created mangle rules in firewall, if packets running on tcp or udp destination port is on 80 or 443 port and connection bytes is 1M-0, the connection should mark as heavy download&streaming , and if the connection bytes is below 0-1M the connection should be marked as Browsing.and if the destination port is not running of port 80 or 443, the mangle should be marks as OTHERs or games. that is why i tick the square box beside destination port.. the problem is not working. only read as heavy download, event i only use browsing. did i make mistake on creating the mangle rules. please i need help.

see below script code:
add action=mark-connection chain=prerouting comment=\
    "heavy download& Streaming" connection-bytes=1000000-0 connection-limit=\
    100,32 dst-port=80,443 new-connection-mark=heavy_download passthrough=yes \
    protocol=tcp src-address-list=local
add action=mark-connection chain=prerouting connection-bytes=1000000-0 \
    connection-limit=100,32 dst-port=80,443 new-connection-mark=\
    heavy_download passthrough=yes protocol=udp src-address-list=local
add action=mark-packet chain=prerouting connection-limit=100,32 \
    connection-mark=heavy_download new-packet-mark=Download passthrough=no
add action=mark-connection chain=prerouting comment=\
    "HTTP Browsing& Streaming" connection-bytes=0-1000000 dst-port=80,443 \
    new-connection-mark=HTTP_Browsing passthrough=yes protocol=tcp \
    src-address-list=local
add action=mark-connection chain=prerouting connection-bytes=0-1000000 \
    dst-port=80,443 new-connection-mark=HTTP_Browsing passthrough=yes \
    protocol=udp src-address-list=local
add action=mark-packet chain=prerouting connection-mark=HTTP_Browsing \
    new-packet-mark=Browsing passthrough=yes
add action=mark-connection chain=forward comment=OTHERSorGames connection-bytes=\
    2000000-0 connection-limit=100,32 dst-port=!80,443 new-connection-mark=\
    Games passthrough=yes protocol=tcp src-address-list=local
add action=mark-connection chain=forward connection-bytes=2000000-0 \
    connection-limit=100,32 dst-port=!80,443 new-connection-mark=OTHERSorGames \
    passthrough=yes protocol=udp src-address-list=local
add action=mark-packet chain=forward connection-limit=100,32 connection-mark=\
   OTHERSorGames new-packet-mark="OTHERS" passthrough=no
THANKS YOU IN ADVANCE..
Last edited by krisjanisj on Mon Sep 09, 2019 1:49 pm, edited 1 time in total.
Reason: Please post configs/code in [code] blocks to save peoples scroll wheels

Who is online

Users browsing this forum: No registered users and 6 guests