How to reply some request from which routes its came from?

Posted by tacoen on Server Fault See other posts from Server Fault or by tacoen
Published on 2010-06-09T14:39:55Z Indexed on 2010/06/09 14:42 UTC
Read the original article Hit count: 211

Filed under:
|
|
|

I wonder if we can reply some request from which route its came from?

My Situation is like this:

eth0 192.168.10.1 --> gw: 192.168.10.254 nm: 24
eth1 192.168.11.1 --> gw: 192.168.11.254 nm: 24

Since this two IP is on the same machine, normally when we ping to 192.168.11.1 from 192.168.10.2. This machine will not reply to 192.168.10.2 because 192.168.10.0/24 it's on eth0, and the packets where requested via eth1.

Can I make it works?

I'm using Linux ubuntu, and the application will be listen to eth1 only.

© Server Fault or respective owner

Related posts about ip

Related posts about iptables