I have some problems with making ssh-based VPN.
LOCAL -> GATE -> SERVICES (ssh server) (Many other servers with some services) 192.168.0.10 10.1.0.154 172.26.106.0/24 255.255.255.0 255.255.0.0
From LOCAL I can login through the ssh to the GATE and then from here I have access to all of the SERVICES servers.
However i want to access services directly from my LOCAL computer. How can I acheive this?
Here is what i tried to do after reading ssh manual:
# ssh -f -w 1:2 root@GATE true # ifconfig tun1 10.66.1.1 10.66.1.2 netmask 255.255.255.252 # route add -net 172.26.106.0 netmask 255.255.255.0 gw 10.66.1.2
# ifconfig tun2 10.66.1.2 10.66.1.1 netmask 255.255.255.252
It doesn't work. I get timeouts when i try to ssh to some SERVICE from LOCAL ;-(