Netgate SG-3100 can run out of memory when updating Suricata or pfBlocker-NG rules. This can cause pfSense to hang until the kernel kills the offending process.
- Add this line to the file /etc/fstab
md99 none swap sw,file=/swapfile.bin 0 0
- Create a blank file of size 1 GB:
dd if=/dev/zero of=/swapfile.bin bs=4096 count=262144
- Enable swap (or just reboot as a test):
swapon -a
- Verify swap is enabled:
swapinfo
Set "Outgoing Network Interfaces" to "LAN"
The problem ist that unbound will by default send all replies out on all interfaces. We set the outbound interface to the LAN interface (while still listening on ALL). This routes the domain-overrides through the Tunnels and all others out the WAN interface.
On the pfSense server:
- Navigate to VPN -> OpenVPN -> Client Export
- Scroll down to the "OpenVPN Clients" section
- Click on the following button to download an *.ovpn file: Inline Configurations -> Most Clients
On the client Linux device:
- Click on the nm-applet icon in the application tray
- Navigate to VPN Connections -> Configure VPN
- In the "Choose a Connection Type" prompt, select "Import a saved VPN configuration..."
- Select the previously exported *.ovpn file
- Connect via serial console
- Press SPACE key during kernel boot to drop to
loader>
prompt - Run
boot -s
to boot into single user mode - Run
/sbin/fsck_ufs -fy /
multiple times until the root partition reports as "clean" - Run
reboot