pfSense 2.4: Router-on-a-Stick¶
The following guide explains how to install pfSense® software version 2.4 on a single Ethernet port MinnowBoard Turbot and configuring it as a router-on-a-stick.
Requirements:¶
USB stick with pfSense version 2.4 installer. Note, UEFI is supported starting with pfSense version 2.4 onward, earlier pfSense software versions will not boot.
8-16 GB microSD card. This guide will cover installing pfSense on microSD, however using a SATA hard drive or mSATA (via a lure) will also work.
Layer 2 switch configured with two ports using VLANs
10
and20
. Third port configured as trunk.USB to serial adapter (for console output), or use an HDMI cable instead.
Note
MinnowBoard devices have an HDMI output as well as console output via UART pins. This guide uses console output, however it applies to HDMI / monitor output as well.
This guide assumes the switch is configured with the following layout:
VLAN 10 port - used for WAN, connected to upstream modem.
VLAN 20 port - used for LAN, connected to clients.
TRUNK port - connected to MinnowBoard Turbot
Steps:¶
Navigate to the pfSense Software Download Page to download pfSense software.
Choose the AMD64 Memstick USB installer.
Write the downloaded image to a USB memstick (thumb drive).
See also
Visit Writing an OS Installation Image to Flash Media for instructions on creating a USB thumb drive.
Connect the USB serial adapter GND, RXD, TXD pins to the UART.
Warning
If using a USB serial adapter with the power pin plugged in, do not connect the MinnowBoard power supply, it will damage the board.
Plug in the USB drive with pfSense installer to USB 3.0 port on the MinnowBoard.
Insert the microSD card into the microSD slot.
Connect the MinnowBoard ethernet port to the switch port with VLAN 10 and VLAN 20 tags.
Connect WAN to the VLAN 10 tagged switch port and connect LAN to the VLAN 20 tagged switch port.
Power on the unit and press DEL to enter MinnowBoard UEFI setup.
In UEFI setup, select Boot Manager and press Enter.
Select EFI USB Device and press Enter to boot the installer.
Wait for the installer to boot automatically.
When prompted for a terminal type select xterm.
Once the pfSense software installation starts, choose Accept on the Copyright and distribution notice.
Follow the default selections to install pfSense software on the microSD.
On the Welcome screen, select Install to install pfSense software.
On the Keymap Selection screen, choose Continue with the default keymap and press Enter.
On the partitioning screen, keep the default Auto (UFS) Guided Disk Setup selection and press enter.
Wait for installation to complete and choose Reboot.
After pfSense software is installed setup will complete and reboot. Once again press DEL to enter setup and go to Boot Maintenance Manager.
Select Change Boot Order.
Change the order and move EFI Misc Device to list top. Press Enter to save and return to the previous screen.
Select Continue from the main EFI setup screen and wait for pfSense software to boot. From now on, the microSD will boot by default.
At first post-install boot, configure VLANs. Confirm
re0
is listed as a valid interface continue and confirm withY
to set up VLANs.To assign interfaces, first create two VLANs, VLAN 10 (WAN) and VLAN 20 (LAN). Enter
re0
when prompted for a parent interface name.Enter 10 as VLAN tag to add WAN interface.
Enter 20 as VLAN tag to add LAN interface.
Once VLAN 10 and VLAN 20 are created, assign WAN and LAN to previously created VLANs. Assign
re0.10
as WAN andre0.20
as LAN.Review the assigned interfaces, make sure the list matches the screenshot and press Y to continue booting.
pfSense software will complete booting, and if every step was followed correctly, the WAN interface should have an external IP address.
Verify interfaces are correctly assigned by opening a browser and navigating to the default
192.168.1.1
IP address.Under Interfaces > Interface Assignments confirm VLAN 10 on
re0
is assigned as WAN and VLAN 20 onre0
is assigned as LAN.To limit microSD card wear, the best practice is to enable RAM disks. Navigate to System > Advanced > Miscellaneous and select Use RAM Disks.