Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [BUG] invalid config file '/var/etc/ipsec/ipsec.conf'

    Scheduled Pinned Locked Moved IPsec
    2 Posts 1 Posters 2.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MichelZ
      last edited by

      Hi

      After an update to 2.2 from 2.1.5, I get the following when IPSec should start (was working in 2.1.5):

      Jan 24 16:12:39 ipsec_starter[73005]: unable to start strongSwan – fatal errors in config
      Jan 24 16:12:39 ipsec_starter[73005]: invalid config file '/var/etc/ipsec/ipsec.conf'
      Jan 24 16:12:39 ipsec_starter[73005]: /var/etc/ipsec/ipsec.conf:19: syntax error, unexpected EQ [=]
      Jan 24 16:12:39 ipsec_starter[73005]: Starting strongSwan 5.2.1 IPsec [starter]…

      Line 19 of ipsec.conf is:
      leftid = C=CH/ST=Aargau/L=Baden/O=TechFreak/emailAddress=XXX/CN=vpn.example.com

      which is the ASN.1 DN in the VPN Phase 1 Config.

      Any ideas?

      Thanks
      Michel

      1 Reply Last reply Reply Quote 0
      • M
        MichelZ
        last edited by

        I was able to fix this by enclosing the ASN.1 DN values with double quotes (").

        I have added Bug #4275

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.