Hi I like to share and get some feedback, I deploy the following configuration to limit P2P connection I need to make sure is this should be work properly if not I really appreciate if point me to right direction.
Mark P2P Mangle:
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=!p2p-connection \
new-connection-mark=p2p-connection p2p=all-p2p passthrough=no
add action=add-src-to-address-list address-list=p2p-host \
address-list-timeout=1d chain=prerouting connection-mark=p2p-connection \
in-interface=ether1
add action=mark-packet chain=forward dst-address-list=p2p-host \
new-packet-mark=p2p-up passthrough=no
add action=mark-packet chain=forward new-packet-mark=p2p-down passthrough=no \
src-address-list=p2p-host
The Queue
/queue simple
add burst-limit=128k/128k burst-threshold=64k/64k burst-time=10s/10s \
limit-at=64k/64k max-limit=64k/64k name=p2p-up packet-marks=p2p-up \
target=""
add burst-limit=128k/128k burst-threshold=64k/64k burst-time=10s/10s \
limit-at=64k/64k max-limit=64k/64k name=p2p-down packet-marks=p2p-down \
target=""