Configuring IPsec with ipsecctl(8)

host to host in under five minutes

hostA# echo "ike esp from 192.168.0.1 to 192.168.0.2" > /etc/ipsec.conf
hostA# scp /etc/isakmpd/local.key hostB:/etc/isakmpd/pubkeys/ipv4/192.168.0.1
hostA# isakmpd -K
hostA# ipsecctl -v /etc/ipsec.conf

hostB# echo "ike esp from 192.168.0.2 to 192.168.0.1" > /etc/ipsec.conf
hostB# scp /etc/isakmpd/local.key hostA:/etc/isakmpd/pubkeys/ipv4/192.168.0.2
hostB# isakmpd -K
hostB# ipsecctl -v /etc/ipsec.conf