Generate MikroTik PCC (Per Connection Classifier) load balancing configuration
# FREECOM PCC Load Balancing Configuration # Generated: 12/17/2025, 8:27:50 PM # RouterOS Version: v7.xx # WAN Lines: 2 # # Local Network Address List /ip/firewall/address-list add address=192.168.88.0/24 list=LOCAL # Mangle Rules for PCC /ip/firewall/mangle add chain=input in-interface=ether1 action=mark-connection new-connection-mark=ISP1_conn passthrough=yes comment="Mark conn ISP1" /ip/firewall/mangle add chain=input in-interface=ether2 action=mark-connection new-connection-mark=ISP2_conn passthrough=yes comment="Mark conn ISP2" /ip/firewall/mangle add chain=output connection-mark=ISP1_conn action=mark-routing new-routing-mark=to_ISP1 passthrough=yes comment="Mark route ISP1" /ip/firewall/mangle add chain=output connection-mark=ISP2_conn action=mark-routing new-routing-mark=to_ISP2 passthrough=yes comment="Mark route ISP2" /ip/firewall/mangle add chain=prerouting src-address-list=LOCAL dst-address-list=!LOCAL per-connection-classifier=both-addresses-and-ports:2/0 action=mark-connection new-connection-mark=ISP1_conn passthrough=yes comment="PCC ISP1 50%" /ip/firewall/mangle add chain=prerouting connection-mark=ISP1_conn action=mark-routing new-routing-mark=to_ISP1 passthrough=yes /ip/firewall/mangle add chain=prerouting src-address-list=LOCAL dst-address-list=!LOCAL per-connection-classifier=both-addresses-and-ports:2/1 action=mark-connection new-connection-mark=ISP2_conn passthrough=yes comment="PCC ISP2 50%" /ip/firewall/mangle add chain=prerouting connection-mark=ISP2_conn action=mark-routing new-routing-mark=to_ISP2 passthrough=yes # NAT Masquerade Rules /ip/firewall/nat add chain=srcnat out-interface=ether1 action=masquerade comment="NAT ISP1" /ip/firewall/nat add chain=srcnat out-interface=ether2 action=masquerade comment="NAT ISP2" # Routing Rules /ip/route add gateway=192.168.1.1 routing-mark=to_ISP1 comment="Route ISP1" /ip/route add gateway=192.168.2.1 routing-mark=to_ISP2 comment="Route ISP2" # Default Routes /ip/route add gateway=192.168.1.1 distance=1 comment="Default ISP1" /ip/route add gateway=192.168.2.1 distance=2 comment="Default ISP2" # Configuration Complete! # FREECOM - MikroTik Tools
Copy the script above and paste it into your MikroTik terminal.
Make sure to adjust interface names and IP addresses according to your network.
FREECOM - MikroTik Tools | PCC Load Balancing Generator