Código :
add action=mark-connection chain=prerouting comment=\
    "Marcar Conex\E3o HTTP-REQUEST (At\E9 256KB)" connection-bytes=0-262144 \
    disabled=no in-interface=WAN new-connection-mark=http-request_conexao \
    passthrough=yes protocol=tcp src-port=80
add action=mark-packet chain=prerouting comment="" connection-mark=\
    http-request_conexao disabled=no new-packet-mark=http-request_pacote \
    passthrough=no
add action=mark-connection chain=prerouting comment=\
    "Marcar Conex\E3o HTTP-DOWNLOADS (Acima 256KB)" connection-bytes=262145-0 \
    disabled=no in-interface=WAN new-connection-mark=http-downloads_conexao \
    passthrough=yes protocol=tcp src-port=80
add action=mark-packet chain=prerouting comment="" connection-mark=\
    http-downloads_conexao disabled=no new-packet-mark=http-downloads_pacote \
    passthrough=no
add action=mark-connection chain=prerouting comment="Marcar Conex\E3o HTTPS" \
    disabled=no in-interface=WAN new-connection-mark=https_conexao \
    passthrough=yes protocol=tcp src-port=443
add action=mark-packet chain=prerouting comment="" connection-mark=\
    https_conexao disabled=no new-packet-mark=https_pacote passthrough=no
add action=mark-connection chain=prerouting comment=\
    "Marcar Conex\E3o E-Mail - IN" disabled=no in-interface=WAN \
    new-connection-mark=e-mail_conexao passthrough=yes protocol=tcp src-port=\
    25,110,143,993,995
add action=mark-packet chain=prerouting comment="" connection-mark=\
    e-mail_conexao disabled=no new-packet-mark=e-mail_pacote passthrough=no
add action=mark-connection chain=postrouting comment=\
    "Marcar Conex\E3o E-Mail - OUT" disabled=no dst-port=25,110,143,993,995 \
    new-connection-mark=e-mail-out_conexao out-interface=WAN passthrough=yes \
    protocol=tcp
add action=mark-packet chain=postrouting comment="" connection-mark=\
    e-mail-out_conexao disabled=no new-packet-mark=e-mail-out_pacote \
    passthrough=no
add action=mark-connection chain=prerouting comment=\
    "Marcar Conex\E3o Messengers - IN" disabled=no in-interface=WAN \
    new-connection-mark=messenger_conexao passthrough=yes protocol=tcp \
    src-port=1863,6891-6901
add action=mark-connection chain=prerouting comment="" disabled=no \
    in-interface=WAN new-connection-mark=messenger_conexao passthrough=yes \
    protocol=udp src-port=1863,5190,6891-6901
add action=mark-connection chain=prerouting comment="" disabled=no \
    in-interface=WAN new-connection-mark=messenger_conexao passthrough=yes \
    protocol=tcp src-port=5000-5001,5050,5101
add action=mark-connection chain=prerouting comment="" disabled=no \
    in-interface=WAN new-connection-mark=messenger_conexao passthrough=yes \
    protocol=udp src-port=5000-5010
add action=mark-packet chain=prerouting comment="" connection-mark=\
    messenger_conexao disabled=no new-packet-mark=messenger_pacote \
    passthrough=no
add action=mark-connection chain=postrouting comment=\
    "Marcar Conex\E3o Messengers - OUT" disabled=no dst-port=1863,6891-6901 \
    new-connection-mark=messenger-out_conexao out-interface=WAN passthrough=\
    yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=\
    1863,5190,6891-6901 new-connection-mark=messenger-out_conexao \
    out-interface=WAN passthrough=yes protocol=udp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=\
    5000-5001,5050,5101 new-connection-mark=messenger-out_conexao \
    out-interface=WAN passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=\
    5000-5010 new-connection-mark=messenger-out_conexao out-interface=WAN \
    passthrough=yes protocol=udp
add action=mark-packet chain=postrouting comment="" connection-mark=\
    messenger-out_conexao disabled=no new-packet-mark=messenger-out_pacote \
    passthrough=no
add action=mark-connection chain=prerouting comment=\
    "Marcar Conex\E3o Jogos - IN" disabled=no in-interface=WAN \
    new-connection-mark=jogos_conexao passthrough=yes protocol=tcp src-port=\
    27020-27039
add action=mark-connection chain=prerouting comment="" disabled=no \
    in-interface=WAN new-connection-mark=jogos_conexao passthrough=yes \
    protocol=udp src-port=1200,27000-27015
add action=mark-connection chain=prerouting comment="" disabled=no \
    in-interface=WAN new-connection-mark=jogos_conexao passthrough=yes \
    protocol=tcp src-port=3724
add action=mark-connection chain=prerouting comment="" disabled=no \
    in-interface=WAN new-connection-mark=jogos_conexao passthrough=yes \
    protocol=tcp src-port=4376
