How to cheaply build a small PFsense router?

Not by much but you have to take into consideration that caching also taxes the CPU as my Athlon 5350 goes to 90% CPU usage when caching lots of data, I.E download games on Steam and since squid caching doesn't work on Steam my CPU was doing work that I'd see no benefit from. Your mileage may vary but given my usage I didn't see any benefits from it. Its worth throwing in an HDD and testing squid with your setup but be aware that it has limitations.

Not sure there is a Netgear SG-100, do you mean the Netgate SG-1000?

Well, there is probably some way to whitelist only the stuff that I want to cache.

Edit:
About the SG-1000. Why would I spend 180€ on such a weak device that can't even do half of the stuff that I want from it in the first place.

I could sell you my APU.1D4. :D

Something like this maybe, https://world.taobao.com/item/536803318430.htm#detail
And it seems it does not come with a wifi card so get one of these aswell https://world.taobao.com/item/531272220180.htm#detail
and some cables https://world.taobao.com/item/12927188028.htm?fromSite=main&ali_refid=a3_430620_1006:1103008145:N:ipx%E8%BD%ACsma:7b89c6448fc1405bafbd349270437676&ali_trackid=1_7b89c6448fc1405bafbd349270437676

And 3 antennas and then you might end up with something like this. Order the stuff thru taobaofocus btw protip

@noenken
I just looked up the APU.1D4
Allegedly it is fully compatible with pfSense. And it has WiFi, RAM, PSU etc built in. So I'd only have to add an HDD to it and be fine. And WiFi would work out of the box, right?
But the performance is probably pretty bad, huh? Are 200mbits Internet speed even feasible?

@villian Sorry, I don't speak Chinese. What is that box thingy called, so I can look it up in English?

You right click and translate(in chrome) and when you find something good you get it thru taobaofocus (agent).

I'm using Firefox. I don't have a translate button. :/

javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/?text='+t+'&hl=en&langpair=auto|en&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&hl=en&langpair=auto|en&tbb=1&ie='+e;};

I have that saved as a bookmark, click it when I need a page translated. IT automatically opens the page in google translate for you.

I don't think the China thingy would be worth it. Import sales taxes and customs duties...

Well, I think this will be my build then:



For WiFi I'll order a few atheros cards from China and hope one of them will work:
* Atheros AR5B93 Half Height MINI PCI-E Wireless WiFi Card 300M 802.11b/g/n 300Mbps Network Wlan
* New Atheros AR5B225 WIFI Wireless Bluetooth BT 4.0 Half MINI PCI-E Card Better than 1030 6235 6230 150M Laptop Network Adapter
* New Atheros QCNFA222 AR5BWB222 Dual band NGFF 300Mbps Wlan 802.11a/b/g/n 2.4GHz/5GHz Wireless Wifi + Bluetooth BT 4.0 Mini Card

For caching something specific like linux packages you're better off using something that's made to do that, like apt-cacher for debian based distros. While it's probably possible to configure squid to do that it's not really made for it (storing and serving large files long term), it's made for web content which has small files and updates frequently.

2 Likes

Just a quick warning, some of the wireless cards I tested were Atheros and based on the AR9380 chipset and I couldn't get it to work correctly but hopefully you'll have better luck than I did.

My APU.1D4 kit was ordered without a wifi card, you would have to add one. It has some storage in it for the OS but for caching you would have to add something. 1GHz dual core was enough for 50Mbit but I wasn't using a ton of packages. I have a 100Mbit connection now but I switched to my new router before that. So I can not say for sure if it would or wouldn't work. My guess is it would work for routing and blocking but probably not for more complex workloads. I don't think it would hold up for a 200Mbit connection at all.

1 Like

What isssues did you have with yours? Mine seems to work really well. Used it on 2.4 and 5Ghz :S

Low throughput and had trouble connecting clients, I suspect it had something to do with the signal even though I was right next to it. I may have had a duff card, I do have another one of the same model I could test but after getting the Unifi AP I didn't see much point. The next time my router is offline I may install the card for the lulz to see if it works any better than the first one.

Be sure to check "Preserve common wireless configuration through interface deletions and reassignments." in the interface settings, that might fix the thruput if lucky, I know mine did :)

1 Like

I'll check that out when I test it, its been online for 118 days and I don't want to take it offline unless I have to and since my Unifi AP is better than the card it isn't worth taking it offline. Would be good if it did work though, it might make a good failsafe if I have problems with the Unifi AP or if I need to change settings for the AP from a wireless client as it reboots whenever I change the settings.

2 Likes

I found another very interesting case. It looks kinda nice, is way cheaper than the one I considered before and it comes with a 400W internal PSU:

The downsides I see are: The case is a tiny bit larger. (But therefore I don't need the external power brick.) And the PSU has a fan. Do you think I could just get rid of the PSU fan? After all I only need like up to 30W anyway.

28 bucks for a case with a 400W PSU. Including taxes and shipping.
Yeah, that sounds safe.....

1 Like

Well, I don't expect it to actually be 400W.