Opinions about possibly overkill setup (Qotom i5 + 8GB + 500GB ssd)
-
Thanks to everybody (and to jgiannakas in particular) for the supremely complete explanations in talking me out of squid.
Guess I'll go for a small and reliable ssd (any advice is welcome, by the way any reason to pick SATA 2.5" over msata? I guess re-usability and being able to choose a 2-bit MLC samsung 850pro…)
I see the qotom i5 broadwell (Q355G4) sometimes on amazon and other shops is pictured in two different shapes? Sometimes this broader one:
And sometimes in the narrower case like for the J1900 model.
I assume those are errors and the right format is the one above.The only thing I'm left wondering is why in 2017 this product is based on Broadwell 15W and not Kaby Lake 15W….maybe Broadwell chips are "leftovers" and this helps driving the price down? If that's the reason I'm ok with that...with 4 intel NICs, quality heatsink-case and the like it wouldn't be fair to compare it price-wise to cheap kabylake/apollolake boxes (aimed at HTPC) you can find these days...still...an Apollo Lake QOTOM would be interesting... (Apollo Lake is the first "Atom" with AES-NI)
-
(Apollo Lake is the first "Atom" with AES-NI)
That's not true. The J1900/Baytrail series was actually a stripped down implementation of the silvermont architecture (that is, the same architecture as the avoton/rangely atoms) which was distinguished largely by intel turning off the AES-NI functionality (presumably to segment the market). For airmont, they turned AES-NI back on in braswell, so the N3050/N3150/N3700 chips do have AES-NI and are basically J1900s with slightly more functionality. I have no idea why qotom never bothered to switch to braswell parts in the past 2 years. Apollo Lake is based on the new goldmont core, and also supports AES-NI. What's new is that it's a more efficient implementation (faster) and it adds RDSEED and SHA offloading instructions. I'd like to think qotom will eventually move to apollo lake across the board, it might take a while (both for cost reasons and because intel seems to just not be producing many of them).
-
I guess I'll have to invest in internal 10gbit nics sooner than expected then, to make squid worth while again. though in the mean time, i won't even be on gigabit wan speeds for a year or so.
-
(Apollo Lake is the first "Atom" with AES-NI)
That's not true. The J1900/Baytrail series was actually a stripped down implementation of the silvermont architecture..
I stand corrected, thanks.
I misinterpreted an Intel slide.Braswell and Apollo Lake fanless boxes with 2 Intel NICs would be interesting…I'd like to see a supercompact apollo lake box (barely bigger than a POE injector) with 4GB RAM and 32GB flash for like 149$....when both the modem and the WAP (and possibly a managed switch) are outsorced to different devices, no need for the router to be particularly big...
On the other hand gimme gimme gimme those sweet beefy 15W "real" big chip ULV CPUs...as long as they're fanless, sealed, dust proof and not that pricey anyway (thank you QOTOM)...
-
I ended up buying Q355G4, capable of 100Mbs over VPN, never got CPU more than 35% but runs at ~12 watts. Perhaps there is something out there that can achieve the same results with less power…. The box stays @ 44 Celsius open air and 47 Celsius in a closed encase with ambient temperature 24 Celsius.
link: https://forum.pfsense.org/index.php?topic=128206.msg732331#msg732331
Hardware: qotom Q355G4 with SSD
BIOS: hyper-threading disabled/
pfsense advanced: powerd enabled, AES-NI Enabled, Thermal = Intel Core
pfsense system tunable: sysctl dev.cpu.[0|1].cx_lowest=C3
Client: Gigabit connectivity
Packages: avahi installed
ISP Speed: 100 Mbs
VPN Provider: StrongVPN (AES 256 bit, MDS 128bit Auth, Adaptive compression)
Room Temperature: 24 Celsiusidle power consumption
powerd enabled, minimum, 10-11 watts, 52-53 Celsius, casing 44 Celsius
powerd enabled, adaptive, 10-11 watts, 52-53 Celsius, casing 44 Celsius
powerd enabled, maximum, 11-12 watts,54-57 Celsius, casing 45 Celsius
powerd disabled, 11-12 watts, 55-57 Celsius, casing 45 CelsiusConclusion: When idle the box seems to always need 10-12 watts regardless of the power mode. Is there better hardware out there that requires less wattage, support AES-NI, descent clock speed (Since OpenVPN is Single Core) and can provide 100Mbs output ? If you find one, share it with everyone in the forum !
Bandwidth test with ISP (no encryption) using Bandwidth Website
110 Mbs with powerd minimum, cpu <10%, 10-11 watts
110 Mbs with powerd adaptive, cpu <10 %, 11 watts,
110 Mbs with powerd maximum, cpu <10%, 11-15 watts peak
110 Mbs with powerd disabled, cpu <10%, 11-16 watts peakConclusion: My ISP seems to provide me with 100 Mbs download speed
Bandwidth test using ISP downloading 5-6 HUGE FILES simultaneously for a good period of time :)
110 Mbs with powerd minimum, cpu 20 %, 11 watts, CPU 52 Celsius, Router casing 44 Celsius
110 Mbs with powerd adaptive, cpu 20 %, 11 watts, CPU 52 Celsius, Router casing 44 Celsius
110 Mbs with powerd maximum, cpu 20%, 14 watts (weird), CPU 52 Celsius, Router casing 44 Celsius
110 Mbs with powerd disabled, cpu 20%, 11 watts, CPU 52 Celsius, Router casing 44 CelsiusConclusion: I can download 5-6 Huge files @ 110 Mbs regardless of the power saving mode because there is no encryption.
Bandwidth test using Internet through OpenVPN (encryption) using Bandwidth Website (tested a few times)
60 Mbs with powerd minimum, cpu <10 %, 10-11 watts,
110 Mbs with powerd adaptive, cpu <10 %, 11 watts,
110 Mbs with powerd maximum, cpu <10%, 11-15 watts peak
110 Mbs with powerd disabled, cpu <10%, 11-16 watts peakConclusion: powerd minimum doesn't seem to work well with OpenVPN….
Bandwidth test using Internet through OpenVPN (encryption) downloading 5-6 HUGE FILES simultaneously for a good period of time :)
50 Mbs with powerd minimum, cpu 25 %, 11 watts, CPU 52 Celsius, Router casing 44 Celsius
100 Mbs with powerd adaptive, cpu 35 %, 11-12 watts, CPU 54 Celsius, Router casing 45 Celsius
100 Mbs with powerd maximum, cpu 12%, 15 watts, CPU 63 Celsius, Router casing 46 Celsius
100 Mbs with powerd disabled, cpu 15%, 15.4 watts, CPU 64 Celsius, Router casing 47 CelsiusOverall Conclusion:Bandwidth is slightly affected by encryption (assuming good hardware & vpn provider). If you want to save energy & generate a bit less heat, you can perhaps consider using powerd adaptive mode. Perhaps the next generation of energy efficient Celeron might be a better choice for home if you don't plan to use pfsense packages that are CPU intensive.
-
I'm spying the same model, configured with 8GB and a 60GB MSATA. Looks to be about $340 shipped. I have 300/20, and am interested in having an always-on VPN for at least my laptops and phones. It would be my first venture into pfsense, and I honestly don't know all that much about it, but I figure that should hopefully get me about half my line speed with VPN… Plus I like to tinker anyway. Talk me out of it? Or pull the trigger?
Thanks!
-
I'm spying the same model, configured with 8GB and a 60GB MSATA. Looks to be about $340 shipped. I have 300/20, and am interested in having an always-on VPN for at least my laptops and phones. It would be my first venture into pfsense, and I honestly don't know all that much about it, but I figure that should hopefully get me about half my line speed with VPN… Plus I like to tinker anyway. Talk me out of it? Or pull the trigger?
Thanks!
I'd say tinker on an old system first, before dishing out 340 bucks.
-
I'm spying the same model, configured with 8GB and a 60GB MSATA. Looks to be about $340 shipped. I have 300/20, and am interested in having an always-on VPN for at least my laptops and phones. It would be my first venture into pfsense, and I honestly don't know all that much about it, but I figure that should hopefully get me about half my line speed with VPN… Plus I like to tinker anyway. Talk me out of it? Or pull the trigger?
Thanks!Depends about your knowledge in networks, your current home setup and the amount of time/effort you are willing to allocate to the project. Installing pfsense & configuring it for a simple home setup is fairly straight forward. After you are up & running, you need to be a bit more careful when you tinker with it ;)
For me, installing pfsense was a small pet project because my old router (DD-WRT) was barely capable of running OpenVPN. I decided to split the routing and the AP into separate devices. Today a high end wifi router is easily $200 with limited functionality/flexibility compared to pfsense router + AP.
Before you buy it, you can consider running it on a Virtual Machine on a desktop or laptop. If you only have laptops, buy a few USB network cards on aliexpress and you can easily build yourself a pfsense that you can tinker with. After you have it fully working & happy with it….. then order the real hardware :)
-
Another doubt I have: how hard_power_off-resilient would this pfsense box be?
I'll explain.
I have set up a panel/dashboard with on/off switches each able to cut the power to a device of the network, and each labeled accordingly (modem, switch, wifi zone controller, wifi base station 1, router, NAS, etc.). Actually I figured the NAS shouldn't be easily/accidentally powered down so I removed its switch and connected the NAS straight into the UPS. (all the devices are connected to the UPS eventually)
This is all meant for "brute force" troubleshooting by the house occupants when I'm away.
Now, with regular routers, 99% of the times you can do no damage by pulling the cord, they will just spring back to regular operation once powered again.
Would a pfsense router risk to be messed up (data corruption, permissions, read only, etc.) after a sudden (intentional or else) power loss? Maybe enterprise grade SSDs with real power loss protection (not the fake one found on some consumer SSDs) could be a solution?
Should I treat it like the NAS (no easy power off switch) or like the other "indestructible" embedded devices?
Being prone to power off data corruption (and consequent need for human re-configuring) would be quite a relevant minus compared to actual off the shelf enterprise-grade routers…
-
Another doubt I have: how hard_power_off-resilient would this pfsense box be?
I'll explain.
I have set up a panel/dashboard with on/off switches each able to cut the power to a device of the network, and each labeled accordingly (modem, switch, wifi zone controller, wifi base station 1, router, NAS, etc.). Actually I figured the NAS shouldn't be easily/accidentally powered down so I removed its switch and connected the NAS straight into the UPS. (all the devices are connected to the UPS eventually)
This is all meant for "brute force" troubleshooting by the house occupants when I'm away.
Now, with regular routers, 99% of the times you can do no damage by pulling the cord, they will just spring back to regular operation once powered again.
Would a pfsense router risk to be messed up (data corruption, permissions, read only, etc.) after a sudden (intentional or else) power loss? Maybe enterprise grade SSDs with real power loss protection (not the fake one found on some consumer SSDs) could be a solution?
Should I treat it like the NAS (no easy power off switch) or like the other "indestructible" embedded devices?
Being prone to power off data corruption (and consequent need for human re-configuring) would be quite a relevant minus compared to actual off the shelf enterprise-grade routers…
It is not as indestructible as a embedded router but its less prone to failure by brute force restarting than a NAS. I've tested it by pulling the plug a few times to check its robustness once I first installed pfsense on the quotum box and all was ok. However I now have it plugged in to my UPS alongside the access point, NAS and gigabit switch.
The reason why your occupants might try brute force troubleshooting is because a device hangs and it does not respond - that is quite common with traditional wifi-router combos. However with the PFSense box you shouldn't need to do this. I've seen multiple users here with uptimes of over 300+ days. The underlying OS is super stable and will not need rebooting due to crash/hang etc. Surprisingly also after converting my wifi-router to access point only, its stability has increased, to the extend that I have not had to reboot it in weeks!
So I'd recommend that you plug it in your UPS alongside your remaining networking equipment (NAS, switch, wifi access point) and maybe leave the modem on a normal plug in case that shows any signs of instability. If your modem is stable as well then plugging into the UPS as well will give you the added bonus of having internet available even in the event of a power cut ;)
-
Thanks.
Most of the times (like, once a month) the problem
is the modem. The modem needs to be power cycled, and the easiest way is to on/off it.
But then the router sometimes fails to "handshake" again with the rebooted modem and needs to be power cycled as well.So pfsense could end up needing more (tech savvy) human intervention than a regular off the shelf router…it would be interesting to use a server-grade SSD with actual power loss protection and do a "pull the cord 100 times" test and see if it survives with intact settings...I'd be surprised if somebody haven't already tried and studied all of this in depth given some stories I read of pfsense being deployed in delicate (even critical?) situations...
By the way during power outages in my neighborhood the fiber ONUs in the street cabinets are unpowered as well so I can't connect to the internet anyway :D
-
I wouldn't think the problem would be the hardware (SSD etc) but rather the software being interrupted while writing to disk and leaving it in an inconsistent state. Possibly the use of ram drive for var & tmp would help in your case. However before doing anything, I'd check if pfsense is having the same issue as your router in handshaking with the modem or whether that was some form of issue with the router - modem itself.
-
I use a Dell R210 II Xeon Quad with HT, 24 GB ram, 480 GB SSD
all used items I had laying around, can't even hear the R210 run in the rack
And I'm currently using a Broadcom NET EXTREME II 10GB SFP Network Card
WITH 1 GB fibre, ( WAN ) to a 24 Port 10GB SFP SWITCH ( LAN ) , House is wired with 10 Gb fiber
With my ISP I typically get anywhere from 980 - 1230 and it doesn't even break a sweat :-)Used Servers are always a great way to go… cheap and fast :-)
And if you're using your PF sense router with your ISP modem your ISP modem should be in bridge mode, as a reminder.
-
Power outage resilience can best be improved by installing to zfs. UFS has more issues with power outages.
-
I built a couple of boxes with the following configuration, that have been outstanding so far…
Intel DQ77KB board + I5 Processor + 8 GB RAM -- $150 (refurbished, ebay)
Silverstone Tek case + Silverstone low-profile fan + 90W PSU -- $82
I had some old SSDs rattling around -- $0Total: $232, for a very capable pfSense box, that can also be a decent general purpose computer.
There are some old threads on the DQ77KB board on this forum as well.
-
yeah EIST has minimal affect on temps and power consumption, c-states is where the real gains are.
If you have a cpu that has turbo mode tho, then you need to enable powerd (and eist) to utilise the higher clocks, I personally run my unit with powerd set to the stock clocks as the min speed, so basically I get turbo mode alongside no throttling.