This is an old revision of the document!
IPsec-Tools was devloped by the KAME project and is now deprecated. You may still find this package usefulf for quickly configuring IPsec tunnels in an lab environment.
Install from Alpine APK or a package of your choice.
apk add ipsec-tools
ip tunnel add gre0 mode gre remote <remote_ip_addr> local <local_ip_addr> ttl 255 ip link set gre0 up ip address <tunnel_ip_addr>/<subnet_mask>
mkdir /etc/racoon
scp {ca.pem,cert.pem,key.pem} <user>@<host>:/etc/racoon/ done
setkey -f /etc/ipsec.conf racoon -f /etc/racoon/racoon.conf