Signed-off-by: Jonatan Schlag jonatan.schlag@ipfire.org --- src/functions/functions.vpn-security-policies | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
diff --git a/src/functions/functions.vpn-security-policies b/src/functions/functions.vpn-security-policies index 8bb9065..d17a155 100644 --- a/src/functions/functions.vpn-security-policies +++ b/src/functions/functions.vpn-security-policies @@ -1002,3 +1002,17 @@ vpn_security_policies_make_esp_proposal() { # Returns as a comma-separated list list_join proposals , } + +# List all security policies +vpn_security_policies_list_all() { + local security_policy + for security_policy in ${NETWORK_SHARE_DIR}/vpn/security-policies/*; do + [ -f ${security_policy} ] || continue + basename ${security_policy} + done + + for security_policy in ${NETWORK_CONFIG_DIR}/vpn/security-policies/*; do + [ -f ${security_policy} ] || continue + basename ${security_policy} + done +}