Capture IP From PING

terminal

This is just a simple sed to capture IP address from ping. Note host must allow ICMP. This was tested on sh, bash and zsh. An example:

newsyslog: don’t rotate empty log files

My idea about not to rotate empty log files on FreeBSD has made it to newsyslog, yay 😀 ! Big thanks for Dan Langille who made this happen!

/var/cache/pkg

On FreeBSD /var/cache/pkg can use up a significant amount of space. The good news is the content of this directory is not required. However it is useful if you want to rollback to an older […]

Netwait on FreeBSD

I’m sure your server is running at least one service which needs network. Once in awhile happens that the server will start all, or at least is trying to start all services but the network […]

DNS Blacklist on WRT

Recently I found a forum entry with a script for blocking ad’s via DNS for WRT (or any other OS using sh and dnsmasq). However it was missing two features: a white list and a […]

Easy SSH On macOS

Using public key authentication for ssh is safer than password. But you should really use a passphrase protected private key. Now you are safe but you still need to type in your passphrase. This isn’t […]

newsyslog – config check

On FreeBSD the best way to rotate logs is using newsyslog. After you set up you want to try what would happen when log rotation occurs, this can be done with -n and -vv -n […]

zfs allow

By default many zfs operations needs elevated/root privileges. For example receiving a snapshot on a remote system. One does not want to open ssh to root user. With zfs allow permissions can be delegated to […]