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

    Ipsec 2FA

    Scheduled Pinned Locked Moved IPsec
    4 Posts 2 Posters 451 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.
    • J
      jeffsmith82
      last edited by

      I'm trying to work out if it is possible to configure IPSec to use some form of 2FA.

      I keep coming across this guide https://www.netgate.com/blog/freeradius-on-pfsense-for-2fa but this only works for Openvpn. Have configured free radius so it authenticates the users created there and works perfectly with google authenticator in the Diagnostics / Authentication checker page.

      I have tried setting up IPSec so it uses EAP-RADIUS as the authentication method but it fails authentication. Am i just out of luck here or is there a way to make this work ?

      Is there any other way of getting 2FA on IPSec.

      keyserK 1 Reply Last reply Reply Quote 0
      • keyserK
        keyser Rebel Alliance @jeffsmith82
        last edited by

        @jeffsmith82 I don’t think you can do OTP generally with IPsec as that requires second channel auth in both whatever Mobile IPsec client you are using, and integration i pfSense IPsec. I think pfSense IPSec has some provisions for it, but I never reda about anyone configuring and using it.

        I do lots of 2FA with pfSense Mobile IPsec, but thats using Microsofts Azure MFA plugin for a Microsoft Radius server that authenticates the mobile users (requireing an “approve” in the microsoft authenticator app by users, before Radius says “approved to pfSense)

        Love the no fuss of using the official appliances :-)

        J 1 Reply Last reply Reply Quote 0
        • J
          jeffsmith82 @keyser
          last edited by

          @keyser Is there a guide to set that up ? sounds like the sort of thing i'm after.

          keyserK 1 Reply Last reply Reply Quote 0
          • keyserK
            keyser Rebel Alliance @jeffsmith82
            last edited by

            @jeffsmith82 It requires nothing special. You just setup Mobile IPsec in pfSense pr. Any available guide - with authentication using Radius.
            On the Radius you install the Azure MFA plugin and register that for MFA authentication in the wanted Azure AD tennant. The two things work completely independant of each other - the trick is that Radius will only complete the authencation when the user has approved in their authenticator app.
            The only “non-standard” setup in pfSense is that you will need to configure the Mobile Radius auth part with a long timeout as it usually takes a little while for users to get the notification and login/approve on their phone.

            Love the no fuss of using the official appliances :-)

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