]> git.99rst.org Git - openwrt-packages.git/commit
strongswan: migration and merge local_nat into local_subnet
authorFlorian Eckert <redacted>
Thu, 23 Jul 2026 11:02:19 +0000 (13:02 +0200)
committerFlorian Eckert <redacted>
Mon, 3 Aug 2026 09:07:41 +0000 (11:07 +0200)
commit9cea816088af618c372512847d7055eba7e71210
tree2c30eba320a0d80094fb2c359d3134cc85edfc7e
parenteca6d15e4596cf3ec973bf4fc0acbded1ea28cfe
strongswan: migration and merge local_nat into local_subnet

The UCI option 'local_nat' was a misleading legacy name for the
option that actually specifies the local traffic selector(s) used
by strongSwan/swanctl for a connection, i.e. the local subnet(s)
matched by the IPsec SA. It has nothing to do with NAT-T or NAT
detection, and the name repeatedly caused confusion when writing
or reviewing configs.

Merge it to 'local_subnet' to match its actual purpose and to
align with the naming already used for the corresponding
'local_subnet' option and with swanctl.conf's own 'local_ts/remote_ts'
terminology.

Add a uci-defaults migration script so existing installations are
upgraded automatically. It reads any existing 'local_nat' values
(whether stored as a plain option or as a list) and rewrites them
as a 'local_subnet' list.

Signed-off-by: Florian Eckert <redacted>
net/strongswan/files/etc/uci-defaults/strongswan
net/strongswan/files/swanctl.init
git clone https://git.99rst.org/PROJECT