How to Set Up a pfSense Firewall: Wizard Defaults, the PHP Patch Check, VLANs and WireGuard

Setting up pfSense comes down to one order of operations: write the amd64 memstick image to a USB stick, boot a machine that meets Netgate’s stated floor of a 64-bit CPU, 1 GB of RAM and an 8 GB disk, log in at 192.168.1.1 with admin / pfsense, and run the Setup Wizard, keeping most of its defaults. Then apply the updated packages from Netgate’s October 21, 2026 PHP update before the box carries real traffic, and add VLANs and WireGuard. This page is dated 2026-11-13 and follows Netgate’s documentation as it reads on that date. It replaces the old hardware table, which gave a dual-core 1.5 GHz CPU and 2 GB of RAM as the minimum, with Netgate’s own figures, and it puts the steps that can lock you out ahead of the ones that trigger them.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

Netgate’s floor is a 64-bit CPU, 1 GB of RAM and an 8 GB disk

Netgate’s minimum-requirements page, read on 2026-11-13, sets the floor below for hardware that Netgate does not sell. The previous edition of this page gave a dual-core 1.5 GHz CPU, 2 GB of RAM and two gigabit ports as the minimum. None of those is a Netgate figure, so the table replaces them.

ItemNetgate’s stated minimum
CPU64-bit amd64 (x86-64) compatible
RAM1 GB or more
Disk8 GB or larger (SSD, HDD, etc.)
NetworkOne or more compatible network interface cards

Netgate’s floor says one or more network cards, but a firewall that routes between your LAN and the internet needs one port for each side, which we treat as our own practical minimum (that is our reasoning, not a Netgate figure). The VLANs later on this page travel as tagged traffic on the LAN port and need no extra ports.

Take the installer from the official pfSense download page and choose the amd64 build, which the page says to use on any 64-bit capable CPU. The USB memstick is, in the page’s words, “the preferred means of running pfSense software”, and it overwrites the entire drive: dual booting with another OS is not supported.

Netgate’s versions page lists pfSense Plus 26.07 and CE 2.9.0 as the latest releases, with Plus 26.03.1 and CE 2.8.1 also supported. All four are covered by the October 21, 2026 PHP update described below, so after the first boot you compare the version you got with that list. For how pfSense stacks up against its fork, see our pfSense and OPNsense comparison.

Save the script below as write-stick.sh and run it as ./write-stick.sh IMAGE.img.gz /dev/sdX. It stops on any error, prints the image hash so you can compare it with the checksum you hold for the download, lists the target device, and writes only after you type yes.

#!/usr/bin/env bash
set -euo pipefail

IMG="$1"   # the compressed memstick image you downloaded
DEV="$2"   # the USB stick, for example /dev/sdX

sha256sum "$IMG"
lsblk -o NAME,SIZE,MODEL,TRAN "$DEV"
read -r -p "Erase $DEV and write $IMG to it? Type yes: " ok
[ "$ok" = yes ]

gunzip -c "$IMG" | sudo dd of="$DEV" bs=4M status=progress conv=fsync

Run lsblk (or diskutil list on macOS) yourself immediately before the script and check that the size matches the stick. dd will overwrite a laptop’s internal drive just as readily if the device path is wrong.

First boot at 192.168.1.1: settle a subnet clash before the WAN cable goes in

Boot the target machine from the stick and follow the installer, remembering that it erases the whole drive.

According to Netgate’s configuration overview, a new installation gets the LAN address 192.168.1.1 with a /24 mask and a DHCP server already running, so a laptop plugged into the LAN port is handed an address automatically. The GUI listens on HTTPS and redirects plain HTTP to it, and Netgate’s default-credentials page gives the login as admin / pfsense with a warning to change the password as soon as possible.

The one trap before the wizard is addressing. Netgate states that if the default LAN subnet conflicts with the WAN subnet, “the LAN subnet must be changed before connecting it to the rest of the network.” If your upstream router also hands out 192.168.1.x, that applies to you. The change is made from the console with menu option 2, which asks for the new LAN address, the mask and whether to run DHCP, and the console can be a screen and keyboard, a serial line, or SSH from another interface. The cabling order below is our reading of that rule:

  1. Leave the WAN uplink unplugged, connect the laptop to the LAN port and confirm it received an address.
  2. If the upstream network uses 192.168.1.x, run option 2 now and move the LAN to a different subnet, then renew the laptop’s address.
  3. Only then plug in the WAN uplink.

The Setup Wizard, field by field

