Scenario: we have a T1 and a DSL connection. I want to enable destination nat on both external IPs to an internal mail server. The DSL connection and T1 are set up as gateways (i.e. via a route to destination 0.0.0.0) with the DSL connection having a lower distance. I plan on configuring some machines to use the T1 connection via a mangle route-mark rule while the rest use the DSL connection as the default. The machine with the mail server is not part of this rule and sends out traffic over the DSL line by default.
Problem: Dnat works fine when coming in via the DSL connection. However, when I come via the T1 connection, I don't get a response.
I set up a mangle/pre-routing rule for:
1. Interface: T1, connection state: new, action = mark connection: T1, passthrough=y
2. Interface: T1, connection state: new, action = mark routing: T1, passthrough=n
3. Interface: DSL, connection state: new, action = mark connection: DSL, passthrough=y
4. Interface: DSL, connection state: new, action = mark routing: DSL, passthrough=n
I already have a pair of src-nat rules:
1. src-address:10.1.0.0/16, out-interface: DSL, action=src-nat to:x.x.x.x
2. src-address:10.1.0.0/16, out-interface: T1, action=src-nat to:y.y.y.y
I tried adding each of the following src-nat rules before these rules:
src-address:10.1.0.0/16, routing mark=t1, action=src-nat to:y.y.y.y
src-address:10.1.0.0/16, connection mark=t1, action=src-nat to:y.y.y.y
and neither seems to ever show a hit for bytes/packets
I also played with trying to add a route rule:
route destination: 0.0.0.0 gateway=z.z.z.z mark=t1 prefered source=y.y.y.y
but this doesn't work either...
I've read through the wikis and searched the board... I'm obviously not understanding something fundamental.. any help would be appreciated...