OK, I just though you might give me a hint as to the nature of my problem.
I'm establishing a connection to my office network (192.168.0.0 255.255.255.224) through the OpenVPN server, which is also the Internet gateway for the mentioned above LAN (192.168.0.1), as can be logically understood.
So, here it is in a nutshell:
1) Openvpn server is 192.168.0.1 on the office network 192.168.0.0/27
2) In the server.conf I have, as regards routing, this:
Code: Select all
server 10.0.0.0 255.255.255.0
push "route 192.168.0.0 255.255.255.224"
Code: Select all
ifconfig 10.0.0.5 10.0.0.6
Code: Select all
Fri Mar 18 21:44:16 2011 /sbin/ifconfig tun0 10.0.0.6 pointopoint 10.0.0.5 mtu 1500
Fri Mar 18 21:44:16 2011 /sbin/route add -net 192.168.0.0 netmask 255.255.255.224 gw 10.0.0.5
Fri Mar 18 21:44:16 2011 /sbin/route add -net 10.0.0.1 netmask 255.255.255.255 gw 10.0.0.5
So now I can "see" all the machines on 192.168.0.0/27, ping them, nmap them and can, for example, connect to my router web-interface on 192.168.0.17:88.
PROBLEM: I cannot start a SSH session to the 192.168.0.1 (which is the VPN server itself as seen from the local LAN interface, and to which I usually connect via SSH from the LAN) !
The session just hangs (until I Ctrl-C to stop it). However, I can ping that machine OK.
What could possibly cause this? Any ideas? Just can it be related to any routing problems?
BTW, is it OK that I can ping 10.0.0.6 but cannot ping 10.0.0.5?
thanks in advance,
Kostya