Config

Creating service files for systemd

Systemd is designed to improve on the Linux startup process & init daemons by consolidating them to make them simpler. As systemd is quite new, not all Linux distributions provide systemd units for a few services as they are still using traditional init systems such as SysV init/Upstart. Included are a few service files that I’ve created for my own use. Quick Guide touch /etc/systemd/system/name.service chmod 664 /etc/systemd/system/name.service systemctl daemon-reload systemctl start name.

Securing your server: IPTables

Setting up good firewall rules is essential for server administration. The following iptables configuration is a good starting point for IPv4. It only allows specific traffic through (ping, http/https, irc, ssh) and rejects everything else. The config is a little flexible once traffic has been established, as it will allow that traffic through. While changing iptables rules, ensure that you have an active connection to the server as you do not want to get locked out of your own server.