Using say: ssh -D8080 user@remoteserver.com
to create an SSH tunnel to a remote server and use it as a SOCKS proxy, etc.,
how would one go about to wrap it into a VPN server (PPTP, L2TP or OpenVPN), if possible, in order to have devices that do not support tunneling but support VPN (like the iPad or DD-WRT routers) be able to log in to the VPN which will then transparently funnel everything through the SSH tunnel?