Skip to content

VPN / IPsec - migrate ipsec.conf to swanctl.conf #5636

Description

@AdSchellevis

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.

In time Strongswan will remove support for ipsec.conf (could't find a clear path on their end, if there is, it might be good to add a dead line here), in which case the newer swanctl.conf should be used.

Describe the solution you like

Migrate current legacy code to output new style configuration data instead of the current ipsec.conf file.

Currently the ipsec.conf is written here:

@file_put_contents("/usr/local/etc/ipsec.conf", str_replace("\t", ' ', $ipsecconf));

A challenging part might be the current support for custom includes in :

$ipsecconf .= "\ninclude ipsec.opnsense.d/*.conf\n";

Describe alternatives you considered

None

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureAdding new functionalityroadmapMajor roadmap item

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions