Community discussions

MikroTik App
 
thegreatone
newbie
Topic Author
Posts: 25
Joined: Fri Jan 18, 2013 11:19 pm

Load Balancing and ping between clients and local network

Sat Jan 19, 2013 5:18 am

Hello,

I have 2 WANs x 100Mbps on CCR. I am doing load balancing with marking routes by IP address. I am using 2 ethernet ports for WANs, 1 Ethernet port for Local server, and other 9 ether ports are for clients which are connected with PPPOE servers on each port.


I have ip addresses from ISP 1 as 9.xx.xx.xx and ISP 2 as 81.xx.xx.xx and have the following configuration:
/ip firewall mangle
add action=mark-routing chain=prerouting   new-routing-mark=ISP1 src-address=9.xx.xx.xx/24
add action=mark-routing chain=prerouting   new-routing-mark=ISP2 src-address=81.xx.xx.xx/23


/ip route
add distance=1 gateway=9.xx.xx.xx routing-mark=ISP1
add distance=1 gateway=81.xx.xx.xx routing-mark=ISP2
add distance=1 gateway=9.xx.xx.xx
The server has IP 9.xx.xx.2, from same pool as clients. When i try to open the server outside my network it works fine, but when I am trying to ping or open the server from my network i got timeout.

What to do to allow using the server from my network?

Thanks.
 
thegreatone
newbie
Topic Author
Posts: 25
Joined: Fri Jan 18, 2013 11:19 pm

Re: Load Balancing and ping between clients and local networ

Sun Feb 10, 2013 8:22 pm

Anyone?
 
ronix
Member Candidate
Member Candidate
Posts: 151
Joined: Thu Nov 17, 2011 6:51 pm

Re: Load Balancing and ping between clients and local networ

Tue Feb 12, 2013 12:21 pm

same problem in different case :

I have 2 WANs with PCC load balance...

I have a local server in my local network with a privet ip, I add this rule in NAT:
add action=dst-nat chain=dstnat disabled=no dst-address=68.x.x.x dst-port=6666 protocol=tcp to-addresses=192.168.1.2 to-ports=80

from my local network I can't open my local server, but from out side Internet I can connect normally !!!
 
thegreatone
newbie
Topic Author
Posts: 25
Joined: Fri Jan 18, 2013 11:19 pm

Re: Load Balancing and ping between clients and local networ

Sat Feb 01, 2014 7:45 pm

I fixed the problem by masquerading the server IP address in Dst address.

Who is online

Users browsing this forum: Google [Bot], GoogleOther [Bot], keshav, r0nzzibb, vingjfg and 172 guests