The strongswan cookbook allows the creation of VPN tunnels using ipsec.