Using ssh with multiple nic
I have a linux box with 2 nic installed:
ATH0 connects to my local wireless network.
ETH0 connects to a modem which is connected to the external world. (Modem has a static ip address).
I configured my routing so that the default gateway points to my local wireless network. Doing so prevents me from connecting to my box using ssh and the modem static ip address.
If I configure my routing to use the modem as the default gateway then I can ssh into it fine. I can actually ssh into it using both nic with that configuration.
But I need my traffic to go through the wireless network, therefore is there any way to ssh into my box through the modem without it being configured as the default gateway?