Perl Automation Tool Helper FreeBSD implementation

FreeBSD user developed a Perl Automation Tool Helper for FreeBSD.

Original page:


Slaughter::API::freebsd – Perl Automation Tool Helper FreeBSD implementation


This module is the one that gets loaded upon FreeBSD systems, after the generic API implementation. It implements the platform-specific parts of our primitives.

We also attempt to load Slaughter::API::Local::freebsd, where site-specific primitives may be implemented. If the loading of this additional module fails we report no error/warning.


Now follows documentation on the available methods.


Export all subs in this package into the main namespace.


[Read more…]

Setup of RAID10 (RAID0 stripe of two RAID1 mirrors) on FreeBSD 10.1

FreeBSD user DutchDaemon shows us how to set up RAID10 on FreeBSD 10.1.

Just a quick and unceremonious write-up of an installation I performed just now. Substitute device names at your own leisure. These are four 4 TB disks (ada0ada3) in a QNAP. Note that these disks only constitute a dedicated RAID10 storage pool. The OS runs from a separate disk (USB in this case) and mounts the storage pool.

# load your kernel modules
kldload geom_label
kldload geom_mirror
kldload geom_stripe

# if necessary
dd if=/dev/zero of=/dev/ada0 count=2
dd if=/dev/zero of=/dev/ada1 count=2
dd if=/dev/zero of=/dev/ada2 count=2
dd if=/dev/zero of=/dev/ada3 count=2

gpart create -s gpt ada0
gpart create -s gpt ada1
gpart create -s gpt ada2
gpart create -s gpt ada3

# RAID1 mirror ada0+ada1
gpart add -t freebsd-ufs -l ada0data ada0
gpart add -t freebsd-ufs -l ada1data ada1

gmirror label datastore01 /dev/gpt/ada0data /dev/gpt/ada1data

newfs -U /dev/mirror/datastore01

## echo '/dev/mirror/datastore01 /data1 ufs rw,noatime 1 1' >> /etc/fstab
## mkdir /data1
## mount /data1

# RAID1 mirror ada2+ada3
gpart add -t freebsd-ufs -l ada2data ada2
gpart add -t freebsd-ufs -l ada3data ada3

gmirror label datastore02 /dev/gpt/ada2data /dev/gpt/ada3data

newfs -U /dev/mirror/datastore02

## echo '/dev/mirror/datastore02 /data2 ufs rw,noatime 1 1' >> /etc/fstab
## mkdir /data2
## mount /data2

# RAID0 from both RAID1 mirrors

gstripe label -v datastore /dev/mirror/datastore01 /dev/mirror/datastore02

newfs -U /dev/stripe/datastore

echo '/dev/stripe/datastore /data ufs rw,noatime 2 2' >> /etc/fstab

Et voilà:

mkdir /data
mount -a
df -h | grep datastore

/dev/stripe/datastore  7.0T  8.0K  6.5T  0%  /data

In /boot/loader.conf:


Original post:

Netflix will soon use HTTPS to secure video streams

Netflix is one of the major companies to utilize FreeBSD servers. Their streaming services account for a large amount of internet traffic in many countries.

Original post:

Netflix will soon use the HTTPS protocol to authenticate and encrypt customer streams, a move that helps ensure what users watch stays secret. The move now leaves Amazon as one of the most noticeable no-shows to the Web encryption party.

Flipping on the HTTPS switch on Netflix’s vast network of OpenConnect Appliances (OCAs) has been anything but effortless. That’s because the demands of mass movie streaming can impose severe penalties when transport layer security (TLS) is enabled. Each Netflix OCA is a server-class computer with a 64-bit Xeon CPU running the FreeBSD operating system. Each box stores up to 120 terabytes of data and serves up to 40,000 simultaneous, long-lived connections, a load that requires as much as 40 gigabits per second of continuous bandwidth. Like Amazon, Netflix has long encrypted log-in pages and other sensitive parts of its website but has served movie streams over unsecured HTTP connections. Netflix took the unusual step of announcing the switch in a quarterly earnings letter that company officials sent shareholders Tuesday.

[Read more…]

#InstallFreeBSD event in Landshut – Germany

FreeBSD user banym is hosting a FreeBSD Install event on May 15, 2015 in Landshut, Bavaria.

bsdinstall-newboot-loader-menuToday I want to announce that I will organize a small FreeBSD workshop on 15 May 2015 in our new location in Landshut near Munich, Germany. The is a center of IT-companies and software developers. My company called BayCIX is one of the five founders of the Beside our daily business we planned to have tech talks and events from the beginning. Now that the building is finished and we have the infrastructure working, we will start with two meetups.

Follow our meetup site to check out the first meetup on 30. April and my #InstallFreeBSD workshop on 15. May:

As the name of my workshop indicates it takes place in the #InstallFreeBSD series to introduce people to the FreeBSD system. I will bring some hardware to show where FreeBSD can run on and explain the basics.

If you’re located in Bavaria, feel free to join me and have some fun with FreeBSD.

Original post:

The History of FreeNAS & TrueNAS

Jordan Hubbard, co-founder of FreeBSD, talks about FreeNAS’s beginnings and its transformation to a new product — TrueNAS.

Original post:

The FreeNAS project got its start way back in 2005, when Olivier Cochard-Labbé wanted to turn his old PC into a home server. There wasn’t an open source project that fit all of his needs, so he did what any self-respecting software developer would do: he sat down and wrote his own. Just like that, the software that would eventually become the world’s most popular open source software defined storage was born.

Development continued until 2009, when one of the project developers proposed moving FreeNAS to a Debian Linux based system. This move would have meant losing access to the FreeBSD community and the overall quality of its software, and FreeNAS would also lose its native ZFS support, since the ZFS On Linux project didn’t even exist at that time. iXsystems had used FreeNAS for many years and sold servers specifically made for FreeNAS, so Matt Olander, one of the iXsystems founders, reached out to Olivier and offered to take over FreeNAS development on FreeBSD. Olivier gave his blessing, and iXsystems started immediately working on FreeNAS 8. In order to modernize FreeNAS, the development team at iXsystems rewrote almost all the code and replaced the m0n0wall PHP code with a full featured, easy-to-use webGUI.

[Read more…]

How To Configure and Connect to a Private OpenVPN Server on FreeBSD 10.1

CallumA of Digital Ocean, a cloud service provider whom recently added support for FreeBSD, shows us how to set up a private OpenVPN server on FreeBSD 10.1.


OpenVPN is an open-source virtual private network (VPN) server/client application which allows you to join a virtual network (similar to a LAN) securely.

This tutorial will explain how to install and configure an OpenVPN server on a FreeBSD 10.1 machine with IPv4 NAT and routing. It includes short explanations of various configuration options.

By the end of this tutorial you’ll be running your own OpenVPN server, and have a client configuration file ready to download to connect to this network.


  • A FreeBSD 10.1 Droplet. Droplet size depends on how many clients you intend to connect to the VPN; 519 MB is fine for a few clients
  • Root access. sudo is pre-installed on DigitalOcean, so there’s nothing extra to do

This tutorial requires root access. On DigitalOcean, access the server as the default freebsd user, then access the root shell:

sudo tcsh

Step 1 — Installing OpenVPN

Installing OpenVPN with the pkg system is quite simple. Simply run these commands to update the package lists and install the VPN software:

pkg update
pkg install openvpn

This should also install the easy-rsa package, which will be used to generate the SSL key pairs.

Full tutorial: