I have 2 wans load balanced , the details are as follows:
Wan 1 ip: 192.168.1.1
Wan 2 ip: 192.168.2.1
and lan ip: 192.168.0.1
my issue is that i want this website http://dodear.com and its downloads will open from wan 2 ip 192.168.2.1 only not from my wan 1 ip 192.168.1.1 . please help me about its script how can i do this thing. i am new to mikrotik so i cant figure it out how to do this thing . your kind and urgent response will help me to resolve this issue.
if that site uses a set of IP Addresses for its downloads you can just route those addresses statically out of the WAN2 interface.
If you want to dynamically map an unknown set of IP Addresses to a specific interface then you will likely need more serious help than I can provide.
I would look around the website and “copy” the download links they give you and see if there is any pattern or set of addresses you could put in to manage this way.
Also a diagram of how you are set up and how your load balancing is managed then we can help further.
thanks for your reply, i want to mention that the above website http://dodear.com is basically server based site and shows download only for there own internet network , i have two networks one from them and one from other ISP and because of load balancing of both providers wan ips the download links are not working, so that i want to open the only there own ip which is my wan2 192.168.2.1 and drop from wan1 ip wan1 which ip is 192.168.1.1. any script for this issue is very helpful for me. thanks and regards
Simply match the range of addresses used by their downloading servers and point all that traffic out of WAN2.
You can simply do a packet / connection mark
or you can add a static route to those addresses through WAN2
or you could put a first nat rule on the list before your balanced rules matching destination IP range and sending it masqurade out WAN2 before you do your balancing.