]> git.99rst.org Git - openwrt-packages.git/commit
strongswan: rename 'gateway' to 'remote_gateway'
authorFlorian Eckert <redacted>
Thu, 23 Jul 2026 12:25:53 +0000 (14:25 +0200)
committerFlorian Eckert <redacted>
Mon, 3 Aug 2026 09:07:41 +0000 (11:07 +0200)
commitd43fa0cbd49796ecc53fd7f606ba3bf84dc39164
treef943705b0194831c91c959e4864fef7a05c30ce3
parent9cea816088af618c372512847d7055eba7e71210
strongswan: rename 'gateway' to 'remote_gateway'

The UCI option 'gateway' in the ipsec config (consumed by
/etc/init.d/swanctl) is ambiguous. It is not clear from the name
alone whether it refers to the local or the remote IKE/IPsec
peer address, which has repeatedly led to misconfiguration.

Rename it to "remote_gateway" to make the direction explicit and
to match the existing "remote_subnet" naming. If the option is
unset, the init script now falls back to the strongSwan default
of '%any', so connections that accept any remote peer no longer
require an explicit placeholder value.

Add a uci-defaults migration script to rename existing 'gateway'
entries to 'remote_gateway' and remove the value 'any' on upgrade. This
is new default if 'remote_gateway' is not set.

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