So, i have two virtual network, a machine with two interfaces, each on a different virtual network (but with the same logical network 192.168.0.0/24 both).
eth1 : 192.168.0.10
eth2 : 192.168.0.20
I have to do a thing which look like "man in the middle" :
|
| "Man in the middle" machine
Machine X |
network1 [192.168.0.10 <-------|-> 192.168.0.20 eth2 ]
--------------------------------|---------------------------------------
|
Machine Y |
network2 [192.168.0.20 <-------|-> 192.168.0.10 eth1 ]
|
I can ping from MAM machine to network1 or network2 with interface param (ping -I ethX X.X.X.X) it's good ( thanks to HERE : rp_filter ...)
But i can't with the other case (ping from external to MAM machine). With wireshark i can see ARP or ping request but i think MAM see source IP and think/link with his local ip, of the other NIC (regardless the NIC "range network" who received) and drop or ignore ...
Any ideas ? I'm lost
(Sorry for my worst/bad English !)