strongswan: support /var/swanctl/conf.d/*.conf #22717
Why before the files in /etc and not after?
swanctl_xappend0 manipulates /var/swanctl/swanctl.conf, lines down below modifies /var/ipsec/strongswan.conf, I'm not sure I understand what files /etc are you referring to?
@pprindeville I've moved the include directive to Makefile, hope that's a better place for this logic.
Needs PKG_RELEASE bump.
Since I bumped in the other PR, do you think this PR can be merged with the other PR? Bumping at both can create conflicts.
Conflicts can not be resolved? They can, so bump the version and lets merge this one.:-)
Once https://github.com/openwrt/packages/pull/22716 is merged, this one should be directly mergeable.
please rebase this PR, thanks!
please rebase this PR
@hgl: Any progress on your PR?
Soon one year...
@hgl does the PR still work?
And a PKG_RELEASE bump and I'll merge it.
And a PKG_RELEASE bump and I'll merge it.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @hgl
Kind remidner, @hgl
I noticed this only seems to be waiting on PKG_RELEASE bump now.
I can send a small follow-up PR with the same change rebased on current master
and the release bump included. I have played a bit with ipsec
recently too, so I’d be glad to help move this forward.
pprindeville
hgl
Maintainer: @pprindeville @Thermi
Compile tested: x86 master
Run tested: x86 master
Description:
Sometimes, users might want to generate dynamic conf files. One example would be creating a IPv6 pool using WAN PD that might change. Currently, only /etc/swanctl/conf.d/*.conf is supported for user conf files, but it's not a good fit for dynamic ones, since upon rebooting the device, the conf can become stale.
With this change, users, for example, can use hotplug to create the conf in /var/swanctl/conf.d and have swanctl correctly load it.
They could of course add the include directive in
/etc/swanctl/swanctl.conf, but then they have to also remember creating the /var/swanctl/conf.d directory before every generation of the dynamic conf, which can be cumbersome. Given OpenWrt's popularity in home network, direct support for dynamic user conf files should be desirable.