config: add xfrm interface support scripts
authorAndré Valentin <avalentin@marcant.net>
Sat, 8 Jun 2019 11:48:08 +0000 (13:48 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 10 Jun 2019 08:07:24 +0000 (10:07 +0200)
commit452d88e8f798c550151cd1e1d204a528fb00db08
treee39de1ce23fafd86446fb07a3df01552e0bad426
parentcc092a285afa419711024fc72884e49d4983e14a
config: add xfrm interface support scripts

This package adds scripts for xfrm interfaces support.
Example configuration via /etc/config/network:

config interface 'xfrm0'
        option proto 'xfrm'
        option mtu '1300'
        option zone 'VPN'
        option tunlink 'wan'
        option ifid 30

config interface 'xfrm0_static'
        option proto 'static'
        option ifname '@xfrm0'
        option ip6addr 'fe80::1/64'
        option ipaddr '10.0.0.1/30'

Now set in strongswan IPsec policy:
  if_id_in = 30
if_id_out = 30

Signed-off-by: André Valentin <avalentin@marcant.net>
package/network/config/xfrm/Makefile [new file with mode: 0644]
package/network/config/xfrm/files/xfrm.sh [new file with mode: 0755]