klg-php72 - PHP-based looking glass for Cisco, Juniper and Quagga/Zebra routers

Property Value
Distribution FreeBSD 12
Repository FreeBSD Ports Quarterly amd64
Package filename klg-php72-1.5_1.txz
Package name klg-php72
Package version 1.5
Package release 1
Package architecture amd64
Package type txz
Category net-mgmt www
Homepage https://sourceforge.net/projects/klg/
Maintainer freebsd-ports@dan.me.uk
Download size 13.69 KB
Installed size 53.27 KB
klg is a looking glass written in PHP that can access and report
back routing information from Cisco, Juniper and Zebra/Quagga
routers. It can also lookup AS numbers to names via WHOIS interfaces,
and supports friendly BGP community names via MySQL database.
WWW: https://sourceforge.net/projects/klg/
- SSH2: on
KLG is now installed.
If this is the first installation, you need to configure a few things first.
1. Create the MySQL database, a klg user, and initialise:
b) CREATE USER 'klg'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON klg.* TO 'klg'@'localhost';
c) import the schema:
mysql -u klg -p klg < /usr/local/share/klg/klg_schema.sql
2. Edit /usr/local/www/klg/klg/klg_config.php from the template klg_config.php.sample
You need to specify the MySQL details from above at the top of the file,
and details of your routers further down.  Follow the comments in the file.
You may wish to specify the timezone by adding a line similar to this:
3. Edit /usr/local/www/klg/klg/klg_template.html from the template file to suit your
needs.  Items in this file are substituted upon execution so you can skin
your looking glass to your site.
4. Example Apache 2.4 configuration:
This assumes you have already configured Apache to serve .php documents.
Alias /klg "/usr/local/www/klg/klg/"
<Directory "/usr/local/www/klg/klg/">
Require all granted
AllowOverride None
Order Allow,deny
Allow from all
5. Access your new looking glass:


Package Version Architecture Repository
klg-php72-1.5_1.txz 1.5 i386 FreeBSD Ports Quarterly
klg-php72-1.5_1.txz 1.5 amd64 FreeBSD Ports Latest
klg-php72-1.5_1.txz 1.5 i386 FreeBSD Ports Latest
klg-php72 - - -


Name Value
mysql56-client = 5.6.43
php72 = 7.2.17_2
php72-mysqli = 7.2.17_2
php72-pecl-ssh2 = 1.1.2
php72-sockets = 7.2.17_2
php72-xml = 7.2.17_2


Type URL
Mirror pkg.freebsd.org
Binary Package klg-php72-1.5_1.txz
Source Package net-mgmt/klg

Install Howto

Install klg-php72 txz package:

# pkg install klg-php72

See Also

Package Description
klg-php73-1.5_1.txz PHP-based looking glass for Cisco, Juniper and Quagga/Zebra routers
klg-php74-1.5_1.txz PHP-based looking glass for Cisco, Juniper and Quagga/Zebra routers
klickety-19.12.0.txz Tetris themed solitaire
klines-19.12.0.txz Tactical game
klish-2.1.4.txz Klish - Kommand Line Interface Shell
klog- Simple Qt-based amateur radio logger
klondike-1.9_4.txz Solitaire game for X11
kludge3d-20040822_14.txz Simple 3D editor
km-libreoffice-6.3.4.txz km language pack for libreoffice
kmag-19.12.0.txz KDE Screen magnifier
kmahjongg-19.12.0.txz Mahjongg Solitaire
kmail-19.12.0.txz KDE mail client
kmail-account-wizard-19.12.0.txz KDE mail account wizard
kmailtransport-19.12.0.txz KDE library to managing mail transport
kmbox-19.12.0.txz KDE library for accessing mail storages in MBox format