Browse to https://192.168.1.1. Per Netgate, “the first time a user logs into the pfSense software GUI, the firewall presents the Setup Wizard automatically.” The wizard is optional, and clicking the logo at the top left exits it at any point. The options it shares with System > General Setup can be changed there afterwards, and pfSense’s own getting-started page says there is “no need to use the command line for anything”.

Wizard fieldWhat to enterDocumented reason
HostnameA name that starts with a letter and uses only letters, numbers or hyphensNetgate’s naming rule for this field
DomainYour own domain, or something.home.arpa if the network has noneNetgate recommends a home.arpa name for networks without a domain
Primary and secondary DNSLeave blankThe DNS Resolver is active in resolver mode by default, so it talks to root and authoritative servers directly and needs no forwarders
Time server hostnameLeave 2.pfsense.pool.ntp.orgNetgate calls the default best practice unless you need a specific source, such as one on the LAN
TimezoneA named city or region zone, not a GMT +/- zoneNetgate says GMT +/- zones do not operate intuitively; a changed zone needs a reboot to take full effect
WAN type: DHCPChoose this unless your ISP tells you otherwiseIt is the wizard’s default because it is the most common, and usually works with no further configuration
WAN type: StaticIP address, mask and upstream gatewayThe address and the gateway must be in the same subnet
WAN type: PPPoEYour ISP login; leave Dial on Demand unticked if you host public servicesA hosting firewall needs the connection kept online as much as possible
WAN type: PPTPOnly if your ISP itself requires a PPTP loginThe option is for ISP logins, not for connecting to a remote PPTP VPN
MAC addressLeave the original hardware addressSpoofing is for when it is absolutely necessary, and never on a firewall that may join a High Availability cluster
Block RFC 1918 Private NetworksTick it when the WAN faces the internet; untick it if the WAN sits behind another router on a private network (our inference)It blocks connections sourced from private ranges such as 192.168.x.x and 10.x.x.x that try to enter the WAN
Block Bogon NetworksTick itIt blocks traffic sourced from reserved or unassigned address space, and the list updates in the background with no manual upkeep
LAN IP addressKeep 192.168.1.1/24 unless the previous section told you to change itNetgate’s default; a LAN/WAN clash must be fixed before the rest of the network is connected
Admin passwordA new, long, unique passwordNetgate warns to change the factory admin / pfsense login as soon as possible

The RFC 1918 row is the one that catches people who replace an ISP router with pfSense in a double-router layout: if the box’s WAN address is private, traffic from the upstream device is sourced from a private range, which is why we suggest unticking the option there.

Patching before the box faces the internet: the PHP version each release should show

Netgate’s Critical PHP Security Update, published October 21, 2026, covers CVE-2026-109618 and CVE-2026-109619 and ships updated PHP packages for pfSense Plus 26.07 and 26.03.1 and for CE 2.9.0 and 2.8.1. After the packages are applied, Netgate says the first three “should now have PHP 8.5.12” and CE 2.8.1 should have PHP 8.3.36.

ReleasePHP version Netgate lists after the update
pfSense Plus 26.078.5.12
pfSense Plus 26.03.18.5.12
pfSense CE 2.9.08.5.12
pfSense CE 2.8.18.3.36

Our ordering is to do this straight after the wizard, once the WAN is up and before you add rules, VLANs or a VPN, because nothing you build afterwards is worth much on an unpatched web interface. Apply the updated packages for your release from Netgate’s post, then check the result against the table above.

An address plan and rule order for LAN, IoT and Guest

The old page also listed a WAN rule dropping private-range sources, which the wizard’s Block RFC 1918 option already does, so it is no longer a separate step. The plan below gives each network its own non-overlapping subnet, and the rule table after it is our own design.

NetworkVLAN tagInterface addressDHCP range (example)Use
LANUntagged192.168.1.1/24Wizard defaultWorkstations, printers
IoT20192.168.20.1/24192.168.20.100 to 192.168.20.199Cameras, smart plugs
Guest30192.168.30.1/24192.168.30.100 to 192.168.30.199Visitor Wi-Fi
WireGuardNone10.10.10.1/24None (fixed peer addresses)Remote access

The steps follow Netgate’s VLAN configuration page:

  1. Go to Interfaces > Assignments, open the VLANs tab and click Add. Choose the LAN network card as the parent, enter the tag (20 for IoT), add a description and save. Repeat with tag 30 for Guest.
  2. Back on Interfaces > Assignments, add each new VLAN as an interface, open it, tick Enable, set a static IPv4 address from the table and save.
  3. Under Services > DHCP Server, enable DHCP on each VLAN interface with the range from the table.
  4. On the managed switch, configure the port that faces pfSense as an 802.1Q trunk carrying VLANs 20 and 30, with the LAN traffic untagged.
  5. Add the rules below to each VLAN interface, in this order.
