FreeBSD Jails – dynamically assign IP address using ezjail

Instead of adding all IP addresses statically to your server via host’s /etc/rc.conf file you may instead leave them out and specify them on per-jail basis. That way when Jail is started IP address gets assigned to specific network interface, and when it is shut down it disappears from that interface. This comes in really handy especially when you’re managing lots of IPv6 only jails, adding all IP addresses to the interface could be tedious and your rc....

February 12, 2017 · 1 min · Ivan Tomica

FreeBSD top(1) – processes within specific jail

On FreeBSD top(1) utility, although having much less command line switches and options is in fact much more powerful than one that comes with your favorite Linux distribution. Maybe one day I decide to publish an in depth write up about it but until that day comes here’s one hint. To show only processes that are running within specific jail launch top: top press: J enter your jail name:...

February 10, 2017 · 1 min · Ivan Tomica

Enable PHP mail() in FreeBSD

On FreeBSD 11 sendmail is not enabled by default. Also by default, php configuration (php.ini) has sendmail binary configured for sending email so using mail() within your PHP application may not work. To resolve that you need to enable sendmail which you can do with: # sysrc sendmail_enable="YES" sendmail_enable: NO -> YES # sysrc sendmail_msp_queue_enable="YES" sendmail_msp_queue_enable: NO -> YES After that just start sendmail with: service sendmail start

February 8, 2017 · 1 min · Ivan Tomica

FreeBSD jails – localhost IP

So, app was connecting from jail’s public IP to the MySQL and that didn’t worked since I had user created like: USER@localhost Instead of: USER@% or USER@JAILIP And that got me confused badly. I would like to thank Mark for clarification.

February 7, 2017 · 1 min · Ivan Tomica

Portscan with netcat

Recently I had to discover custom SSH port on the server so I needed to come up with a somewhat quick way to check for open ports on the server. To do that simplest and prettiest solution I’ve found was using netcat utility. As you can see by looking at syntax I prefer OpenBSD one.

February 7, 2017 · 1 min · Ivan Tomica

FreeBSD – Assign IPv6 address to a jail

In previous article I’ve explained how to add IPv6 to your server, now it’s time to show you how to assign IPv6 address to Jail running on your IPv6 host. I’m using ezjail at this moment to manage my Jails. If you’re like me you can use following command to assign already configured IPv6 address to your Jail at creation time: ezjail-admin create JAILNAME "em0|IPV4ADDRESS,em0|2a01:4f8:140:54c7::2" If you already have Jail created and wish to add address to it afterwards you can edit jail configuration file which should be located in /usr/local/etc/ezjail/JAILNAME....

February 7, 2017 · 1 min · Ivan Tomica

Configuring IPv6 on FreeBSD on Hetzner

This article will be one of the few to come in the near future. I’m in the process of switching my VPS servers from various VPS providers to dedicate box I’ve leased at Hetzner. Up until now I’ve mostly used CentOS on my server systems but it is time to switch to FreeBSD now, various reasons but that’s a topic for another article. I figured out how to better start “mini series” than with basics, that is, with network configuration....

February 7, 2017 · 2 min · Ivan Tomica

How to set up ZFS on CentOS 7

Recently I have started thinking about backups on my personal web server (on which this blog is hosted on). Simplest solution I have come up with is to just mount additional drive to the server, format it as ZFS, sync stuff to it and then just snapshot that drive. This way I don’t use much space for storing backups and I can keep more frequent backups. Sure, I could just move website to that ZFS drive, and I will probably do so in future, but for now it is how it is....

December 12, 2016 · 2 min · Ivan Tomica

Owncloud client on Fedora 25

If you were fast on a trigger and upgraded to Fedora 25 as soon as it was available and you use Owncloud client for your syncing needs you may found yourself that Owncloud client doesn’t start. You may have also noticed an that it causes an error while trying to perform an upgrade to newest release. Error that I got while wanting to start up client was: owncloud: error while loading shared libraries: libqt5keychain....

November 25, 2016 · 1 min · Ivan Tomica

updown.io – simple monitoring service

Are you in search for an simple monitoring service that will provide you with status updates for your service and don’t want to pay in gold for it? You also don’t want to maintain your own server with services like Icinga or Nagios? Search no more, here’s updown.io, simple, easy to use yet powerful, tiny monitoring service. Although updown.io can’t be compared to Nagios, Icinga or similar services feature wise it is pretty powerful on its own and provides you with benefits such as transaction times, checks from multiple locations etc....

November 21, 2016 · 3 min · Ivan Tomica