| < Day Day Up > |
3.4. Installing OpenBSDOne of the hallmarks of OpenBSD is the incredibly low number of remotely exploitable vulnerabilities in the default install. As a method to this madness, the OpenBSD team has built the install process to achieve this goal: the options provided during the install are few, and security options are enabled where possible by default. What this all means is that the OpenBSD install is simple, swift, and painless. Following the prompts will get you from zero to fully functional in very little time. That said, let's move quickly through the steps. 3.4.1. Preparing the Disk
The first step in an OpenBSD installation is to
If you have no maintenance partition and do not plan to dual boot, you can use your entire disk for OpenBSD. Create your partitions according to the decisions you made before starting the install process, quit, and write the new disk label.
If you have
Table 3-3. Default flags for mount(8) set by the OpenBSD install
3.4.2. Configuring Your Network
Network connectivity during the install process is really your call, as described previously in this chapter. If you are building a server, you are
After network configuration, you are prompted to enter a root password. Make it a
strong
password. OpenBSD does not prompt for the creation of a new
3.4.3. Choosing Your Distribution SetsHere we are at the meat of the OpenBSD install process. At this point, you choose which file sets to install. Each set is a portion of the OpenBSD distribution and it is named according to its contents and version. Figure 3-5 shows file sets of the OpenBSD 3.5 distribution. The only required sets are the kernel ( bsd ), the base OpenBSD system ( base35.tgz ), and the files from the /etc filesystem ( etc35.tgz ). You may also want to install the compilers ( comp35.tgz ) and the manpages ( man35.tgz ). Figure 3-5. Choosing OpenBSD 3.5 file sets
If you are building an infrastructure server, you will probably want to avoid installing any X file sets. In the case of a development server, the base install for XFree86 ( xbase35.tgz ) may be appropriate. 3.4.4. Activating sshdAfter installing file sets, you are asked if you want to enable sshd(8) . The convenience of enabling sshd at this stage is high. It means you will not need to sit with a console attached to the system while you configure it. If you have been paying attention to the security mailing lists and checked the OpenBSD Errata page to ensure that sshd listening on your newly installed server is safe, leave it on. 3.4.5. An Innocuous Question About X
You are subsequently asked if you plan to run X on the system. If you're building a workstation or, heaven
Answering this question in the
From a security standpoint, it's important to know that the aperture driver will allow any one process to bypass the restrictions imposed by the system's security level. Usually this process is the X server, but before the X server is able to load, a malicious user or application could use this driver to do some damage. Granted, this is a not very easily exploitable window, but if you want to get rid of it altogether, answer no to this question, and do not run X. 3.4.6. Finishing UpFinally, it is time to set your time zone and prepare to reboot your system. Before you do so however, do you know what services will be running at the end of the reboot? To find out, there are two files you will need to look at: your startup configuration file, rc.conf , currently in /mnt/etc and your system startup script /mnt/etc/rc . If you run: # cat /mnt/etc/rc.conf egrep "(_flags=YES)" grep -v =NO
You will get a list of directives that may spawn services. Results from the command above, however, do not
{% if main.adsdop %}{% include 'adsenceinline.tpl' %}{% endif %}
If you decide to disable services, place
If the procedure above seems too cumbersome to follow (and it should), you have two options for mitigating the risks of having listening services when you reboot:
If you are comfortable with the set of services running
|
| < Day Day Up > |