add action=mark-connection chain=prerouting comment="" disabled=no \
    in-interface=WAN new-connection-mark=jogos_conexao passthrough=yes \
    protocol=udp src-port=4376
add action=mark-connection chain=prerouting comment="" disabled=no \
    in-interface=WAN new-connection-mark=jogos_conexao passthrough=yes \
    protocol=tcp src-port=6112-6119
add action=mark-connection chain=prerouting comment="" disabled=no \
    in-interface=WAN new-connection-mark=jogos_conexao passthrough=yes \
    protocol=udp src-port=6112-6119
add action=mark-connection chain=prerouting comment="" disabled=no \
    in-interface=WAN new-connection-mark=jogos_conexao passthrough=yes \
    protocol=tcp src-port=55905
add action=mark-connection chain=prerouting comment="" disabled=no \
    in-interface=WAN new-connection-mark=jogos_conexao passthrough=yes \
    protocol=udp src-port=55905
add action=mark-connection chain=prerouting comment="" disabled=no \
    in-interface=WAN new-connection-mark=jogos_conexao passthrough=yes \
    protocol=tcp src-port=11031,11240,11439
add action=mark-connection chain=prerouting comment="" disabled=no \
    in-interface=WAN new-connection-mark=jogos_conexao passthrough=yes \
    protocol=tcp src-port=6346
add action=mark-packet chain=prerouting comment="" connection-mark=\
    jogos_conexao disabled=no new-packet-mark=jogos_pacote passthrough=no
add action=mark-connection chain=postrouting comment=\
    "Marcar Conex\E3o Jogos - OUT" disabled=no dst-port=27020-27039 \
    new-connection-mark=jogos-out_conexao out-interface=WAN passthrough=yes \
    protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=\
    1200,27000-27015 new-connection-mark=jogos-out_conexao out-interface=WAN \
    passthrough=yes protocol=udp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=\
    3724 new-connection-mark=jogos-out_conexao out-interface=WAN passthrough=\
    yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=\
    4376 new-connection-mark=jogos-out_conexao out-interface=WAN passthrough=\
    yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=\
    4376 new-connection-mark=jogos-out_conexao out-interface=WAN passthrough=\
    yes protocol=udp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=\
    6112-6119 new-connection-mark=jogos-out_conexao out-interface=WAN \
    passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=\
    6112-6119 new-connection-mark=jogos-out_conexao out-interface=WAN \
    passthrough=yes protocol=udp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=\
    55905 new-connection-mark=jogos-out_conexao out-interface=WAN \
    passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=\
    55905 new-connection-mark=jogos-out_conexao out-interface=WAN \
    passthrough=yes protocol=udp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=\
    11031,11240,11439 new-connection-mark=jogos-out_conexao out-interface=WAN \
    passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no dst-port=\
    6346 new-connection-mark=jogos-out_conexao out-interface=WAN passthrough=\
    yes protocol=tcp
add action=mark-packet chain=postrouting comment="" connection-mark=\
    jogos-out_conexao disabled=no new-packet-mark=jogos-out_pacote \
    passthrough=no
add action=mark-connection chain=prerouting comment=\
    "Marcar Outras Conex\F5es - IN" disabled=no in-interface=WAN \
    new-connection-mark=outras-in_conexao passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment="" disabled=no \
    in-interface=WAN new-connection-mark=outras-in_conexao passthrough=yes \
    protocol=udp
add action=mark-packet chain=prerouting comment="" connection-mark=\
    outras-in_conexao disabled=no new-packet-mark=outras-in_pacote \
    passthrough=no
add action=mark-connection chain=postrouting comment=\
    "Marcar Outras Conex\F5es - OUT" disabled=no new-connection-mark=\
    outras-out_conexao out-interface=WAN passthrough=yes protocol=tcp
add action=mark-connection chain=postrouting comment="" disabled=no \
    new-connection-mark=outras-out_conexao out-interface=WAN passthrough=yes \
    protocol=udp
add action=mark-packet chain=postrouting comment="" connection-mark=\
    outras-out_conexao disabled=no new-packet-mark=outras-out_pacote \
    passthrough=no
add action=mark-connection chain=prerouting comment=\
    "Marcar Outros Protocolos - IN" disabled=no in-interface=WAN \
    new-connection-mark=outros_protocolos-in_conexao passthrough=yes
add action=mark-packet chain=prerouting comment="" connection-mark=\
    outros_protocolos-in_conexao disabled=no new-packet-mark=\
    outros_protocolos-in_pacote passthrough=no
add action=mark-connection chain=postrouting comment=\
    "Marcar Outros Protocolos - OUT" disabled=no new-connection-mark=\
    outros_protocolos-out_conexao out-interface=WAN passthrough=yes
add action=mark-packet chain=postrouting comment="" connection-mark=\
    outros_protocolos-out_conexao disabled=no new-packet-mark=\
    outros_protocolos-out_pacote passthrough=no