InterfacePositionActionProtocolSourceDestinationPurpose
IoT1BlockTCP 443 and 80IoT netThis FirewallKeep IoT devices off the firewall’s web interface
IoT2BlockAnyIoT netLAN netNo path from cameras to workstations
IoT3BlockAnyIoT netGuest netNo path between the two VLANs
IoT4PassAnyIoT netAnyInternet access for IoT
Guest1PassTCP/UDP 53Guest netGuest addressLet guests resolve names through the firewall
Guest2BlockAnyGuest netThis FirewallNothing else on the firewall itself
Guest3BlockAnyGuest netLAN netNo path to workstations
Guest4BlockAnyGuest netIoT netNo path to IoT devices
Guest5PassTCP 80 and 443Guest netAnyWeb-only internet access

The two rows that go beyond the old page (blocks to This Firewall, and the DNS pass for Guest) are our additions: without them a web-only Guest rule would also let guests open the firewall’s own GUI on port 443, and would stop their DNS lookups, which go to the firewall on port 53. Always fill in the description field on each rule.

Test the isolation by connecting a device to the IoT port on the switch and pinging a host on the main LAN, which should time out, while a page on the internet still loads. If a VLAN has no internet at all, check Firewall > NAT > Outbound: when it is in Manual or Hybrid mode, the VLAN subnet needs its own outbound rule.

WireGuard for remote access: tunnel, peers, interface and two rules

Netgate’s WireGuard rules page says a rule on the WAN must pass the tunnel’s listen port if remote peers will initiate connections to the firewall, that the protocol is always UDP, and that the default port is 51820.

  1. Go to VPN > WireGuard > Settings and enable WireGuard.
  2. On the Tunnels tab, add a tunnel and keep the listen port at 51820 unless it clashes with something.
  3. Add one peer per device, with that device’s public key. Give each peer one address from the tunnel network, such as 10.10.10.2/32 as its allowed IP.
  4. Under Interfaces > Assignments, assign the WireGuard tunnel as an interface, enable it and give it 10.10.10.1/24.
  5. Add a WAN rule that passes UDP to port 51820.
  6. Add rules on the WireGuard interface that pass only the LAN resources remote users should reach.

Test from outside your network and ping an internal host. A completed handshake with no traffic points at the interface rules in step 6, a missing handshake at the WAN rule in step 5 or at a public key or endpoint that does not match the client’s configuration character for character.

Before go-live: the hardening checks and what each failure looks like

Netgate’s admin access page says the GUI uses HTTPS on port 443 with a redirect from port 80, so do not add any WAN rule that exposes the GUI (that precaution is our own, not Netgate’s wording).

SymptomLikely causeFix
Conflicts between the laptop’s network and the firewall’s LANThe upstream network also uses 192.168.1.xUnplug the WAN uplink, run console option 2 and move the LAN to another subnet
No internet after the wizardThe WAN type does not match what the ISP providesRerun the wizard’s WAN screen with the type your ISP specifies (Static needs the address and gateway in the same subnet). Spoof the MAC address only when absolutely necessary
VLAN device can reach the LANThe VLAN’s rules do not match the rule table above, or a broader rule sits above the blocksCompare the interface’s rules with the table, in order
VLAN devices have no internetOutbound NAT is in Manual or Hybrid mode without a rule for the VLAN subnet, or the VLAN interface is not enabledAdd the outbound rule under Firewall > NAT > Outbound, and check the interface is enabled with its address
New connections are dropped while CPU and RAM look normalThe state table has reached its maximumRaise Firewall Maximum States under System > Advanced, on the Firewall & NAT tab. Netgate’s firewall fundamentals page says the limit can be increased as long as it does not exceed the available RAM in the firewall
WireGuard peer will not connectThe WAN rule for UDP 51820 is missing, or the endpoint or keys differ from the client’sConfirm the WAN rule and compare the public keys and endpoint on both sides exactly
  • The release matches a row of the PHP table, and the version after the update is the one you meant to run.
  • The factory admin / pfsense login is gone and the new password is stored somewhere safe.
  • No WAN rule points at the GUI.
  • The IoT ping to the LAN fails while IoT internet access works, and Guest cannot reach either internal network.
  • A WireGuard handshake completes from outside your network.
Marcus Chen

Marcus Chen

PC hardware, storage and engineering

Marcus Chen covers PC hardware, storage and engineering for Tech Insider: processors, graphics cards, SSDs and hard drives, home servers and backup, and the engineering choices behind them. He builds comparisons from manufacturers' specifications, published independent test results and Tech Insider's own calculations, and writes plainly about what the evidence supports.

View all articles