OpenSSH tunneling

Damien Miller djm at mindrot.org
Tue Nov 26 19:37:21 EST 2013


On Tue, 26 Nov 2013, irfaan coonjah wrote:

> Both PCs can ssh  each other but tunneling
> is not working. The tun0 interface on both server and client is up but traffic
> is not flowing through the tunnels.

Have you enabled IP forwarding?

>   root at PCA:~# modprobe ipip
>   root at PCA:~# ip tu ad tun1 mode ipip remote
> 197.225.79.115 ttl 64 dev eth0

I'm not sure why you are using IPIP. You should just be able to add a route
through the tun0 interface to the remote network directly.

> irfaan at ubuntu:~$ sudo ifup tun1
>   root at 196.192.83.17's password: 
>   channel
> 0: open failed: administratively prohibited: open failed

Your remote sshd is refusing the tunnel request. Is PermitTunnel set?

-d


More information about the openssh-unix-dev mailing list