Ja het is mogelijk
Ik ben nog bezig met het schrijven van een howto maar hier heb je hem alvast
<code>
Establishing a ppp tunnel over an ssh connection
Requirements:
pppd
sudo
pty-redir (pts-redir)
http://www.shinythings.com/pty-redir/pty-redir-0.1.tgz
http://student.twi.tudelft.nl/~tw305162/pts-redir-0.1.tar.gz
ssh
Alter the sudo settings with visudo.
Append the following lines, sshtun is the remote user you login as.
-------------
Cmnd_Alias VPN=/usr/sbin/pppd,/sbin/route
sshtun ALL=NOPASSWD: VPN
-------------
Use the following script to initiate the tunnel connection.
The variables should be modified to fit your local settings.
The MYNET and TARGETNET variables should be set to the network behind both gateways.
If there is no network behind the gateway, you can leave the variable empty
If you don't have ssh public key authentication you probably need to enter your password twice.
The first password has to be entered whithin 15 seconds for the local pppd won't wait any longer.
If you can login without a password, with public or host key authentication, you can add -o 'Batchmode yes' to the ssh statement.
-------------
#!/bin/bash
PPPAPP=/usr/sbin/pppd
ROUTEAPP=/sbin/route
PPPD=/usr/sbin/pppd
NAME=VPN
REDIR=/usr/local/bin/pty-redir
SSH=/usr/local/ssh/bin/ssh
SSH_PORT=22
MYPPPIP=192.168.101.1
TARGETIP=192.168.101.2
TARGETNET=
TARGETMASK=255.255.255.0
MYNET=192.168.99.0
MYMASK=255.255.255.0
SLAVEWALL=ns2.initfour.nl # Remote gateway
SLAVEACC=helmo # Remote user
test -f $PPPD || exit 0
set -e
case "$1" in
start)
echo "Setting up vpn"
$REDIR $SSH -t -p$SSH_PORT +C -l $SLAVEACC $SLAVEWALL sudo $PPPAPP >/tmp/device
TTYNAME=`cat /tmp/device`
echo tty is $TTYNAME
sleep 15s
if [ ! -z $TTYNAME ]
then
sudo $PPPD $TTYNAME ${MYPPPIP}:${TARGETIP}
else
echo FAILED!
logger "vpn setup failed"
fi
sleep 5s
if [ "$TARGETNET" = "" ]; then
sudo route add -net $TARGETNET netmask $TARGETMASK gw $TARGETIP
fi
if [ "$MYNET" = "" ]; then
$SSH -p$SSH_PORT -l $SLAVEACC $SLAVEWALL sudo $ROUTEAPP add -net $MYNET netmask $MYMASK gw $MYPPPIP
fi
;;
stop)
ps -ax | grep "ssh -t -p$SSH_PORT +C -l $SLAVEACC " | grep -v grep | awk '{print $1}' | xargs kill
;;

echo "Usage: /etc/init.d/$NAME {start|stop}"
exit 1
;;
esac
exit 0
--------------
</code>