Home » LucidView knowledge base » FairShare™ » Configuring FairShare™ on your Enforcer

Activating FairShare™ on your Bolt-On Enforcer

The FairShareTM feature is part of the Bolt-on config. it will need to be manually updated for theFairShareTM to work.

Please see the RouterOS scripts below for the FairShareTM component:

FairShare™ is fairly simple. It consists of two components.


1. Firewall Rules to tag the Inbound and Outbound Packets

   /ip firewall mangle

   add action=mark-packet chain=output comment=”Lucidview Enforcer” dst-address= new-packet-mark=lucidview passthrough=no

   add action=mark-packet chain=input comment=”Lucidview Enforcer”

       new-packet-mark=lucidview passthrough=no src-address=

   add action=mark-packet chain=forward in-interface=ether1 new-packet-mark=in


   add action=mark-packet chain=forward new-packet-mark=out out-interface=ether1


Please update the above with the correct interface for your Internet. For example, your ether1 might be replaced by the PPPoE interface.


2. Shaping Queues

  /queue type

   add kind=pcq name=pcq_in pcq-classifier=dst-address pcq-dst-address6-mask=64

       pcq-limit=1000KiB pcq-src-address6-mask=64 pcq-total-limit=20000KiB

   add kind=pcq name=pcq_out pcq-classifier=src-address pcq-dst-address6-mask=64

       pcq-limit=1000KiB pcq-src-address6-mask=64 pcq-total-limit=20000KiB

   add kind=pfifo name=normal pfifo-limit=10000

   /queue tree

   add comment=lvcloud disabled=no max-limit=100M name=In packet-mark=in

       parent=global priority=1 queue=normal

   add comment=lvcloud disabled=no max-limit=100M name=Out packet-mark=out

       parent=global queue=normal

   add disabled=no name=Download packet-mark=in parent=In priority=1 queue=


   add disabled=no name=Upload packet-mark=out parent=Out queue=pcq_out

   add disabled=no name=Lucidview packet-mark=lucidview parent=In priority=1


You will notice new PCQ shaping queue types defined as well as input and output queues limited to 100 Mbps for both in and out. This you can adjust to your network speed. Typically it is recommended to make the max-limit slightly less than the line speed (Usually about 10% less than the total) so packets are queued on the MikroTik instead of being indiscriminately dropped by your ISP.