Skip to main content

pfSense

pfSense Integration CardpfSense Integration Card

The CrowdSec pfSense integration connects CrowdSec's hosted blocklist endpoint to your pfSense firewall. In pfSense, you'll use URL Table (IPs) aliases to create aliases that periodically download and update IP lists from external URLs.

Ensure your pfSense version supports URL Table (IPs) aliases. If unsure, refer to the pfSense documentation or contact pfSense support.

Create a pfSense Integration Endpoint

Step 1 — Create an integration in the CrowdSec Console

In your CrowdSec Console account, navigate to the Blocklist tab in the top menu bar, then select the Integrations sub-menu. Choose the integration type you need, then click Connect.

If you don't have a CrowdSec Console account, sign up here. On mobile, use the menu icon in the top-right corner, tap Blocklist, then Integrations.

CrowdSec Integrations ScreenCrowdSec Integrations Screen

Configure pfSense

  1. Create a URL Table (IPs) alias with a 1-day update frequency. Embed the credentials in the URL using Basic Auth:
https://<username>:<password>@admin.api.crowdsec.net/v1/integrations/<integration_id>/content
  1. Verify the URL alias is resolving correctly.
  2. Create a firewall rule to block IPs matching the alias.

Here is a walkthrough of the full pfSense configuration:

Manage integration size limits with pagination

If you want to learn how to manage integration size limits with pagination, please refer to the Managing integrations size limits with pagination section.

Next Steps

Subscribe to blocklists in the Blocklist Catalog to populate your integration.