Community discussions

MikroTik App
 
fatslim
newbie
Topic Author
Posts: 30
Joined: Mon Dec 01, 2008 1:21 pm
Location: Lithuania, Kaunas
Contact:

two wan interfaces, one lan

Tue May 26, 2009 11:33 am

Hello and sorry for my bad English,

we have two ISP's (ISP1 and ISP2) and we wan to use them for different purposes.

ISP1 will be used for our WEB server(192.168.0.123).
ISP2 will be used for all other internet traffic from our office.

Maybe in these forums there is such topic? I tried to use search without luck.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: two wan interfaces, one lan

Wed May 27, 2009 10:59 am

It is possible with policy-routing.

1) Add mangle rule for HTTP traffic with action=mark-routing.

2) Add two routes,
- one default gateway for other traffic;
- second gateway for HTTP traffic with routing-mark=http_from_mangle;
 
fatslim
newbie
Topic Author
Posts: 30
Joined: Mon Dec 01, 2008 1:21 pm
Location: Lithuania, Kaunas
Contact:

Re: two wan interfaces, one lan

Fri May 29, 2009 2:36 pm

It is possible with policy-routing.

1) Add mangle rule for HTTP traffic with action=mark-routing.

2) Add two routes,
- one default gateway for other traffic;
- second gateway for HTTP traffic with routing-mark=http_from_mangle;
And what about NAT? Now i am using two routers. MT router is configured only with one ISP for http server and later i will connect second ISP

Now my nat is:
chain=srcnat action=masquerade out-interface=ISP1

Who is online

Users browsing this forum: askarot, marsando and 197 guests