This package will add the so-called `pppossh` protocol support to OpenWrt. The idea is mainly from [`pvpn` project](https://github.com/halhen/pvpn) (poor man's VPN over SSH). PPPoSSH is generally not considered a network setup for production use mainly due to the TCP-over-TCP styles of traffic transport, but it can be quite handy for personal use. And with what's already in OpenWrt, it is really easy and takes little extra space to configure it up running. ## Prerequisites and dependency. `pppossh` depends on either `dropbear` or `openssh-client`; `dropbear` is normally enabled in OpenWrt by default. The following requirements need to be fulfilled for it to work. - A SSH account on the remote machine with `CAP_NET_ADMIN` capability is required. - Public key authentication must be enabled and setup properly. Public key of the one generated automatially by dropbear can be induced by the following command. But you can always use your own (dropbear can work with OpenSSH public key). dropbearkey -y -f /etc/dropbear/dropbear_rsa_host_key - SSH server's fingerprint has to be present in `~/.ssh/known_hosts` for the authentication to proceed in an unattended way. Manually logging in at least once to the remote server from OpenWrt should do this for you. ## How to use it. The protocol name to use in `/etc/config/network` is `pppossh`. Options are as described below. - `server`, SSH server name - `port`, SSH server port (defaults to `22`). - `sshuser`, SSH login username - `identity`, list of client private key files. `~/.ssh/id_{rsa,dsa}` will be used if no identity file was specified and at least one of them must be valid for the public key authentication to proceed. - `ipaddr`, local ip address to be assigned. - `peeraddr`, peer ip address to be assigned. - `ssh_options`, extra options for the ssh client. - `use_hostdep`, set it to `0` to disable the use of `proto_add_host_dependency`. This is mainly for the case that the appropriate route to `server` is not registered to `netifd` and thus causing a incorrect route being setup. ## Tips An `uci batch` command template for your reference. Modify it to suite your situation. uci batch <