pfSense Setup

Allow Hostnames and Configure Log Settings

This section explains how to allow specific hostnames in Captive Portal and configure both local and remote logging options for WiZone.

Step 1 – Allow Hostnames (Captive Portal Whitelist)

After configuring the Captive Portal Zone, you can optionally allow specific hostnames and set up system logging to monitor authentication and network events.
  1. Go to Services → Captive Portal → Zone Name → Allowed Hostnames.
  2. Add the required hostnames using the following fields:
FieldExample / ValueDescription
DirectionBothAllow both inbound and outbound connections
Hostnamedev.wizone.ioHost accessible through the captive portal
Description(optional)Administrative reference only
Bandwidth Up/Down(optional)Set limits in Kbit/s if required

Important:
Add critical domains like:

  • challenges.cloudflare.com → Required for Cloudflare SSL certificate validation
  • dev.wizone.io → Your captive portal HTTPS domain


Step 2 – Configure General Logging Options

  1. Go to Status → System Logs → Settings.
  2. Configure as follows:
FieldSettingDescription
Log Message Formatsyslog (RFC 5424)Standardized syslog timestamp format
GUI Log Entries500Number of logs displayed in GUI
Forward/Reverse Display(check the box)Show newest entries on top
Web Server Log(check the box)Log web server errors (includes captive portal)
Raw Logs(check the box)View unformatted log data
Generate Log Changes(check the box)Log configuration changes automatically
Reset Log FilesResetClears existing logs if required


Step 3 – Configure Remote Logging Options

FieldExample / ValueDescription
Enable Remote Logging(check the box)Send logs to a remote syslog server
Source AddressDefault (any)Bind to any IP type (IPv4/IPv6)
IP ProtocolIPv4Select protocol used for syslog communication
Remote Log Server10.1.10.8:5140IP and port of remote syslog receiver
Remote Syslog ContentsFirewall, DHCP, Captive Portal, VPNSelect which logs to send remotely

Tip : Captive Portal logs can be forwarded to your centralized WiZone monitoring server for better visibility and auditing.