I needed to access to a network which only has a ssh server. So I used the ssh tools to set a VPN tunnel.
root@host:~# apt-get install uml-utilities
root@host:~# systemctl status uml-utilities.service
root@host:~# echo 1 | tee /proc/sys/net/ipv4/ip_forward
root@host:~# ip addr add 10.110.0.100/32 peer 10.110.0.200 dev tun0
root@host:~# ip link set tun0 up
root@host:~# ip route add 192.168.2.0/24 via 10.110.0.200
root@host:~# iptables -t nat -A POSTROUTING -d 192.168.1.0/24 -o eth0 -j MASQUERADE
PermitRootLogin yes
PermitTunnel yes
root@host:~# systemctl restart sshd
root@host:~# ssh -Nf -w 0:0 -p 22 root@1.1.1.1
root@host:~# ip addr add 10.110.0.200/32 peer 10.110.0.100 dev tun0
root@host:~# ip link set tun0 up
root@host:~# ip route add 192.168.1.0/24 via 10.110.0.100
Contact :