Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

Captive Portal w/2FA in Azure

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Captive Portal w/2FA in Azure

L4 Transporter

Hi All -

Hopefully I make this clear.  

 

What I'm looking to do is set up Captive Portal with a push notification in Azure AD.  I can't seem to find any documentation around this, can someone give me the general steps or point me to existing documentation?

 

Thanks in advance. 

1 accepted solution

Accepted Solutions

This should get you pretty close:

Set up GlobalProtect
Add the new captive portal to the portal agent configuration - Network > GlobalProtect > Portals > GP_Portal > Agent
Alias to point to VLAN 961 Example: server.mfa.company.com 10.10.10.10

Set up Azure
Basic SAML Configuration

Example
Identifier (Entity ID) https://server.mfa.company.com:6082/SAML20/SP
Reply URL (Assertion Consumer Service URL) https://server.mfa.company.com:6082/SAML20/SP/ACS
Federation Metadata XML Download

Set up Palo Alto:
SAML Identity Provider
Device > Server Profiles > SAML Identity Provider > Import
Authentication Profile
Device > Authentication Profile > Add
Type = SAML
IDP Server Profile = SAML Identity Provider created above
Username Attribute = username
Advanced Tab > Allow List = all
Authentication
Objects > Authentication > Add
Authentication Method = web-form
Authentication Profile = Authentication Profile created above
Policy
Policies > Authentication > Pre Rules > Add
Action Tab > Authentication Enforcement > Authentication Object created above

 

Let me know if you have any questions.

View solution in original post

25 REPLIES 25

Cyber Elite
Cyber Elite

@RobertShawver 

 

Please read below document.

https://azureadminblog.azurewebsites.net/index.php/2020/06/21/palo-alto-captive-portal-using-azure-a...

 

Regards

 

MP

Help the community: Like helpful comments and mark solutions.

@MP18 I found that one, but there are parts that don't make sense to me.

Like

"Next lets create an authentication profile that will be used in our captive portal, navigate to Objects > Authentication and press “Add”:"

Set the following values and press ok:

Name: Anything you like!
Authentication Method: Browser-challenge (doesn’t really matter here as the request will be redirected to Azure-AD anyway)
Authentication Profile: The Azure-AD authenticaiton profile we setup in the previous section
Message: Leave default- users will not see this anyway.

 

But then I don't see how that ties into anything???

@MP18 It also says:

n our case we want to that to a FQDN that users using an internal DNS server will point to an internal interface on the firewall. For example https://internal.azureadmin.co.uk:6082/SAML20/SP which would resolve to an internal interface on the firewall (such as 192.168.100.1). The port number here is the port the Palo Alto hosts its captive portal service when enabled.

Reply URL (Assertion Consumer Service URL):
This is the URL that Azure will send the user back to after the SAML authentication processs completes, in our case we can use the same URL as the Identifier- for example- https://internal.azureadmin.co.uk:6082/SAML20/SP

 

Use the same reply URL? That doesn't seem right?

Hello,

One thing to remember with Captive portal is that its used only for matching a user to and IP address for mapping. If a use is already known, the portal will not be presented to the user.

https://docs.paloaltonetworks.com/pan-os/7-1/pan-os-admin/user-id/user-id-concepts/user-mapping/capt...

Hope that makes sense.

@RobertShawver 

 

For CP you export the cert from the Azure to PA.

Yes URL for Identity Provider SSO URL it is same as in Azure.

 

Regards

MP

Help the community: Like helpful comments and mark solutions.

L4 Transporter

@MP18 @OtakarKlier 

Here is what I'm hoping will happen.  User crosses from zone to another and is presented with the CP.  User puts in username and password and then gets a push notification to there phone via Microsoft Authenticator.  User clicks "approve" and the CP process completes.  All internal.

 

Currently, I have CP set up so that User crosses from zone to another and is presented with the CP. User puts in username and password and the CP process completes.

 

Is what I'm hoping for possible?  Am I explaining it correctly?

@RobertShawver 

Yes you are sharing correctly.

 

Regards

MP

Help the community: Like helpful comments and mark solutions.

Now the question is how 🙂

@RobertShawver 

 

If you have not done any CP config then you can also check with your SE How to do it?

Are you the one who will do configuration in Azure?

 

Also see this 

https://docs.microsoft.com/en-us/azure/active-directory/saas-apps/paloaltonetworks-captiveportal-tut...

 

 

Regards

MP

Help the community: Like helpful comments and mark solutions.

So the Azure guy set it up, but then made me the owner so I can edit as needed.  I think the part that isn't clicking in my head is right now I have the CP running through GlobalProtect.

 

If I click on Test in Azure, I get the push notification on my phone, I click approve and then browser opens a new tab with the Palo logo on the tab and it says 502 Bad gateway and the URL is https://website:6082/SAML20/SP/ACS

 

The link listed in Network > GlobalProtect > Portals > MY_Portal > Agent is https://website:6082

 

I think this is doable, I just haven't found any good instructions on how to do this.

 

FYI, I really appreciate your time in speaking with me.

@RobertShawver 

 

You use GP for CP when destination port is not 443.

We use the CP for any traffic on port 3389.

MP

Help the community: Like helpful comments and mark solutions.

Apologies, but I don't know how that helps me.

Hello,

While i do not know if this is possible, I do find it intriguing. I know the captive portal page can be modified, not sure if to the extent of what you are looking for however. Perhaps an SSO or SAML solution would work if you already have one?

 

Just throwing out ideas.

 

Regards,

L1 Bithead

@RobertShawver Did you ever get success with this?  I am trying to set this up as well.

  • 1 accepted solution
  • 12844 Views
  • 25 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!