install and configure IPSec on centos 7 code example
Example: createing strong swan firewall centos 7
firewall-cmd --permanent --add-service="ipsec"
firewall-cmd --permanent --add-port=4500/udp
firewall-cmd --permanent --add-masquerade
firewall-cmd --reload