Community discussions

MikroTik App
 
NumLock
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 69
Joined: Mon Jun 16, 2008 3:38 am

P2P Limit ROS 6.12

Tue Apr 22, 2014 7:52 pm

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=""
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: P2P Limit ROS 6.12

Thu Apr 24, 2014 1:20 am

You can also add to p2p list all incoming new udp connection from outside on range 1025-32765 to your client IP......

Who is online

Users browsing this forum: Ahrefs [Bot] and 154 guests