Tag: NAS

FreeBSD: Route jail traffic through VPN

I wanted to expose a single jail of my FreeBSD NAS to a network of a client via OpenVPN while it's reachable both from my network and from the clients' network. It should send all of its traffic through that VPN tunnel so that it appears like it is just another computer on that foreign network. Luckily FreeBSD offers a great way to solve this by creating a separate routing table apart from my main routing table that is used when starting OpenVPN (so that it can populate it's routes there) and when starting the jail (the jail in fact...

Building a NAS control panel for macOS with BitBar

After finishing with the hardware and software parts of my new NAS, I decided to append another little project which is aimed to provide a simplified control panel for macOS in the menu bar on the upper right of the screen. Objective What I wanted to achieve is a possibility to mount my various shares with one click as well as having controls for power on/off and SSH. Additionally the control should indicate whether the NAS is currently powered on or not. BitBar Realizing something like this in Objective-C or Swift would not be complicated but I decided to...

Building a FreeBSD NAS Part 4: Service deployment

In Part 3 of this series I described how to install FreeBSD and set it up properly. Now that the base system setup is complete, we can start providing services... 1. Fileserver with Samba The first and obvious service would be a fileserver. Samba provides a cross platform compatible way of accessing files using the SMB network filesystem debuted in Windows. I created a jail using this commands: ezjail-admin create fileserver 10.0.0.21 ezjail-admin start fileserver I also had to set the time zone manually within the jail using ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime...

Building a FreeBSD NAS Part 3: System setup

FreeBSD is the ideal system to use when building a server. It's reliable and rock-solid and it's file system ZFS not only offers anything you would expect from a file system but is also easy to set up and to maintain. This is why I chose it to power my NAS. In Part 1 and Part 2 of this series I already described my intentions and the hardware assembly. Now it's time to bring it to life. 1. Preparation I decided to use the netinstall image of FreeBSD 10.3 amd64 on a memstick. From OS X I unmounted the...

Building a FreeBSD NAS Part 2: Hardware assembly

In Part 1 of this series I already explained my goals building a new NAS. In this post I show how I assembled the hardware in order to ensure reliance and redundancy. 1. Overview This is the hardware I got (case and fans not included): Intel BX80646G1840 Celeron G1840 Asus H81M-K motherboard Cooler Master B500 Corsair CMV8GX3M2A1333C9 Value Select 8GB (2x4GB) DDR3 1333 MHz CL9 Corsair (CSSD-F60GBLSB) Force Series LS 60GB (6Gb/s) SATA 3 Phison MLC NAND WD 500GB Blue (OS) WD 3TB Red (data) 2. Assembly The assembly process is straight forward so I don't describe it here...