openfortivpn: Use netifd for script rather than init script
authorAaron Goodman <aaronjg@stanford.edu>
Fri, 22 May 2020 22:57:42 +0000 (18:57 -0400)
committerAaron Goodman <aaronjg@stanford.edu>
Thu, 4 Jun 2020 20:51:30 +0000 (16:51 -0400)
commit9b0fce23d1a60d6cc6e241b7996451fa08e776ee
treebe1afa9728442e96898f180f05ec5b9a213b9169
parent4f727bcc02a84afc4b514b5d4e4dc528a9f35280
openfortivpn: Use netifd for script rather than init script

By using the netifd for open fortivpn we are able to set up multiple
VPN connections and manage them through the netifd toolset.

This also adds support for binding an openfortivpn client to a given
interface, in which case when that interface comes online, the vpn
will be initiated via a hotplug script.

This is a breaking commit and configurations will need to be migrated
from openfortivpn.config into the /etc/config/networks.

Example configuration via /etc/config/network:

config interface 'ftvpn'
        option proto 'openfortivpn'
        option server 'example.com'
        option username 'USERNAME'
        option password 'PASSWORD'
        # optional arguments follow
        option local_ip '192.0.5.1'
        option port '443'
        option iface_name 'wan'
        option trusted_cert 'CERT_HASH'
        option set_dns '0'
        option pppd_use_peerdns '0'
        option metric '10'

Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
net/openfortivpn/Makefile
net/openfortivpn/files/14-openforticlient [new file with mode: 0644]
net/openfortivpn/files/openfortivpn-wrapper [new file with mode: 0755]
net/openfortivpn/files/openfortivpn.config [deleted file]
net/openfortivpn/files/openfortivpn.init [deleted file]
net/openfortivpn/files/openfortivpn.sh [new file with mode: 0755]
net/openfortivpn/patches/010-bind-iface.patch [new file with mode: 0644]