Today I reinstalled my firewall to OpenBSD 5.9. I won’t describe the installation process. It is well described in the project page. This post is only for references of what I changed beside the normal installation process.
The computer I install OpenBSD onto is a PC Engines APU2. Therefore the console access is only done with a serial port.
Out of the 3 interfaces, only 2 are used at the moment. The interface em0 is connected to the local network. The interface em1 is connected to the Internet and is affected a public IP.
Configuring serial access
Change /etc/boot.conf to switch console to serial port
Upgrade configuration of /etc/bgpd.conf. When upgrading, I had to do a small modification of configuration. Here are the lines I modified :
Replace:
By:
Don’t forget to set the rights on /etc/ipsec.conf
DNS
In my network, I choose NSD to manage my authoritative domains (public and claer.local). I also use unbound to cache entries for the local users and to redirect special domains whne connecting to OpenVPN hosts. For ex. I use unbound to redirect all queries to corp.local to the DNS at the corporate office.
Restoring the configuration from my backup worked straight away.
/var/nsd/etc/nsd.conf configuration file
Enable nsd
DHCP
Configure OpenBSD to be the dhcp server of the local lan
Change /etc/dhcpd.conf
Activation du serveur dhcp
Configuration de Unbound : /var/unbound/etc/unbound.conf