I have the following routing table
10.0.1.0/24 dev eth0 proto kernel scope link src 10.0.1.151
10.0.10.0/24 dev eth1 proto kernel scope link src 10.0.10.151
default via 10.0.1.1 dev eth0
I have two links, one goes through a LAN and, through 10.0.1.1 out to the Internet. The other is a ADSL router (10.0.10.1) directly attached to eth1.
If I connect from the outside to the external IP address of 10.0.10.1 I get a timeout. If I change the default route to 10.0.10.1, connecting from the outside to the external IP address of 10.0.10.1 works. So this looks like a routing problem (packets come from 10.0.10.1, but go out of 10.0.1.1, being the default route), but I'm not sure how to solve it.
I actually want the default route to be 10.0.1.1, I just want to answer requests to the external IP of 10.0.10.1 via the same interface.