IPsec transport for 2 asterisk servers

hello,
I’m looking for some working example how to configure a ipsec tunnel for traffic between 2 asterisk servers. They both have public IP. I tried many manuals but none is working.
Thanks