HeaderAd

Breaking

Friday, February 12, 2021

Mikrotik || Load Balancing || Mikrotik Load Balancing 2 WAN Script

 

           Mikrotik Load Balancing 4 WAN,3WAN,2WAN

I have a Mikrotik RB750GR3 Router board.You cannot imagine this router provides me various options, which any router cannot provide. You can do anything, you want. Just a simple little router with various functionalities. No need for a PC with multiple LAN cards operating system installation etc. It provides multiple links merging or dividing user load at multiple WANS IP-wise user speed limitations. Restrict websites like porn or in-office YouTube or FB block. This is a marvellous product. I loved it very much and providing you set up to use multiple links or multiple WANS on a single LAN.

Video Link  Mikrotik Routerboard Configuration In Hindi/Urdu Through Script:-



Mikrotik load balancing 4 WAN, Mikrotik load balancing 3 WAN, Mikrotik Load Balancing 2 WAN

Mikrotik Load Balancing 4 WANMikrotik load balancing 3 WANMikrotik Load Balancing 2 WAN



 

Mikrotik load balancing:

                                              My router Mikrotik provides load balancing Mikrotik load balancing 4 WAN, Mikrotik load balancing 3 WAN,  Mikrotik Load Balancing 2 WAN. I provide you Mikrotik Load Balancing Script to simply configure Mikrotik router board RB750GR3 or some other models that work the same. This script works on all Mikrotik router boards. Mikrotik load balancing over multiple gateways smoothly works and easily manages multiple WAN gateways. Mikrotik Load balancing PCC.

 

Mikrotik Load Balancing 2 Wan Script:

Here is the Mikrotik dual wan load balancing and failover script for all solutions of network management of multiple WAN, User restriction, speed limitations, site blocking, etc. Just copy-paste the script on the router board and the router goes configured. Script load balance 2 isp and 4 WAN Script if you have 2 or three WANS available then you have to remove extra WANS from the script. If you do not understand then please see my video below I clearly mentioned all steps in the video about the script. This Script gives the interface name and IP scheme or network scope like 192.168.0.0 or 192.168.10.0 as you like. And give WAN address proper in the WAN area in the script change IP scheme as configured your WAN main router. Any kind of ambiguity sees my video carefully. After Addresses editing in the script as per your WANS and then copy the script and paste it to a New Terminal tab available in the Mikrotik router after logging into the router. The below script works very well on Mikrotik dual wan failover. By using this script you can combine Mikrotik 2 wan into one LAN.    

Here The Mikrotik Load Balancing 2 WAN Script 4WAN And 3WAN::::

 

/ip address

add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=Local

add address=192.168.1.2/24 network=192.168.1.0 broadcast=192.168.1.255 interface=WAN1

add address=192.168.2.2/24 network=192.168.2.0 broadcast=192.168.2.255 interface=WAN2

add address=192.168.3.2/24 network=192.168.3.0 broadcast=192.168.3.255 interface=WAN3

add address=192.168.4.2/24 network=192.168.4.0 broadcast=192.168.4.255 interface=WAN4

 

/ip firewall mangle

add chain=input in-interface=WAN1 action=mark-connection new-connection-mark=WAN1_conn

add chain=input in-interface=WAN2 action=mark-connection new-connection-mark=WAN2_conn

add chain=input in-interface=WAN3 action=mark-connection new-connection-mark=WAN3_conn

add chain=input in-interface=WAN4 action=mark-connection new-connection-mark=WAN4_conn

 

add chain=output connection-mark=WAN1_conn action=mark-routing new-routing-mark=to_WAN1

add chain=output connection-mark=WAN2_conn action=mark-routing new-routing-mark=to_WAN2

add chain=output connection-mark=WAN3_conn action=mark-routing new-routing-mark=to_WAN3

add chain=output connection-mark=WAN4_conn action=mark-routing new-routing-mark=to_WAN4

 

add chain=prerouting dst-address=192.168.1.0/24 action=accept in-interface=Local

add chain=prerouting dst-address=192.168.2.0/24 action=accept in-interface=Local

add chain=prerouting dst-address=192.168.3.0/24 action=accept in-interface=Local

add chain=prerouting dst-address=192.168.4.0/24 action=accept in-interface=Local

 

add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:4/0 action=mark-connection new-connection-mark=WAN1_conn passthrough=yes

add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:4/1 action=mark-connection new-connection-mark=WAN2_conn passthrough=yes

add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:4/2 action=mark-connection new-connection-mark=WAN3_conn passthrough=yes

add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:4/3 action=mark-connection new-connection-mark=WAN4_conn passthrough=yes

add chain=prerouting connection-mark=WAN1_conn in-interface=Local action=mark-routing new-routing-mark=to_WAN1

add chain=prerouting connection-mark=WAN2_conn in-interface=Local action=mark-routing new-routing-mark=to_WAN2

add chain=prerouting connection-mark=WAN3_conn in-interface=Local action=mark-routing new-routing-mark=to_WAN3

add chain=prerouting connection-mark=WAN4_conn in-interface=Local action=mark-routing new-routing-mark=to_WAN4

 

/ip route

add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_WAN1 check-gateway=ping

add dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=to_WAN2 check-gateway=ping

add dst-address=0.0.0.0/0 gateway=192.168.3.1 routing-mark=to_WAN3 check-gateway=ping

add dst-address=0.0.0.0/0 gateway=192.168.4.1 routing-mark=to_WAN4 check-gateway=ping

 

add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=1 check-gateway=ping

add dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=2 check-gateway=ping

add dst-address=0.0.0.0/0 gateway=192.168.3.1 distance=3 check-gateway=ping

add dst-address=0.0.0.0/0 gateway=192.168.4.1 distance=4 check-gateway=ping

 

/ip firewall nat

add chain=srcnat out-interface=WAN1 action=masquerade

add chain=srcnat out-interface=WAN2 action=masquerade

add chain=srcnat out-interface=WAN3 action=masquerade

add chain=srcnat out-interface=WAN4 action=masquerade


LAN Network:

                            In your Lan Network, you can utilize free firewall user controls and websites block. You can set a restriction on users' net surfing by using your Mikrotik free firewall. Through Mikrotik free firewall you can block youtube and also block facebook access of your office users. Mikrotik perfectly manages iptables. It is a great network device with that you can manage your whole network perfectly.

Network Interface:

                        
                             Through the Network interface you can easily manage network firewall security you can stop hacking attacks by creating policies in Mikrotik. This is the best router in computer network for managing your LAN Network. This is the best firewall Medium for managing your Lan Network.


VPN Router:

                            Mikrotik can work as VPN Router also. You can create a secure VPN tunnel for connecting to your LAN Network from all over the work easily and securely. 

No comments:

Post a Comment

If you have any doubt please let me know