$OpenBSD: README.template,v 1.5 2016/08/27 09:47:26 ajacoutot Exp $

+-------------------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-------------------------------------------------------------------------------

Caveats
=======
This package currently provides only the "kernel-ipsec" plugin which operates
in userland via tun(4) devices and uses strongSwan's own IPsec implementation
rather than OpenBSD's kernel IPsec. It is not recommended for production use
on security gateways.

To use this plugin, kernel ESP handling must be disabled:

# sysctl net.inet.esp.enable=0
# sysctl net.inet.esp.udpencap=0

The kernel-pfkey plugin (which interfaces with kernel IPsec) has not yet
been ported to OpenBSD.

Example configuration
---------------------
This is for a client with EAP username/password authentication:

conn vpn.example.net
        left=192.168.58.99
        leftsourceip=%config
        leftauth=eap
        eap_identity=training1
        right=vpn.example.net
        rightauth=pubkey
        rightid=@vpn.example.net
        rightsubnet=192.168.42.0/24
        auto=add

# cat /etc/strongswan/ipsec.secrets
username : EAP "password"

