Quick question regarding my setup with my RB450:
I had my RB 450 configured with 2 Wans and just recently added another line (wan3).
What would the Nth for each Wan?
Wan1 = 3,1
Wan2 = 3,2
Wan3 = 3,3
??
Thank you in advance..
Quick question regarding my setup with my RB450:
I had my RB 450 configured with 2 Wans and just recently added another line (wan3).
What would the Nth for each Wan?
Wan1 = 3,1
Wan2 = 3,2
Wan3 = 3,3
??
Thank you in advance..
This same. see the following link mikrotik manual http://wiki.mikrotik.com/wiki/NTH_load_balancing_with_masquerade
I’m not very good at English, I hope you have been able to help you
How to expand this example to more WANs
To have more WANs you have to add additional IP address and additional route with routing-mark, eg, third
Then you have have to edit Sections A-C
Changes in Section A
here we have to adjust nth field value first value is what number of packed we are looking for, usually it is equal to your WAN count. And add additional rule as in example below.
/ip firewall mangle add action=add-src-to-address-list address-list=first address-list-timeout=0s chain=“mark new unseen” disabled=no nth=3,1
/ip firewall mangle add action=add-src-to-address-list address-list=second address-list-timeout=0s chain=“mark new unseen” disabled=no nth=3,2
/ip firewall mangle add action=add-src-to-address-list address-list=third address-list-timeout=0s chain=“mark new unseen” disabled=no nth=3,3
/ip firewall mangle add action=add-src-to-address-list address-list=seen address-list-timeout=0s chain=“mark new unseen” disabled=no
/ip firewall mangle add action=jump chain=“mark new unseen” disabled=no jump-target=“mark connection”
Changes in Section B
here we will have to add 2 new rules, to mark connections that source address is in third address-list, and after that mark routing corresponding to connection mark.
/ip firewall mangle add action=mark-connection chain=“mark connection” disabled=no new-connection-mark=first_conn passthrough=yes src-address-list=first
/ip firewall mangle add action=mark-connection chain=“mark connection” disabled=no new-connection-mark=second_conn passthrough=yes src-address-list=second
/ip firewall mangle add action=mark-connection chain=“mark connection” disabled=no new-connection-mark=third_conn passthrough=yes src-address-list=thrid
/ip firewall mangle add action=mark-routing chain=“mark connection” connection-mark=first_conn disabled=no new-routing-mark=first passthrough=no
/ip firewall mangle add action=mark-routing chain=“mark connection” connection-mark=second_conn disabled=no new-routing-mark=second passthrough=no
/ip firewall mangle add action=mark-routing chain=“mark connection” connection-mark=third_conn disabled=no new-routing-mark=third passthrough=no
Changes in Section C
Here have to add rule just like in section B just change chain to prerouting as all other rules in this section.
/ip firewall mangle add action=mark-routing chain=“mark connection” connection-mark=third_conn disabled=no new-routing-mark=third passthrough=no
/ip firewall mangle add action=mark-routing chain=prerouting connection-mark=first_conn disabled=no new-routing-mark=first passthrough=no src-address-list=first
/ip firewall mangle add action=mark-routing chain=prerouting connection-mark=second_conn disabled=no new-routing-mark=second passthrough=no src-address-list=second
/ip firewall mangle add action=mark-routing chain=“prerouting” connection-mark=third_conn disabled=no new-routing-mark=third passthrough=no