I’ve written about OpenBSD and BGP Looking Glasses before. OpenBSD has since removed apache from base, and replaced it with nginx. This is OK with me since I prefer the simplicity and raw performance of nginx (and its ability to proxy!). This is an update which applies to OpenBSD after nginx removal (applies to 5.5 and later). This article has also been independently verified to work using OpenBSD 5.6 as well.
Install your system as you choose, I did a fairly default install as per the FAQ. My hardware in this case is virtual VMware hardware, 1 vCPU, 1GB vRAM, 16GB vHDD, and 1 vNIC connected to a network shared between both BGP routers.
The applicable configuration files:
Uncomment this section:
and add the following if you want to serve the CGI as the index:
/var will need to be mounted without the nosuid option present by default.
The following will need to be run to allow ping, ping6, traceroute, and traceroute6 to function and resolve domains in the chroot:
The last stage is to configure your BGP peering sessions in