Recently I wanted to run my own Looking Glass server so I can see what routes our network is taking without having to connect to all of our core routers. OpenBGPD comes with a looking glass script called bgplg.
Depending on topology you may wish to configure the LG neighbour on the peering routers as a RFC4456 Route Reflector client, for example in Cisco & Quagga syntax, neighbor 192.0.2.100 route-reflector-client.
OpenBGPD configuration (/etc/bgpd.conf):
AS 65001 # Your AS number
socket "/var/www/logs/bgpd.rsock" restricted # For bgplg
# Don't use or discard routes
fib-update no
route-collector yes
group "iBGP" {
remote-as 65001 # Your AS number
announce none # For sanity
neighbor 192.0.2.42 # Add core routers here
}
bgplg setup:
# cd /var/www/
# chmod a+rx bin/bgpctl cgi-bin/bgplg
# chmod a+rx bin/ping* bin/traceroute*
# chmod u+s bin/ping* bin/traceroute*
Finally, start OpenBGPD with bgpd and Apache with apachectl start. You can then visit your Looking Glass at http://localhost/cgi-bin/bgplg.