2 Wans traffic in needs to = traffic out

Hi,

Have 2.9 with 2 ISP’s. We are a hosting company and the only local network is whats in our rack.

I need to have all traffic that comes in from ISP1 leave out of ISP1 interface and all that comes in ISP2 needs to leave out of ISP2 interface. We are not using NAT

Right now traffic is going to ISP1 and coming back out of ISP1 int ok, but traffic going to ISP2 is going OK, but coming out of ISP1 int. I must be missing a route mark somewhere.

Can anyone with a similar setup point me to some forum article that might shed some like on this?

Thanks!

apaluch -

You probably have 0/0 (default route) in the main table set to ISP1’s gateway that’s why data to ISP2 answers are going that way.

You’ll need to set up policying routing to mark packets then connections coming in each interface, then set up a routing table for each interface with a default route. Then anything coming in a particular interface (to a particular IP address space) would get marked and an answer would get returned out the correct interface.

You can leave the default route 0/0 in table main alone - that way if there is ever something that you MT doesn’t know where to send the reply to will always go out ISP1 to the Internet.

I beileve that there is an article in the Wiki on just this sort of thing - there have also been responses to this type of question in the past on the forum - try a search if you can’t find an answer on the Wiki.

Thom