Command 'set vpn ipsec disable-uniqreqids' does nothing
Description
Details
- Version
- 2025.06.06-0019-rolling, 1.4.2
- Is it a breaking change?
- Perfectly compatible
- Issue type
- Bug (incorrect behavior)
Related Objects
- Mentioned In
- rVYOSONEX471441d9d654: Merge pull request #4637 from alexandr-san4ez/T7562-current
rVYOSONEXc84c7cf16bf4: ipsec: T7562: Add support for `disable-uniqreqids` option in IPsec configs - Mentioned Here
- T1210: About IKEv2 IPSec VPN remote access
T2647: ipsec disableuniqreqids generate a wrong ipsec.conf
Event Timeline
In VyOS 1.3, this command was used to integrate with StrongSwan's uniqueids=no setting in ipsec.conf, facilitating environments requiring non-unique IKE_SAs. However, with StrongSwan's transition to swanctl.conf, such unique ID management should ideally be performed via the connections.<conn>.unique parameter. More details about the migration you can find here.
Additionally, the current set vpn ipsec remote-access connection rw unique command in newer VyOS versions supports modern uniqueness policies, which align better with updated StrongSwan configurations. https://vyos.dev/T1210
Given the situation, I can propose the following actions:
- Deprecate disable-uniqreqids: Phase out this command and guide users to the remote-access uniqueness settings.
- Modernize Configurations: Transition settings to use the connections.<conn>.unique parameter, defaulting to similar behavior as uniqueids=no.
- Standardize Behavior: Apply the same uniqueness handling as the remote-access settings (L2TP, profile, peer) for consistency across the platform.
Other helpful links:
I think we should go for option #2, since it's pretty flexible now. The old disable-uniqreqids option can be migrated to never on every connection.