Hi Jacques, > I wanted to know if there is a way to open, close connection with out > using the command "ipsec up connection", "ipsec down connection" but by > using an API. Please have a look at the VICI interface [1] and its C API. Regards, Tobias [1] https://wiki.strongswan.org/projects/strongswan/wiki/Vici