vici: Make installation of outbound FWD policies configurable
This commit is contained in:
@@ -437,6 +437,7 @@ typedef struct {
|
||||
linked_list_t *remote_ts;
|
||||
uint32_t replay_window;
|
||||
bool policies;
|
||||
bool policies_fwd_out;
|
||||
child_cfg_create_t cfg;
|
||||
} child_data_t;
|
||||
|
||||
@@ -462,6 +463,7 @@ static void log_child_data(child_data_t *data, char *name)
|
||||
DBG2(DBG_CFG, " ipcomp = %u", cfg->ipcomp);
|
||||
DBG2(DBG_CFG, " mode = %N", ipsec_mode_names, cfg->mode);
|
||||
DBG2(DBG_CFG, " policies = %u", data->policies);
|
||||
DBG2(DBG_CFG, " policies_fwd_out = %u", data->policies_fwd_out);
|
||||
if (data->replay_window != REPLAY_UNDEFINED)
|
||||
{
|
||||
DBG2(DBG_CFG, " replay_window = %u", data->replay_window);
|
||||
@@ -1334,6 +1336,7 @@ CALLBACK(child_kv, bool,
|
||||
{ "hostaccess", parse_bool, &child->cfg.hostaccess },
|
||||
{ "mode", parse_mode, &child->cfg.mode },
|
||||
{ "policies", parse_bool, &child->policies },
|
||||
{ "policies_fwd_out", parse_bool, &child->policies_fwd_out },
|
||||
{ "replay_window", parse_uint32, &child->replay_window },
|
||||
{ "rekey_time", parse_time, &child->cfg.lifetime.time.rekey },
|
||||
{ "life_time", parse_time, &child->cfg.lifetime.time.life },
|
||||
@@ -1537,6 +1540,7 @@ CALLBACK(children_sn, bool,
|
||||
}
|
||||
}
|
||||
child.cfg.suppress_policies = !child.policies;
|
||||
child.cfg.fwd_out_policies = child.policies_fwd_out;
|
||||
|
||||
check_lifetimes(&child.cfg.lifetime);
|
||||
|
||||
|
||||
@@ -659,6 +659,13 @@ connections.<conn>.children.<child>.policies = yes
|
||||
Whether to install IPsec policies or not. Disabling this can be useful in
|
||||
some scenarios e.g. MIPv6, where policies are not managed by the IKE daemon.
|
||||
|
||||
connections.<conn>.children.<child>.policies_fwd_out = no
|
||||
Whether to install outbound FWD IPsec policies or not.
|
||||
|
||||
Whether to install outbound FWD IPsec policies or not. Enabling this is
|
||||
required in case there is a drop policy that would match and block forwarded
|
||||
traffic for this CHILD_SA.
|
||||
|
||||
connections.<conn>.children.<child>.dpd_action = clear
|
||||
Action to perform on DPD timeout (_clear_, _trap_ or _restart_).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user