ppp via ssh (freebsd-ppp->linux-pppd)

Dear Community,

I'm trying to establish a ppp-tunnel over ssh from freebsd-14-client (local) to linux-server (remotehost), but it's failing.

The local configuration is done on the ppp-command line (but following to the manual described in
https://www.csh.rit.edu/~psionic/articles/ppp-over-ssh/ )

ppp is executed as root in interactive mode:

Code:
ppp ON comp> set ifaddr 172.16.1.1 172.16.1.2 255.255.255.255
ppp ON comp> set dial
ppp ON comp> set device "!env SSH_AUTH_SOCK= ssh -C -i /home/user/.ssh/keyfile user@remotehost
ppp ON comp> open

The remotehost is runing on linux and has the following configuration for pppd in $HOME/.ssh/authorized_keys:

Code:
command="/usr/bin/sudo /usr/sbin/pppd noauth ipcp-accept-local ipcp-accept-remote nodetach notty" <rest-of-key>

After open the tun0 device on local has the IP 172.16.1.1 and is responding pinging on it. The same on the remotehost (linux) side, which has 172.16.1.2 and pings on the ppp0-IP are responded. But the remote sides of the tunnel aren't responding. Neither from freebsd->linux (172.16.1.1->172.16.1.2) nor vise versa.

The configuration works with both hosts using pppd (on linux), so I guess the remotehost configuration is correct.

Where's my mistake and what I'm overseeing to get the configuration working?

Many thanks in advance
and best regards
Paule
 
Back
Top