ipsec: T7594: Rename respond connection-type in IPSec peer settings to trap
#4881
+47
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change summary
This config item is a continuous source of confusion and misconfigurations, and it is understandable. While CLI says this:
The
respondactually does not do what is noted in the description:vyos-1x/data/templates/ipsec/swanctl/peer.j2
Lines 96 to 97 in 22c6a81
In a pair of IPSec peers, to avoid SA duplication, one must keep silent and the other attempt to connect. With the
initiate/respondpair, one peer will actively try to initiate a connection, and another will be silent, but only if there is no traffic that matches a traffic selector for a peer. If such traffic occurs, it will try to connect as well.The risk is relatively low, but if this happens, such peers may loop into an endless renegotiation process.
To avoid confusion, @zdc suggests:
1. Rename
respondtotrapand fix the description.2. Migrate all
respondtonone, so the system does what is configured in the CLI.Types of changes
Related Task(s)
Related PR(s)
trapfor all peers and configurations vyos-documentation#1719How to test / Smoketest result
Step 1: configure site-to-site peer with connection type 'respond'
Step 2: upgrade the router on new version
Step 3: verify configuration after reboot the router
Checklist: