lg_config.php.example 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?php isset($_CONFIG) or die('No direct access allowed.');
  2. // ------------------------------------------------------------------------
  3. // LOOKING GLASS CONFIGURATIONS
  4. // ------------------------------------------------------------------------
  5. /*
  6. * Your own AS number
  7. */
  8. $_CONFIG['asn'] = '12345';
  9. /*
  10. * Your own company name
  11. */
  12. $_CONFIG['company'] = 'My Company Name';
  13. /*
  14. * Your logo URL (or FALSE)
  15. */
  16. $_CONFIG['logo'] = 'lg_logo.gif';
  17. /*
  18. * Main style color
  19. */
  20. $_CONFIG['color'] = '#E48559';
  21. /*
  22. * Type of command to make a SSH connection (`plink' or `sshpass')
  23. */
  24. $_CONFIG['sshcommand'] = 'plink';
  25. /*
  26. * Putty `plink' command path (for SSH connections)
  27. */
  28. $_CONFIG['plink'] = '/usr/local/bin/plink';
  29. /*
  30. * sshpass command path (for SSH connections)
  31. */
  32. $_CONFIG['sshpass'] = '/usr/bin/sshpass';
  33. /*
  34. * URL address of the IP whois service
  35. */
  36. $_CONFIG['ipwhois'] = 'http://noc.hsdn.org/whois/';
  37. /*
  38. * URL address of the AS whois service
  39. */
  40. $_CONFIG['aswhois'] = 'http://noc.hsdn.org/aswhois/';
  41. /**
  42. * Router nodes
  43. *
  44. * Parameters:
  45. * url - URL address in format: [ssh|telnet]://[login]:[password]@[host]:[port]
  46. * pingtraceurl - URL address for ping and traceroute tools (or FALSE)
  47. * description - Node description
  48. * group - Node group name (of FALSE)
  49. * ipv6 - Node is supports IPv6 (TRUE/FALSE)
  50. * os - Node OS (ios, mikrotik, quagga, junos)
  51. */
  52. $_CONFIG['routers'] = array
  53. (
  54. 'example1' => array
  55. (
  56. 'url' => 'telnet://route-views.optus.net.au:23',
  57. 'pingtraceurl' => FALSE,
  58. 'description' => 'Example Router 1',
  59. 'group' => 'AS12345',
  60. 'ipv6' => TRUE,
  61. 'os' => 'ios',
  62. ),
  63. 'example2' => array
  64. (
  65. 'url' => 'telnet://route-server.eastlink.ca:23',
  66. 'pingtraceurl' => FALSE,
  67. 'description' => 'Example Router 2',
  68. 'group' => 'AS12345',
  69. 'ipv6' => TRUE,
  70. 'os' => 'ios',
  71. ),
  72. );
  73. /* End of file */