All posts tagged FreeBSD

Going through and updating systems to newer versions of PHP8.1 and mariadb on a newly installed FreeBSD 13.1 system. When attempting to connect to the default “localhost”, I was being greeted with:

mysqli_real_connect(): (HY000/2002): No such file or directory

Any php database connection attempts to localhost were failing, which is the default for a variety of code out there, including phpMyAdmin and WordPress. Changing the connection host to “” instead of “localhost” allowed it to connect, but I didn’t find this to be an acceptable solution as it should work for both. After doing some searching, I found the following solution to be the best option:

Continue Reading

I had previously setup a few FreeBSD systems to act as PPTP servers for places that I had them acting as firewalls using mpd. However, I was constantly running into problems with “No buffer space available” and packets would drop, connections would be sluggish, etc.
I was just doing some system upgrades and decided to look at other options. I found a port called poptop “the pptp server for linux” in the ports distribution, and even a howto online detailing what my configs should look like. So I gave it a shot:

Continue Reading

Having just acquired some new hardware at work, I decided to do some tests to see how well this system would run. Here are the specs of the system running the benchmark:

  • Supermicro X7DA3+ MB w/Intel 5000X (GreenCreek) chipset
  • (2) Intel Xeon Quad-Core E5450 (3.00GHz/1333FSB/2x6MB) CPU
  • 3Ware Escalade 9650SE-16ML PCI-E 256MB w/16 PORTS + BBU
  • (8) Kingston 2GB PC2-5300 DDR2-667MHz FB ECC CL5 (16GB)
  • (12) Western Digital Raptor X WD1500AHFD 150GB 10000 RPM 16MB Cache SATA 1.5Gb/s Hard Drive (RAID 50 array)

To test it out I installed FreeBSD 7.0-RELEASE AMD64. Install completed flawlessly, so it was time to do some compiling.
A vanilla make buildworld: 48 minutes
Not bad.. but not amazing either. So I decided to do some threaded compiles to stress the system a little bit. Since it’s an 8 core system, I used the following:

time -h make -j8 buildworld

The resulting time of: 12m 33s was nothing short of impressive.
Following up with a:

time -h make -j8 buildkernel KERNCONF=GENERIC

Resulted in: 52s
Quite impressive.

If you have a neighbor that likes to borrow your open wireless access point, you can have some fun with them. Redirect all of their browsing, invert the images, or return blurred images.
The first approach I took was to establish a transparent squid proxy on my FreeBSD firewall that I have providing DHCP and NAT for my internal network. I added a third NIC to provide these services for my untrusted wireless network. This will also help you to segment and protect your wired LAN.

Continue Reading