OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • IPSec OPNsense <-> Cisco ASA not working (solution inside)
« previous next »
  • Print
Pages: [1]

Author Topic: IPSec OPNsense <-> Cisco ASA not working (solution inside)  (Read 3707 times)

Kofl

  • Newbie
  • *
  • Posts: 27
  • Karma: 5
    • View Profile
IPSec OPNsense <-> Cisco ASA not working (solution inside)
« on: April 27, 2018, 08:20:48 pm »
Hello,

we had massive issues to get the VPN OPNsense <-> Cisco ASA working. This small article is hopefully helpful for someone else and saving massive headaches :)

OPNsense 18.1 sends by default not only the configured Traffic Selectors for IPSEC Phase2 to the Cisco ASA, but also the public IP addresses, which the ASA will refuse.

So IPSEC initialization only works from the ASA site, but not from the OPNSense site, except you up the tunnel by hand on OPNSense. If its initiated by traffic from the OPNSense site, the phase2 negotiation fails. Strange, but true.

Workaround:
/usr/local/etc/strongswan.conf

Code: [Select]
charon {
..
ignore_acquire_ts=yes
..
}

Quote
If this is disabled the traffic selectors from the kernel's acquire events, which are derived from the triggering packet, are prepended to the traffic selectors from the configuration for IKEv2 connection. By enabling this, such specific traffic selectors will be ignored and only the ones in the config will be sent. This always happens for IKEv1 connections as the protocol only supports one set of traffic selectors per CHILD_SA.

The issue so far seems to be caused by FreeBSD, as other *unix are not affected:
https://wiki.strongswan.org/issues/1313

Thanks for the attention,
Thomas



Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13957
  • Karma: 1210
    • View Profile
Re: IPSec OPNsense <-> Cisco ASA not working (solution inside)
« Reply #1 on: May 02, 2018, 04:06:28 pm »
Hi Thomas,

Thank you for this, I've committed the following to test on the development version:

https://github.com/opnsense/core/commit/9a604aa5bb

The patch can be installed in the release with:

# opnsense-patch 9a604aa5bb


Cheers,
Franco
Logged

Kofl

  • Newbie
  • *
  • Posts: 27
  • Karma: 5
    • View Profile
Re: IPSec OPNsense <-> Cisco ASA not working (solution inside)
« Reply #2 on: May 07, 2018, 09:59:22 am »
Awesome, thanks
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • IPSec OPNsense <-> Cisco ASA not working (solution inside)
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2