PFSense crashing I think because reasons

  • Edit, derp, figured out getting into the boot loader.

So to the main question, do you guys think the sudden un-reliability of my PFsense box (would freeze up and I would have to long press power to reboot) could be due to a) very old Samsung SSD and b) trim was not enabled?

A disk that’s dying could be the problem, TRIM shouldn’t really matter. If you have another disk you can test that, otherwise I’d suggest backing up the config and doing a fresh install, often that’s enough to sort out any stability issues.

2 Likes

Bummer, I guess good practice as I’ve never backed up the config and reloaded it.

Most of the time it’s a smooth process

1 Like

I hear 60% of the time, it works every time.

To make it smoother write down your physical interface names and their corresponding interfaces. Ie igb0 = wan igb1 = lan etc. You just want to be able to access the web interface once you’ve installed it then you can just skip the setup and reload the config.

The only times I’ve had any real trouble getting it to work is if you have a complicated interface setup and for some reason the physical interface names change when you reinstall, that can make it tricky, but in that case you can just edit the xml file to manually set the new interface names.

1 Like

I like to live dangerously (see here: stupidly), I haven’t backed up the config yet, but enabled trim and updated to 2.4.0. Will see how this goes haha.

They released 2.4.1 which fixed some instabilities. I noticed 2.4.0 would fail on me after a couple of weeks.

Just an update as I started to get off my butt, did an assortment of:

  • installed updates
  • swapped SDD to spare laptop HDD spinning rust (keeping old config)
  • turned off pfblocker and snort

Still randomly crashes where the box stays powered up, but if I plug in a monitor its a weird green ‘white snow’ like output, like many matrix movies green gibberish layered over each other so the screen is almost all green but pixels changing here and there.

So next in line:

  • the power supply brick that came with the box is janky (really light weight)- rated at 12v 3amps and I bet it doesn’t even supply 3A reliably, so I have a higher quality 5amp on the way.
  • will make a linux live USB to boot into and run a memory test in case its the stick of RAM

Dexter_Kane, you changed your pic haha

1 Like

I don’t know what to make of my observations, but the most recent seems to be pfblockerng + pi-hole addblocker lists + Hulu = load and possibly old power supply limit.

I have a monitor connected to the pfsense box directly so while chilling watching TV I see a stream of logs next to it (option 10). As Hulu gets towards adds the logs blow up, go crazy and the TV hangs/can’t get adds to play- and the pfsense box CPU starts to get loaded. The box didn’t crash but I’m running it on the new power supply.

I’m thinking the old power supply plus the added load of pfbockerng and/or snort freaking out would then run the power supply hard and eventually the RAM would have it’s fault.

Strangely I’ve had crashes on the new power supply yesterday, but I didn’t have long power off times betweent shenanigans so maybe a really good power drain was needed to properly test the new power supply?

Right now I have to keep snort and pfblocker in an IDS like mode and not actively blocking.

pfblocker should not be creating a CPU load, all it does is convert a list of IPs to a firewall rule. Blocking or passing traffic through the firewall will be the same CPU load either way. If you’re seeing loads of stuff on the screen then something is wrong. What do you logs say?

Snort can use a fair bit of CPU and RAM, and will still do so when not in blocking mode. So if you’re seeing a problem when you block stuff but not when you don’t then I don’t think it’s an issue of the system being pushed too hard.

I get some “syncing firewall” “reloading filter” and a “started cron job” around the time I loose internat (but still have connectivity with the pfsense box and stuff on my NAT, so one step better than total freeze up).

The googles says I have a bad rule somewhere.

Try setting your pfblocker lists to alias only. (under ipv4 settings, edit an alias and under list type choose alias deny).

Now pfblocker won’t try to make any firewall rules. Instead make your own block rule and use the pfblocker alias as the destination address for the rule (or source if you make a wan rule)

Should I be seeing any pfblocker firewall rules in the rules section?

No, if you set it to alias only then it doesn’t generate any rules, so you can make them manually. Sometimes the pfbloker rules can mess stuff up so I always prefer to do it manually.

maybe some other issue is going on because I’m not seeing any rules generated from pfblocker but I’m getting A LOT of filterlog entries of things being blocked.

Should I just remove pfblocker and re-install?

IMG_20171209_201039

This happened again

I think I need to scorch earth and start over- disabled a firewall rule that looked like everything wan allowed to lan, did some other odds and ends and now pfblocker rules are showing up in floating, when floating used to always be empty.

I don’t think this is a problem with pfblocker, it’s probably the system itself. I’d do a fresh install but it could be a hardware probelm.

I’ve been meaning to boot memtest86.

Now I’m wondering why the heck I had a wan to lan anything rule, and was that letting all kinds of crud in?