Page 1 of 1
Help need! Per traffic load balance
Posted: Sat Oct 02, 2010 10:41 pm
by bouncer69
http://wiki.mikrotik.com/wiki/Per-Traff ... _Balancing
I have done all the instruction here they said but it is not working for me. If i try to ping anything from router giving me message "no route to host"
Any help would be apprecate
Re: Help need! Per traffic load balance
Posted: Sat Oct 02, 2010 10:46 pm
by fewi
That means there's no route in the routing table for the target you are pinging.
That article only applies to traffic THROUGH the router (it marks in the prerouting chain, when you ping from the router those ICMP echo requests are in the output chain, which happens afterwards), and the only routes shown in the article are for packets with routing marks.
Install a default route ("/ip route add dst-address=0.0.0.0/0 gateway=gateway.IP.of.ISP") for all traffic not caught by the rules that mark packets for routing to fall through to. That includes pings from the router.
Read the packet flow page on the wiki until you understand how traffic flows through the router, the firewall filter and mangle manual pages also help. If you're going to route by policy it's important to understand what those rules are doing, and how they work.
Re: Help need! Per traffic load balance
Posted: Sun Oct 03, 2010 8:27 pm
by bouncer69
Thank you for quick help. I'll check the way you suggest.
Re: Help need! Per traffic load balance
Posted: Mon Oct 04, 2010 4:04 pm
by bouncer69
Here is my setup. After I setup default gateway still it is not working.
/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.12.1 routing-mark="HTTP traffic" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.12.1 routing-mark="SSL traffic" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.12.1 routing-mark="POP3 traffic" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.11.1 routing-mark="SMTP traffic" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.11.1 routing-mark="P2P traffic" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.11.1 routing-mark="Unknown traffic" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.11.1 routing-mark="WAN - 01" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.12.1 routing-mark="WAN - 02" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.12.1 scope=30 target-scope=10
/ip firewall mangle
add action=mark-routing chain=prerouting comment="" disabled=no new-routing-mark=WAN-01 passthrough=no src-address-list=WAN-01
add action=mark-routing chain=prerouting comment="" disabled=no new-routing-mark=WAN-02 passthrough=no src-address-list=WAN-02
add action=mark-routing chain=prerouting comment="" disabled=no dst-port=80 new-routing-mark="HTTP traffic" passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="" disabled=no dst-port=443 new-routing-mark="SSL traffic" passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="" disabled=no dst-port=110 new-routing-mark="POP3 traffic" passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="" disabled=no dst-port=25 new-routing-mark="SMTP traffic" passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="" disabled=no new-routing-mark="P2P traffic" p2p=all-p2p passthrough=no
add action=mark-routing chain=prerouting comment="" disabled=no new-routing-mark="Unknown traffic" passthrough=no
/ip firewall nat
add action=masquerade chain=srcnat comment="Gateway 192.168.11.1/24" disabled=no out-interface=wan1 src-address-list=Allowed-Internet
add action=masquerade chain=srcnat comment="Gateway 192.168.12.1/24" disabled=no out-interface=wan2 src-address-list=Allowed-Internet
Re: Help need! Per traffic load balance
Posted: Fri Jan 28, 2011 2:50 pm
by caspat
Have you find a solution to your probleme? if yes can you share it?
Pat
Re: Help need! Per traffic load balance
Posted: Wed Oct 19, 2011 11:18 pm
by faisalusuf