strongswan: swanctl: Add support for encap
authorKevin Locke <redacted>
Sat, 30 Nov 2024 21:30:54 +0000 (14:30 -0700)
committerPhilip Prindeville <redacted>
Sun, 27 Apr 2025 19:35:50 +0000 (13:35 -0600)
commitc1cfb36e50ed79b6befdb80f3595877cb90d9f7a
tree816c960ef668e67efa8c0c2693ae1af9f0bdf56a
parentadbf8ed9d837c45b6f803ac6c6a8c56e7c866c6d
strongswan: swanctl: Add support for encap

Support the [encap] connection configuration option to force UDP
encapsulation of ESP packets to work around connectivity issues with
middleboxes which block ESP packets.

This work is based on a patch by @aleks-mariusz in
https://forum.openwrt.org/t/confusion-regarding-setting-up-ikev2-vpn-service-with-strongswan-using-ipsec-and-swanctl/169587/9

[encap]: https://docs.strongswan.org/docs/latest/swanctl/swanctlConf.html#_connections

Signed-off-by: Kevin Locke <redacted>
net/strongswan/Makefile
net/strongswan/files/swanctl.init
git clone https://git.99rst.org/PROJECT