Back up to the FireBrick IPsec Tunnels Category Page

IPsec OpenBSD

From AAISP Support Site
Revision as of 19:14, 19 November 2021 by Reedy (talk | contribs) (fix lang)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview and requirements

This has been tested using pre-shared keys between a Firebrick FB2700 and OpenBSD 5.7-RELEASE.

We had to add some workarounds to the FireBrick IPsec code to cope with some protocol negotiation issues with OpenBSD's IKEv2 implementation. We are in talks with the OpenBSD developers about which end is doing things correctly, but for the moment you will need a FireBrick with firmware version 1.36.032 or newer for this to work.

In this example, IP addresses are assigned as follows:

  • FireBrick FB2700
  • OpenBSD machine
  • LAN of machines behind FireBrick
  • LAN of machines behind OpenBSD

FireBrick configuration

   <ipsec-ike allow="">
      <connection name="openbsdtest" local-ip="" peer-ips="" graph="openbsd ipsec" 
       routes="" local-ID="" 
       peer-ID="" auth-method="Secret" secret="your PSK here"/>

OpenBSD configuration

/etc/iked.conf :
ikev2 "tofirebrick" active \
        esp \
        from to \
        local peer \
        ikesa group modp2048 \
        srcid dstid \
        psk "your PSK here"