strongswan: allow to specify per-connection reqid with UCI
authorPaul Fertser <fercerpav@gmail.com>
Thu, 21 Nov 2019 17:26:46 +0000 (20:26 +0300)
committerStijn Tintel <stijn@linux-ipv6.be>
Thu, 16 Jan 2020 23:07:32 +0000 (01:07 +0200)
commit243673b2d0c59fc450c2981e57e0efdde28d79c5
tree11528de5889c949871aa6bfb45e52a892b228efc
parent3880d65a070e1841f8b4532957bf847604e0f71c
strongswan: allow to specify per-connection reqid with UCI

This is useful to assign all traffic to a fw3 zone, e.g.:

/etc/config/ipsec:

config remote 'test'
list tunnel 'dev'
...

config 'tunnel' 'dev'
option reqid '33'
...

/etc/config/firewall:

config zone
option name wan
option extra_src "-m policy --pol none --dir in"
option extra_dest "-m policy --pol none --dir out"
...

config zone
option name vpn
# subnet needed for firewall3 before 22 Nov 2019, 8174814a
list subnet '0.0.0.0/0'
option extra_src "-m policy --pol ipsec --dir in --reqid 33"
option extra_dest "-m policy --pol ipsec --dir out --reqid 33"
...

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
net/strongswan/files/ipsec.init