Configuring IPSec between openwrt router and debian router using strongswan and x509 certificates

Generate a CA

Generate some certificates

Configure Debian

Configure OpenWRT

Routing

Iptables