Ticker

6/recent/ticker-posts

Mangle simple queue internet speed to 3 Bridge Port

Creating a Mikrotik Simple queue and Firewall Mangle is an easy step to share network bandwidth on the Mikrotik router through the Winbox application.

Mangle simple queue internet speed to 3 Bridge Port

Today we have 50MB on network to share internet for client: PC 30MB, Wifi 15MB and CCTV 5MB.

Step 1: Create Bridge and interface Port.

1. Bridge-PC= Ether2 to Ether5
2. Bridge-Wifi= Ether6 to Ether8
3. Bridge-CCTV= Ether9 to Ether10

Step 2: Add IP address for all Bridge Port and setup DHCP setup.

Example: 
Bridge-PC: 192.168.110.1/24
Bridge-Wifi: 192.168.120.1/24
Bridge-CCTV: 192.168.130.1/24

Step 3: Create an address-list.

Go to ip=>Firewall=>address-list=>add
- Name = PC Address: 192.168.110.0/24
- Name = Wifi Address: 192.168.120.0/24
- Name = CCTV Address: 192.168.130.0/24
Or by Script:
/ip firewall address-list add address=192.168.110.0/24 list=PC
/ip firewall address-list add address=192.168.120.0/24 list=Wifi
/ip firewall address-list add address=192.168.130.0/24 list=CCTV

Step 4: Create Firewall Mangle

Go to ip=>Firewall=>Mangle=>add
For Upload
- General Chain:forward in.Interface:Bridge-PC Advanced Scr.Address list:PC Action:mark_packet Packet Mark:PC_Upload Passthrough:yes
Or by Script:
/ip firewall mangle 
add chain=forward action=mark-packet new-packet-mark=Wifi_Upload passthrough=yes src-address-list=PC in-interface=Bridge-Wifi
For Download
- General Chain:forward out.Interface:Bridge-PC Advanced Scr.Address list:PC Action:mark_packet Packet Mark:PC_Download Passthrough:yes
Or by Script:
/ip firewall mangle 
add chain=forward action=mark-packet new-packet-mark=Wifi_Download passthrough=yes dst-address-list=PC out-interface=Bridge-Wifi

Repeat the steps same as above for Bridge-Wifi and Bridge-CCTV

Step 4: Create Simple queue.

This is the final step. It is where we configure queues to use the packet marks created in step 4 for bandwidth control.

Go to Simple queue and click add button.

1. General tap Name:PC-Upload Target Upload 30M, Target Download 30M and Advanced tap Packet Marks: PC_Upload
Or by Scrip:
/queue simple
add max-limit=30M/30M target=0.0.0.0/24 name=PC_Upload packet-marks=PC_Upload

2. General tap Name:PC-Download Target Upload 30M, Target Download 30M and Advanced tap Packet Marks: PC_Download
Or by Scrip:
/queue simple
add max-limit=30M/30M target=0.0.0.0/24 name=PC-Download packet-marks=PC_Download

Repeat the steps same as above for Wifi and CCTV



Conclusion

In this post, we have made a step-by-step tutorial on Mangle simple queue internet speed to 3 Bridge Port.I hope you liked it and please do share it with your friends and follow our social media for more.

If you face any problems with the code or have any questions, please feel free to ask in the comments section or contact us.

Post a Comment

0 Comments