
Alpine Linux is a distribution designed primarily for use as a router, firewall and application gateway. The latest stable version, Alpine Linux 2.0, was released last week (August 17, 2010). This review is the first for this distribution on this site, and also marks its first listing in theFirewall & Router category.
Installation: Installation of Alpine Linux to hard disk is via a text-based interface. Thesetup-disk script takes care of the completed automated installation, and the whole process takes less than two minutes. By default, the script creates the following partitions (test installation on an x86 computer with a 250 GB hard drive):
Ext3 is the default file system. Alpine uses the OpenRC initialization and daemon management script, the same system used byGentoo. Incidentally, the maintainer of OpenRC hasgiven up on the project. There are severalsetup- script that you need to use to make the system usable.
Post Installation Configuration: Aside from formatting and installing a base system, Alpine’s installation script does very little else. Specifying a hostname, configuring the internal network interface, specifying a password for the root account, and other mundane tasks usually taken care of by other installation scripts, are some of the post installation tasks that you will have to get done. Alpine provides severalsetup- scripts that you have to use to perform most of the important post installation tasks.
For configuring the network interface (and a couple of other tasks), for example, you will have to use thesetup-alpine script. Thesetup-interfaces script, which is expressly coded to configure network interfaces, is a dud. It does not work. So to configure a network interface on Alpine from the command line, you will have to use thesetup-alpine script or theifup command.
Package Management: Apk is Alpine’s package management system. That is one more package manager that you will need to learn, if you want to use Alpine. It is just as easy to master as Debian’sapt. Apart from some basic packages needed to get the system up and running, virtually all the packages that you will be using on Alpine will be installed by you – after installation. That requires that you first append an online repository to the /etc/apk/repositories file. By default, a pointer to the installation medium is the only entry in this file.
Administration: Administrative access to a fresh installation of Alpine Linux is by direct access, using the passwordless root account. If you need remote access, you will have to first install the openSSH server (client and server installed at the same time by theapk add openssh command), or run thesetup-acf script to install the Alpine Configuration Framework, an “mvc-style application for configuring an Alpine device” over a secure Web (https) interface.
The image below is the “home” page of the Web interface, but not from a default installation. The OpenVPN entry under Networking, the entries under Applications and the entry under Storage are all from a post installation operation,

Alpine's browser-based management interface
Features: A prominent claim on Alpine’s website is that it “was designed with security in mind. It has proactive security features, such as PaX and SSP, that prevent security holes from being exploited.”
With the appropriate applications installed, from the command line or from the browser-based management interface, Alpine Linux may be configured to serve as a firewall and IDS/IPS system, VPN server, VoIP server, Web and FTP server, etc. Alpine may be used to play any role within your network.
Final Thoughts: If you would like to take Alpine for a spin, here are some points to keep in mind:
Resources: Alpine Linux provides three stable iso images for download: Standard, Mini and Vserver. Some tutorials and howtos are available here.
Subscribe to our newsletter to receive weekly updates of articles and tutorials.
I’ve just had a little play with this and it seems fantastic for its purpose. Combining an up to date Linux kernel with grsec and PaX seems to have already proven itself out in the wild and there’s none of the fluff so you can build tiny appliances designed to do tasks securely and quickly.
It’s nice. It’s great that it boots off an .iso if required as well.
It’s so nice that we’ve now packaged it up to work with our VPS auto-installer on our Alpine Linux VPS page. It installs in a jiffy as it’s so small.