Route traffic to IP via specific GW

Hi,

I have a setup where I have a LAN port and two seperate WAN connections.

My current routing table:

 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 A S  0.0.0.0/0                          12.73.79.1              2
 1   S  0.0.0.0/0          87.45.67.42     87.45.67.41             3
 2 ADC  10.1.1.0/24        10.1.1.1        LAN                       0
 3 ADC  12.73.79.0/25      12.73.79.12     WAN1                      0
 4 ADC  87.45.67.40/29     87.45.67.42     WAN2                      0

All traffic goes out through WAN1 and fails over to WAN2 if WAN1 goes down.

But.. I’d like to send connections to a single external IP out through WAN2 while everyone else continues out WAN1.


I tried adding a route to the external IP, setting the gateway as WAN2. Like this in the routing table:

 5 X S  18.19.23.233/32   87.45.67.42      WAN2                    1

(disabled here)

Turning that rule on makes it so I can’t connect to the external IP anymore. Pings say 87.45.67.42: Destination Host Unreachable.

What am I missing?

Gateway should be 87.45.67.41, not WAN2