Intro:
Here's a quick way to remove/purge all expired DHCP leases from pfSense if you don't feel like waiting until pfSense reclaims them.
This is also super helpful if an IP address is mistakenly assigned to the wrong MAC via DHCP and you then need to assign it as static to a different MAC. If you're making quick changes to the DHCP server you'll find a use for this.
Fix:
- Log into your pfSense box.
- Top right, click on "Diagnostics" ➡ "Edit File".
- Load "/var/dhcpd/var/db/dhcpd.leases".
- Select the blocks that you need to remove. Each block of data begins with the word "leases" and ends with a curly brace, "}".
- When done editing the file directly click on "Save" near the top left of the edit box.
Extras:
IPv6:
- dhcpd6.leases
- dhcpd6.leases~
- dhcpd.leases
- dhcpd.leases~
Need assistance hardening your network perimeter, orchestrating Hyper-V clusters, deploying SentinelOne EDR, or configuring multi-tenant Microsoft 365 environments? Pat's IT Solutions, LLC provides enterprise-grade co-managed IT, 24/7/365 monitoring, and weekend SLAs for commercial organizations across New Jersey.

No comments:
Post a Comment