How to apply different gateway for Local/Overseas traffic

I want to apply all local network number to gateway 1.2.3.4. on ISP 1 and overseas network number to gateway 6.7.8.9. on ISP2.

How I can do this??

Regards,
David Kandou


202.x.x.x (I have list of local network number)
g/w 1.2.3.4.
ISP 1 --------------
|
|
|----------------Microtic Router-------LAN
| 172.16.128.0
| g/w 172.16.128.1
ISP 2 -------------|
gw 6.7.8.9.
not 202.x.x.x (all network number except local)

Use ‘policy-routing’ to apply different gateways for different type of traffic.

  1. ‘ip firewall address-list’ will help you to create list with local country IP addresses. Search in the Internet for the entire list of your country public IP addresses;
  2. Use ‘ip firewall’ mangle to assign ‘mark-routing’ for the overseas traffic.
  3. Specify routing-mark for the gateway dedicated for the overseases traffic.

if you mark traffic as local/overses
block packet mark by interface
Wan1 for local
Wan2 for overseas