Test swanctl.conf before reloading live process #2247
-
Sorry if I may have missed it from documentation, but I did search a bit. Is there a way for swanctl to test a new version of swanctl.conf before actually reloading all required things? My scenario is for automation, where I'd like to trigger a test, like for example how Nginx supports to use Is that also available for strongswan.conf? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No. The swanctl command can't really validate it as it basically only converts the strongswan.conf-style file to various vici messages. The vici plugin then might reject individual messages because options etc. are invalid.
Why should they be invalid if you generate them? Also, you might want to consider using vici directly.
No, that file has no pre-defined options. So while some components or plugins might reject values read from it at runtime (not all options will actually have an effect when reloading the file), there is no central component that has any knowledge about the available options or their valid values. |
Beta Was this translation helpful? Give feedback.
No. The swanctl command can't really validate it as it basically only converts the strongswan.conf-style file to various vici messages. The vici plugin then might reject individual messages because options etc. are invalid.
Why should they be invalid if you generate them? Also, you might want to consider using vici directly.