Currently I have VPN client access set up on OpenSuSE 13.1 server to third-party remote Cisco VPN IPSec server. VPN Server is set up to provide access for a host only and to provide access for a local network I set up iptables NAT with masquerading. Additionally I set up routing on other workstations to route traffic to remote subnet through server with NAT(iptabes).
Let the network map be:
Client alice(192.168.1.2) -- Gateway moon (192.168.1.1/10.0.0.2)
|
Remote host(10.0.0.3) -- Cisco (10.0.0.1)
Currently I was troubleshooting ssh authentcation failures using different methods and found out that instead of remote host sshd of Gateway responds.
I was listening to the traffic using wireshark and I see packets with correct ips, for example:
192.168.1.2 >> 10.0.0.3
10.0.0.3 >> 192.168.1.2
When I enter correct login/password for gateway when trying to ssh user@10.0.0.3
, I enter gateway.
How this could be possible and why gateway answers as if it is host? How to fix this?