Palo Alto Networks (PAN-OS)
Connect your PAN-OS firewall to Hotspotly over an IPsec IKEv2 tunnel and point the Authentication Portal to the Hotspotly login page.
This guide connects a Palo Alto Networks firewall running PAN-OS 10.1–11.x (PA-400 series, VM-Series and similar) to Hotspotly. The firewall connects to Hotspotly over an IPsec IKEv2 tunnel; RADIUS and syslog travel through this tunnel. The guest lands on the PAN-OS Authentication Portal, the comfort page Hotspotly provides sends them to the Hotspotly login page, and after sign-in the form goes to the firewall's own login page (port 6082).
In short
My Devices → Add Device → Palo Alto Networks (PAN-OS) →
Generate configuration. Paste the set commands and commit, run
set authentication radius-vsa-on client-source-ip yes in operational mode, and confirm the
tunnel. Then import the comfort page from the Palo Alto card on the device page and turn on access
logging by syslog.
Prerequisites
| You need | Details |
|---|---|
| PAN-OS | The commands the panel generates follow the PAN-OS 10.1–11.x CLI reference. A single virtual system (vsys1) and management outside Panorama are assumed. |
| Admin access | An administrator who can run configuration and operational mode commands in the CLI and commit. |
| Outbound internet | The firewall must reach UDP 500 and UDP 4500 outbound. |
| IPsec connectivity | The IPsec IKEv2 connection method must be enabled on the server. If the Add Device wizard shows Not enabled on the server next to Palo Alto, it is not enabled yet: contact support. |
| DHCP server of the guest network | The firewall must hand out DHCP on the guest network. PAN-OS does not pass the client MAC address to the portal; Hotspotly reads it from the firewall's DHCP lease log. The DHCP lease time must be 24 hours at most. |
| Optional: XML API key | A PAN-OS API key, to install the HTTPS login certificate automatically. The key's role needs Device > Certificate Management and Commit permission. |
1. Add the firewall with IPsec
- On the My Devices page, click Add Device and choose Palo Alto Networks (PAN-OS) from the brand list.
- Device type already shows Palo Alto Networks (PAN-OS). For Authentication choose Pre-shared key (PSK). If certificate mode is enabled on your account, Certificate (organisation CA) can be used too.
- Click Generate configuration. The wizard shows paste-ready PAN-OS
setcommands.
The commands contain secrets
The snippet holds a pre-shared key and a RADIUS secret unique to this device; they are shown only inside the setup wizard; while setup is unfinished you can show them again with Show configuration again. Do not share them.
What the snippet does:
| Section | On PAN-OS |
|---|---|
| IKE / IPsec crypto profiles | hotspotly-ike and hotspotly-ipsec (IKE: AES-256-GCM / AES-256-CBC, SHA-384 / SHA-256, DH 20 / 14, 8 h; IPsec: AES-256-GCM / AES-256-CBC, SHA-256, DH 20, 1 h). |
| Tunnel | The tunnel.10 interface (device tunnel address /32), the hotspotly zone, the IKEv2 gateway hotspotly-hub, a /32 ↔ /32 proxy-id only, tunnel monitoring and a static route to the server. |
| Service route | The tunnel interface as the source of RADIUS and syslog traffic. |
| RADIUS server profile | The hotspotly profile (PAP, port 1812, server tunnel address). |
| Syslog | The hotspotly syslog profile (UDP 514) and forwarding of DHCP (subtype eq dhcp) and User-ID logs. |
The snippet uses ethernet1/1 as the WAN interface and default as the virtual router. Change
them before pasting if yours differ. The snippet consists only of set lines; paste it in
configuration mode (configure).
2. Commit and the required operational command
- Run
commitin configuration mode. - Return to operational mode and run this command:
This command is required
Hotspotly binds every guest login to the guest's IP address and expects PAN-OS to send that IP in the RADIUS request. Without this command every guest login is rejected.
If you chose certificate mode, also: generate a CSR named "hotspotly" on the firewall and paste it
into the wizard, import the returned certificate and add the hub CA to the hotspotly-hub-ca
certificate profile.
3. Check the tunnel and finish
In the wizard, continue with Next and click Check tunnel. When The tunnel is up. appears, fill in Device Name and click Done.
4. Hotspot and redirect host
On the Hotspots page, create a hotspot with Add Hotspot and choose the
firewall as Device. The Gateway field is required: enter the IP
address of the guest interface. This address is the redirect host of the PAN-OS Authentication
Portal; the login form goes only to https://<this IP>:6082/php/uid.php.
5. Authentication Portal and comfort page
The Palo Alto Networks (PAN-OS) card on the device page shows, for each hotspot, the Redirect host, the Authentication Portal port (6082), the Hotspotly portal address and the Authentication Portal Comfort Page HTML.
On PAN-OS, do the following in order (the panel's external portal guide shows the same order):
| Step | Where the panel points | What to do |
|---|---|---|
| RADIUS server profile | Device > Server Profiles > RADIUS | In the hotspotly profile created by the snippet, turn on Retrieve user group from RADIUS. |
| Authentication profile | Device > Authentication Profile | Create a RADIUS-type profile that uses the hotspotly server profile. |
| Authentication Portal | Device > User Identification > Authentication Portal | Enable the portal in Redirect mode with this profile; the redirect host is the guest interface IP (the Gateway value of the hotspot). |
| Comfort page | Device > Response Pages > Authentication Portal Comfort Page | Copy the HTML on the card with Copy, save it to a file and use Import. |
| Authentication policy | Policies > Authentication | Add a rule with the web-form action for the guest zone. |
| Pre-login access | Policies > Authentication / Security | Allow unauthenticated access to the portal address and the addresses of the login methods enabled on the hotspot. |
| Speed groups | Policies > QoS | Bandwidth profiles arrive as PaloAlto-User-Group (hs-rate-<down>-<up>, or hotspotly-nolimit): add a QoS policy rule per group. |
The menu paths are the PAN-OS paths the panel shows; their names can differ by version. Find the setting by its function.
One comfort page per firewall
A firewall has a single comfort page. If the device has more than one hotspot, the card asks you to pick one; guests go to the portal of the hotspot whose page you imported.
6. Turn on syslog and access logging
Hotspotly reads the guest MAC address from the firewall's DHCP lease log. This step is therefore required:
- In the Syslog and access logging card on the device page, choose Write to the access log store for Access logging.
- Apply the Block guest access to the collector rule the card shows on the firewall and tick the confirmation box.
- Click Save. When a guest gets a DHCP address, the Last message line on the card should update.
HTTPS login certificate
The guest form goes to the firewall's own login page (port 6082). Hotspotly installs a valid certificate automatically for this page through the PAN-OS XML API:
- In the Connection settings card on the device page, choose Palo Alto PAN-OS (XML API) as Connection profile and enter the API key in API key / password. The target is the tunnel address.
- Click Test connection. Once the test passes, the Automatic setup card runs on its own.
Hotspotly imports the certificate, creates an SSL/TLS service profile named hotspotly-portal,
switches the Authentication Portal redirect host to a device-specific host name and runs
commit. Renewal is automatic; if it fails, the previous redirect host is restored. If the card
shows HTTPS is off: login works with http-chap, the HTTPS feature is not enabled on your account; contact
support. Without an API key, login keeps using the firewall's current certificate.
Test with a guest device
- Connect a phone to the guest network; it should get a DHCP address from the firewall.
- Open a web page. The comfort page should send the browser to the Hotspotly login page.
- Sign in with a login method. The form goes to the firewall's login page and internet access opens.
Session, speed and disconnect behaviour
| Topic | On Palo Alto |
|---|---|
| Accounting | No. PAN-OS does not send RADIUS accounting. The access log record is built from DHCP lease events, sign-in records and User-ID logs. |
| Session disconnect (CoA) | No. Session length follows the Authentication Portal timer. Data quota and time limits cannot be enforced by Hotspotly during a session. |
| Speed limit | The bandwidth profile is sent in PaloAlto-User-Group as a hs-rate-<down>-<up> group (hotspotly-nolimit for a profile without a speed). You write a QoS policy rule for each group. |
| Credential binding | A guest login is bound to the guest's IP address, not the MAC address (PAN-OS does not send the MAC). |
| Blocklist | A blocked guest cannot sign in again; an open session lasts until the Authentication Portal timer ends. |
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| The wizard shows Not enabled on the server next to Palo Alto | The IPsec connection method is not enabled on the server yet; Palo Alto can only be added with IPsec. | Contact support. |
| The tunnel is not up yet. | No commit was made, the WAN interface / virtual router name is wrong, or outbound UDP 500/4500 is closed. | Fix the names and commit; allow the outbound traffic. |
| Every login is rejected | radius-vsa-on client-source-ip is not enabled. |
Run the operational command. |
| The guest sees an error instead of the portal | Hotspotly found no DHCP lease record for the guest IP in the last 24 hours. | Check that the firewall is the DHCP server, that access logging by syslog is on and that the lease time does not exceed 24 hours; reconnect the phone's Wi-Fi. |
| The card shows Enter the guest interface IP (redirect host) as the hotspot gateway; otherwise guests cannot sign in. | The hotspot gateway is empty. | Follow Hotspot and redirect host. |
| The card shows Add a hotspot to this device first. | No hotspot is linked to the device. | Create a hotspot. |
| The speed limit is not applied | Group retrieval is off in the RADIUS profile, or there is no QoS rule. | Turn on Retrieve user group from RADIUS; write a QoS rule per group. |
Known limits
- The comfort page is one for the whole firewall (one hotspot).
- The address the guest first asked for (
<url/>) is deliberately not used; after sign-in the guest sees the Hotspotly success page. - Without accounting and CoA, quotas and mid-session disconnects cannot be enforced.
- A guest that keeps a DHCP lease longer than 24 hours may not be able to sign in until it gets a new lease.
- Panorama-managed and multi-vsys setups are out of scope.