Router OS 3.17
load-balance working very well butt disconnect my messengers after every 10 to 15 minutes and automatic reconnect
yahoo, msn messengers or some software’s
My Configuration
/ ip firewall nat
add chain=srcnat out-interface=wan1 action=masquerade
add chain=srcnat out-interface=wan2 action=masquerade
/ 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=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
/ ip route
add dst-address=0.0.0.0/0 gateway=192.168.20.254 routing-mark=to_wan1
add dst-address=0.0.0.0/0 gateway=192.168.10.254 routing-mark=to_wan2
add dst-address=0.0.0.0/0 gateway=192.168.20.254,192.168.10.254 check-gateway=ping
where my mistake?
plz tell me
Thanks
where’s your load-balance configuration?..
i already wright Load Balance configuration if its not good or wrong plz tell me, plz check again
just ECMP routing? =)
what is your tcp-established timeout in Connection tracking?
p.s. ECMP is not good for messengers, imho…
Chupaka:
just ECMP routing? =)
what is your tcp-established timeout in Connection tracking?
p.s. ECMP is not good for messengers, imho…
ohh plz give me right script
thanks
hello
my network
wan1 10.0.1.1
wan2 10.0.2.1
lan (pppoe clints just) 192.168.100.0
OS 3.17
plz give me good script for Load Balance
i check already wiki but its not work properly
Thanks
Chupaka:
sorry i am bigner, you meens /ip firewall conections /tracking ?
ther is default setings
that is my Configuration
/ ip firewall nat
add chain=srcnat out-interface=wan1 action=masquerade
add chain=srcnat out-interface=wan2 action=masquerade
/ 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=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
/ ip route
add dst-address=0.0.0.0/0 gateway=192.168.20.254 routing-mark=to_wan1
add dst-address=0.0.0.0/0 gateway=192.168.10.254 routing-mark=to_wan2
add dst-address=0.0.0.0/0 gateway=192.168.20.254,192.168.10.254 check-gateway=ping
that is on wiki site (http://wiki.mikrotik.com/wiki/Load_Balancing_Persistent )
/ ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1,10.112.0.1 check-gateway=ping
/ ip firewall nat
add chain=srcnat out-interface=wlan1 action=masquerade
add chain=srcnat out-interface=wlan2 action=masquerade
/ ip firewall mangle
add chain=input in-interface=wlan1 action=mark-connection new-connection-mark=wlan1_conn
add chain=input in-interface=wlan2 action=mark-connection new-connection-mark=wlan2_conn
add chain=output connection-mark=wlan1_conn action=mark-routing new-routing-mark=to_wla1
add chain=output connection-mark=wlan1_conn action=mark-routing new-routing-mark=to_wla2
/ ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1 routing-mark=to_wla1
add dst-address=0.0.0.0/0 gateway=10.111.0.2 routing-mark=to_wla2
not a big difference with my configuration or wiki site
but its not working properly
plz give me other configuration script or any other idia?
thanks
i am using 3.17
but i also try 3.22
and other RouterBoard also
problam same, messengers disconect after few minuts
give me any idea how to resolve this problem
I have a similar problem. Absolutely correct konfig and result as for you, one time a precipice goes per 10-15 minutes.
For me a hope is on more stable version of Mikrotika or more correct rules of Load Balancing.
sorrrry, wrong link… can’t find right example… there was something like http://wiki.mikrotik.com/wiki/Load_Balancing_over_Multiple_Gateways , but based on dynamic address-lists (with ‘Nth’ client gateway selection algorithm)…
maybe someone could help?..
Later:
Oh, I found it =) It was erased in older version of that page =( Try http://wiki.mikrotik.com/index.php?title=Load_Balancing_Persistent&oldid=5656
p.s. Who’s Megis?.. Janis, is that you?.. Why no comments on that edit? Was that functionality built in RouterOS? Or it was always there, and using address-lists changes nothing, just complicates the setup?..
Thanks Chupaka
i try that link http://wiki.mikrotik.com/index.php?title=Load_Balancing_Persistent&oldid=5656
that is work on Router OS 2.9.+ , but when i try in 3.17 or 3.22 and give this comand
‘’‘/ ip firewall nat’‘’
add chain=srcnat connection-mark=odd action=src-nat to-addresses=10.111.0.2
to-ports=0-65535
add chain=srcnat connection-mark=even action=src-nat to-addresses=10.112.0.2
to-ports=0-65535
router give me 1 error, assign port udp or tcp
and when i assign port tcp, is working butt problam same messenger disconect after few minuts
any other idia?
Muhammad:
Thanks Chupaka
i try that link http://wiki.mikrotik.com/index.php?title=Load_Balancing_Persistent&oldid=5656
that is work on Router OS 2.9.+ , but when i try in 3.17 or 3.22 and give this comand
‘’‘/ ip firewall nat’‘’
add chain=srcnat connection-mark=odd action=src-nat to-addresses=10.111.0.2
to-ports=0-65535
add chain=srcnat connection-mark=even action=src-nat to-addresses=10.112.0.2
to-ports=0-65535
router give me 1 error, assign port udp or tcp
and when i assign port tcp, is working butt problam same messenger disconect after few minuts
any other idia?
Your src-nat rule will not function with udp traffic as presently composed. While don’t you remove the to-ports and protocol. This will make sure that all traffic make with either even or odd connection marks go through the right interface irrespective of their protocol.
ip firewall nat
add action=src-nat chain=srcnat comment=“” connection-mark=odd disabled=no to-addresses=10.111.0.2
add action=src-nat chain=srcnat comment=“” connection-mark=even disabled=no to-addresses=10.112.0.2
yep, in v3 you shouldn’t use ‘to-ports’
when i assign port’s tcp, is working butt problam same messenger disconect after few minuts
i need some more help!!!
thanks
Muhammad:
when i assign port’s tcp, is working butt problam same messenger disconect after few minuts
i need some more help!!!
thanks
Remove “to-ports” and protocol=tcp from your src-nat rules! Read my earlier post above.
mangle mesengger port than mark routing and make marking route from mesengger to one gateway..