OPNsense Forum

English Forums => General Discussion => Topic started by: Uzi Golan on September 01, 2020, 10:49:31 AM

Title: adding ipsec via API
Post by: Uzi Golan on September 01, 2020, 10:49:31 AM
Hello All

i just checked   the api for ipsec , i am using v20.7.1

when will it be possible to add IPsec configuration ( phase 1 /2 etc ) via the API ?

thanks in advance 
Title: Re: adding ipsec via API
Post by: mimugmail on September 01, 2020, 12:02:03 PM
IPsec is still legacy code and no timetable to switch
Title: Re: adding ipsec via API
Post by: ansibleguy on September 10, 2022, 07:02:03 PM
Hi.

As I would love to create an Ansible Module (https://github.com/ansibleguy/collection_opnsense (https://github.com/ansibleguy/collection_opnsense)) to manage IPSec tunnels => are there updates regarding the IPSec API?

Is there a plan to API-enable it in the future?

- AnsibleGuy
Title: Re: adding ipsec via API
Post by: ansibleguy on December 17, 2022, 02:46:59 PM
Hi.

Looks like some major updates to the IPSec implementation are being done: https://github.com/opnsense/core/pull/6187

Those might allow API management in the future.

- AnsibleGuy
Title: Re: adding ipsec via API
Post by: ansibleguy on December 20, 2022, 06:40:38 PM
Hi.

It seems the IPSec API is actually on its way: https://github.com/opnsense/core/pull/6187#issuecomment-1356263118

- AnsibleGuy
Title: Re: adding ipsec via API
Post by: Vangsguard on December 21, 2023, 03:37:47 PM
For anyone in 2023: https://docs.opnsense.org/development/api/core/ipsec.html