'Connection to remote shh over vpn (server has two network adapters)

I have a machine with ubuntu server that has two network adapters,

they are in different networks

  1. 192.168.1.x
  2. 192.168.30.x

If i try to connect from local network over ssh to the server using ip 1 or 2, the connection is ok,

The problem is, that when I try to connect to the ip 2, over a vpn remote connection, I can see that the server receive the request but doesn´t answer to it,

maybe it's a routing table problem?

ssh listening and connection received over vpn tunnel



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source