1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>IPplan - IP address management and tracking</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="docu.css"></HEAD
><BODY
CLASS="article"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="ARTICLE"
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
><A
NAME="AEN2"
>IPplan - IP address management and tracking</A
></H1
><DIV
CLASS="revhistory"
><TABLE
WIDTH="100%"
BORDER="0"
><TR
><TH
ALIGN="LEFT"
VALIGN="TOP"
COLSPAN="3"
><B
>Revision History</B
></TH
></TR
><TR
><TD
ALIGN="LEFT"
>Revision 4.81</TD
><TD
ALIGN="LEFT"
>2007-01-23</TD
><TD
ALIGN="LEFT"
>Revised by: re</TD
></TR
><TR
><TD
ALIGN="LEFT"
COLSPAN="3"
></TD
></TR
><TR
><TD
ALIGN="LEFT"
>Revision 2.91</TD
><TD
ALIGN="LEFT"
>2002-05-17</TD
><TD
ALIGN="LEFT"
>Revised by: re</TD
></TR
><TR
><TD
ALIGN="LEFT"
COLSPAN="3"
></TD
></TR
></TABLE
></DIV
><DIV
><DIV
CLASS="abstract"
><P
></P
><A
NAME="AEN15"
></A
><P
>IPplan is a free (GPL), web based, multilingual, IP address
management and tracking tool written in
<A
HREF="http://www.php.net"
TARGET="_top"
>php 4</A
>, simplifying the
administration of your IP address space. IPplan goes beyond IP
address management including DNS administration, configuration
file management, circuit management (customizable via templates)
and storing of hardware information (customizable via templates).
IPplan can handle a single network or cater for multiple networks
and customers with overlapping address space. See the
introduction section for more.</P
><P
></P
></DIV
></DIV
><HR></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
>1. <A
HREF="#intro"
>Introduction</A
></DT
><DD
><DL
><DT
>1.1. <A
HREF="#copyright"
>Copyright Information</A
></DT
><DT
>1.2. <A
HREF="#disclaimer"
>Disclaimer</A
></DT
><DT
>1.3. <A
HREF="#newversions"
>New Versions</A
></DT
><DT
>1.4. <A
HREF="#credits"
>Credits</A
></DT
><DT
>1.5. <A
HREF="#feedback"
>Feedback</A
></DT
><DT
>1.6. <A
HREF="#translations"
>Translations</A
></DT
></DL
></DD
><DT
>2. <A
HREF="#requirements"
>Requirements</A
></DT
><DD
><DL
><DT
>2.1. <A
HREF="#databases"
>Databases</A
></DT
><DT
>2.2. <A
HREF="#addons"
>Additional features</A
></DT
></DL
></DD
><DT
>3. <A
HREF="#installation"
>Installation</A
></DT
><DD
><DL
><DT
>3.1. <A
HREF="#custom"
>Customization</A
></DT
></DL
></DD
><DT
>4. <A
HREF="#downloads"
>Downloads, bugs and forums</A
></DT
><DD
><DL
><DT
>4.1. <A
HREF="#screenshots"
>Screenshots</A
></DT
></DL
></DD
><DT
>5. <A
HREF="#modes"
>Mode of operation</A
></DT
><DD
><DL
><DT
>5.1. <A
HREF="#mode-services"
>Services company</A
></DT
><DT
>5.2. <A
HREF="#mode-isp"
>ISP</A
></DT
></DL
></DD
><DT
>6. <A
HREF="#concepts"
>Concepts</A
></DT
><DD
><DL
><DT
>6.1. <A
HREF="#deployment"
>Deployment strategy</A
></DT
><DT
>6.2. <A
HREF="#linking"
>Linking addresses</A
></DT
></DL
></DD
><DT
>7. <A
HREF="#admin"
>Administration</A
></DT
><DD
><DL
><DT
>7.1. <A
HREF="#admin-user"
>Admin user</A
></DT
><DT
>7.2. <A
HREF="#customer-access"
>Customer access</A
></DT
><DT
>7.3. <A
HREF="#subnet-access"
>Subnet access</A
></DT
><DT
>7.4. <A
HREF="#g-a-b"
>Group authority boundaries</A
></DT
></DL
></DD
><DT
>8. <A
HREF="#circuit"
>Circuit administration, host configuration data and asset
information</A
></DT
><DT
>9. <A
HREF="#file"
>Device configuration file management</A
></DT
><DT
>10. <A
HREF="#AEN209"
>DNS administration</A
></DT
><DD
><DL
><DT
>10.1. <A
HREF="#export"
>Handling exported zones</A
></DT
><DT
>10.2. <A
HREF="#individual"
>Automatic updating of zone records</A
></DT
></DL
></DD
><DT
>11. <A
HREF="#registrars"
>Dealing with registrars</A
></DT
><DT
>12. <A
HREF="#searching"
>Searching</A
></DT
><DD
><DL
><DT
>12.1. <A
HREF="#individual"
>Searching for individual address details</A
></DT
><DT
>12.2. <A
HREF="#areas"
>Searching areas and ranges</A
></DT
></DL
></DD
><DT
>13. <A
HREF="#config"
>Config file</A
></DT
><DT
>14. <A
HREF="#import-data"
>Importing data</A
></DT
><DD
><DL
><DT
>14.1. <A
HREF="#tab"
>TAB delimited data</A
></DT
><DT
>14.2. <A
HREF="#nmap"
>Importing using NMAP</A
></DT
></DL
></DD
><DT
>15. <A
HREF="#templates"
>Templates</A
></DT
><DD
><DL
><DT
>15.1. <A
HREF="#iptemplates"
>Customer, Subnet, DNS and IP address templates</A
></DT
><DT
>15.2. <A
HREF="#registrartemplates"
>Registrar templates</A
></DT
></DL
></DD
><DT
>16. <A
HREF="#dhcp"
>DHCP</A
></DT
><DT
>17. <A
HREF="#triggers"
>Triggers</A
></DT
><DT
>18. <A
HREF="#poller"
>External command line poller</A
></DT
><DT
>19. <A
HREF="#AEN429"
>IP address request system</A
></DT
><DT
>20. <A
HREF="#AEN441"
>Authentication schemes</A
></DT
><DT
>21. <A
HREF="#problems"
>Problems</A
></DT
><DT
>22. <A
HREF="#limitations"
>Limitations</A
></DT
><DT
>23. <A
HREF="#faq"
>Questions and Answers (FAQ)</A
></DT
></DL
></DIV
><P
><A
HREF="http://sourceforge.net"
TARGET="_top"
>http://sourceforge.net</A
></P
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="intro"
>1. Introduction</A
></H2
><P
>IPplan is a web based, multilingual, IP address management
and tracking tool based on <A
HREF="http://www.php.net"
TARGET="_top"
>php
4</A
>, simplifying the administration of your IP address space.
IPplan can handle a single network or cater for multiple networks
with overlapping address space.</P
><P
>
Current functionality includes
<P
></P
><UL
><LI
><P
>internationalization</P
></LI
><LI
><P
>importing network definitions from routing tables</P
></LI
><LI
><P
>importing definitions from TAB delimited files and
<A
HREF="http://www.insecure.org"
TARGET="_top"
>NMAP's</A
> XML
format</P
></LI
><LI
><P
>multiple administrators with different access profiles
(per group, allowing access per customer, per network
etc.)</P
></LI
><LI
><P
>define address space authority boundaries per
group</P
></LI
><LI
><P
>finding free address space across a range</P
></LI
><LI
><P
>split and join networks to make them smaller and larger
- ip definitions remain intact</P
></LI
><LI
><P
>display overlapping address space between
networks</P
></LI
><LI
><P
>search capabilities</P
></LI
><LI
><P
>an audit log - contents before and after change is
logged</P
></LI
><LI
><P
>statistics</P
></LI
><LI
><P
>keeping track of and sending SWIP/registrar
information</P
></LI
><LI
><P
>DNS administration (forward and reverse zones, import
existing zones via zone transfer)</P
></LI
><LI
><P
>template system to extend IPplan to contain site
specific information like circuit data, host configuration
data, asset information</P
></LI
><LI
><P
>device configuration file management</P
></LI
><LI
><P
>external stylesheet to change display look</P
></LI
><LI
><P
>triggers - every user event can call a user defined
function - useful to execute backend DNS scripts</P
></LI
><LI
><P
>external poller - scan subnets for active addresses to
gather usage statistics</P
></LI
><LI
><P
>IP address request system - allows users to request
static IP addresses from the database</P
></LI
></UL
>
</P
><P
>Two authentication methods are available - either
IPplan's own internal authentication scheme, or alternatively
make use of any external Apache authentication module. This
includes single sign on systems like SiteMinder or your own scheme
based on LDAP, or any other Apache compatible system.</P
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="copyright"
>1.1. Copyright Information</A
></H3
><P
>This document is copyrighted (c) 2002 Richard E and is
distributed under the terms of the Linux Documentation Project
(LDP) license, stated below.</P
><P
>Unless otherwise stated, Linux HOWTO documents are
copyrighted by their respective authors. Linux HOWTO documents
may be reproduced and distributed in whole or in part, in any
medium physical or electronic, as long as this copyright notice
is retained on all copies. Commercial redistribution is allowed
and encouraged; however, the author would like to be notified of
any such distributions.</P
><P
>All translations, derivative works, or aggregate works
incorporating any Linux HOWTO documents must be covered under
this copyright notice. That is, you may not produce a derivative
work from a HOWTO and impose additional restrictions on its
distribution. Exceptions to these rules may be granted under
certain conditions; please contact the Linux HOWTO coordinator at
the address given below.</P
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="disclaimer"
>1.2. Disclaimer</A
></H3
><P
>No liability for the contents of this documents can be
accepted. Use the concepts, examples and other content at your
own risk. As this is a new edition of this document, there may be
errors and inaccuracies, that may of course be damaging to your
system. Proceed with caution, and although this is highly
unlikely, the author(s) do not take any responsibility for
that.</P
><P
>All copyrights are held by their by their respective
owners, unless specifically noted otherwise. Use of a term in
this document should not be regarded as affecting the validity of
any trademark or service mark.</P
><P
>Naming of particular products or brands should not be seen
as endorsements.</P
><DIV
CLASS="warning"
><P
></P
><TABLE
CLASS="warning"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/warning.gif"
HSPACE="5"
ALT="Warning"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>It is strongly recommended to make a backup of your
system before major installation or upgrades and to backup at
regular intervals.</P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="newversions"
>1.3. New Versions</A
></H3
><P
>See the CHANGELOG file for more information.</P
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="credits"
>1.4. Credits</A
></H3
><P
>Thanks to <A
HREF="http://www.vhconsultants.com"
TARGET="_top"
> ValueHunt Inc.</A
> for the use of their layout class used for
rendering all HTML pages.</P
><P
>Thanks to <A
HREF="http://adodb.sourceforge.net/"
TARGET="_top"
> AdoDB</A
> for the use of their generic database abstraction
class.</P
><P
>Thanks to <A
HREF="http://vex.sourceforge.net"
TARGET="_top"
> Vex</A
> for their Visual Editor for XML used to generate the
IPplan documentation.</P
><P
>Thanks to <A
HREF="http://phplayersmenu.sourceforge.net"
TARGET="_top"
> The PHP Layers Menu System</A
> for their menu system.</P
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="feedback"
>1.5. Feedback</A
></H3
><P
>Feedback is most certainly welcome for this document.
Without your submissions and input, this document wouldn't
exist. Please send your additions, comments and criticisms to the
following email address : <CODE
CLASS="email"
><<A
HREF="mailto:ipplan@gmail.com"
>ipplan@gmail.com</A
>></CODE
>.</P
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="translations"
>1.6. Translations</A
></H3
><P
>See the INSTALL and TRANSLATIONS files on how to enable
multilingual support and how to do a translation to your own
language. Doing a translation does not require any programming
experience. Current languages supported are English, Bulgarian,
French - Auto Translation, German - Auto Translation, Italian -
Auto Translation, Norwegian - Auto Translation, Portuguese - Auto
Translation and Spanish - Auto Translation.</P
><P
>Nickola Kolev for the Bulgarian translation - nikky at
mnet.bg.</P
><P
>Conrado Pinto Rebessi for the Brazillian translation -
conradopinto at yahoo.com.br</P
><P
>Tadashi Jokagi for the Japanese transalation - elf2000 at
users.sourceforge.net</P
><P
>Vladimir Leshchenko for the Russian translation - worker at
smtn.stavropol.ru </P
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="requirements"
>2. Requirements</A
></H2
><P
>IPplan requires a working web server installation. Currently
the <A
HREF="http://httpd.apache.org"
TARGET="_top"
>Apache</A
> web server
is preferred, but php as an ISAPI or CGI module on IIS works too -
follow the appropriate installation instructions in the IPplan
directory (INSTALL-IIS+MSSQL). Apache works just fine on Windows
platforms too. For installing Apache on a Windows platform, follow
<A
HREF="http://httpd.apache.org/docs/windows.html"
TARGET="_top"
> these</A
> instructions. Or you can use
<A
HREF="http://www.appservnetwork.com/"
TARGET="_top"
>AppServ</A
> or
<A
HREF="http://www.wampserver.com/en/index.php"
TARGET="_top"
> WampServer</A
> which are complete installation packages for
Apache, MySQL and PHP for Windows - just add IPplan by following
the installation instructions in the IPPLAN-WINDOWS file (part of
IPPlan).</P
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="databases"
>2.1. Databases</A
></H3
><P
>IPplan requires a working database installation. The
following databases currently work:</P
><P
></P
><UL
><LI
><P
><A
HREF="http://www.mysql.com"
TARGET="_top"
>MySQL 3.23.15 or
higher</A
> (preferred)</P
></LI
><LI
><P
><A
HREF="http://www.postgresql.org"
TARGET="_top"
>PostgreSQL 7.1
or higher</A
></P
></LI
><LI
><P
><A
HREF="http://www.oracle.com"
TARGET="_top"
>Oracle 9i or
higher</A
> (SQL99)</P
></LI
><LI
><P
>Microsoft SQL server (both 7 and 2000)</P
></LI
></UL
><P
>The following may work, but are untested - Sybase. In fact,
any database that supports SQL99 compliant joins, in particular
LEFT JOIN, should work. See limitations section below for
more.</P
><P
>The web scripting language <A
HREF="http://www.php.net"
TARGET="_top"
> php 4.1 or higher</A
> must also be installed as a module in
Apache (NOT as a cgi). Php must have the preferred database
driver compiled in and enabled. See the respective web sites and
installation documents for more detail. IPplan works just fine
with a combination of the Apache web server and php on a Windows
platform - just read the relevant installation instructions for
Windows carefully.</P
><DIV
CLASS="tip"
><P
></P
><TABLE
CLASS="tip"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>IPplan is also known to work in a distributed, replicated
MySQL environment with multiple database servers. See
<A
HREF="http://www.oreilly.com/catalog/hpmysql/chapter/ch07.pdf"
TARGET="_top"
> www.oreilly.com</A
> for more information.</P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="addons"
>2.2. Additional features</A
></H3
><P
>To enable SNMP support, you will require the
<A
HREF="http://sourceforge.net/projects/net-snmp"
TARGET="_top"
> ucd-snmp</A
> package installed and configured in your
environment. This must also be activated in the php
configuration. SNMP support is only required if you wish to read
routing tables directly from routers.</P
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="installation"
>3. Installation</A
></H2
><P
>Follow the instructions for your platform and database in the
INSTALL files in the IPplan directory.</P
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="custom"
>3.1. Customization</A
></H3
><P
>IPplan is customizable in many ways. See the sections on
templates, triggers and pollers. You can also extend the menu
system to include your own custom menus for other systems at your
site - see the config.php file for an example.</P
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="downloads"
>4. Downloads, bugs and forums</A
></H2
><P
>You can report bugs, contribute to forums and download it
<A
HREF="http://sourceforge.net/projects/iptrack"
TARGET="_top"
>here</A
>
and look at the latest
<A
HREF="http://cvs.sourceforge.net/viewcvs.py/iptrack/ipplan/TODO?view=markup"
TARGET="_top"
> TODO</A
> and
<A
HREF="http://cvs.sourceforge.net/viewcvs.py/iptrack/ipplan/CHANGELOG?view=markup"
TARGET="_top"
> CHANGELOG</A
>.</P
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="screenshots"
>4.1. Screenshots</A
></H3
><P
>You can find some screen shots <A
HREF="screenshots"
TARGET="_top"
> here.</A
></P
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="modes"
>5. Mode of operation</A
></H2
><P
>There are two modes of operation, one can be classified as a
services company and the other as an ISP.</P
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="mode-services"
>5.1. Services company</A
></H3
><P
>As a services company your primary use of IPplan will be to
manage individual IP address records and the address plan of one
or more customers.</P
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="mode-isp"
>5.2. ISP</A
></H3
><P
>In ISP mode, you will assign blocks of IP address space to
your customers. In this mode, you will not be concerned at all
with individual IP address records and how the customer breaks
down his assigned address space. When you operate as an ISP, you
may also generate SWIP/registrar entries, which are only useful
if you deal directly with ARIN or any other registrar. (SWIP is
enabled in the config.php file, see ARIN
<A
HREF="http://www.arin.net/minutes/tutorials/swipit.htm"
TARGET="_top"
> tutorial</A
> for more details). All the relevant
SWIP/registrar information is entered when the customer is
created.</P
><P
>When using this mode, I suggest creating a dummy customer
which holds all the allocated address space from your regional
registrar (ARIN?) already broken up into the various blocks that
you will eventually assign to your customers. All these blocks
should be called "free" to allow them to be found using
the "Find free" menu option. Once you are ready to
assign a block, create a new customer with all the relevant
SWIP/registrar information completed, go to your dummy customer
and move a block of address space to the newly created customer,
and finally generate a SWIP/registrar entry for the new block. In
this mode areas and ranges are not too relevant except for the
dummy customer (see concepts below). You may also need to create
a template for your registrar in the templates directory. If you
have done this, feel free to contribute it to IPplan.</P
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="concepts"
>6. Concepts</A
></H2
><P
>The flow of address management is based on the creation of
areas, then ranges which belong to areas, and finally, subnets
which belong to ranges. Actually, only subnets are required, but on
large networks it makes logical sense to group the network into
areas to ease administration and to reduce routing updates on the
network. There is a jpeg drawing included with the distribution
that graphically shows these relationships. The methodology
employed borrows significantly from OSPF routing concepts which are
explained more fully
<A
HREF="http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/ospf.htm"
TARGET="_top"
> here</A
>.</P
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="deployment"
>6.1. Deployment strategy</A
></H3
><P
>So in a new installation, first create the areas, then
create ranges adding them to areas, and finally create subnets.
Searching is now a simple matter of selecting an area which will
display all the ranges for the area, or selecting no area and
simply selecting a range from the total list of ranges, or simply
selecting a base network address.</P
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Within a customer or autonomous system, no overlaps of
address space is allowed. This follows standard IP addressing
rules. You can have overlapping ranges/aggregates, but the
default behaviour of ranges also prevents overlaps. This can be
changed in the config.php file.</P
></TD
></TR
></TABLE
></DIV
><P
>To handle challenges like NAT or other overlapping address
space, you will be required to create multiple autonomous
systems. See 'Searching' below how to see information
across multiple autonomous systems.</P
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="linking"
>6.2. Linking addresses</A
></H3
><P
>IP address records can be linked together. This allows one
address or multiple addresses to reference another address or
addresses. Using this feature allows for the referencing of NATed
addresses or having a link to a loopback address of a device.
Linking is done on the IP address details page by completing the
"Linked address" field. Once the field is completed,
you can follow the link. The link also appears on subnet summary
pages.</P
><P
>You can also link many addresses in one go by choosing
multiple addresses in the "Select multiple addresses to do a
bulk change" window, then completing the "User"
field as follows:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>LNKx.x.x.x userinfo</PRE
></FONT
></TD
></TR
></TABLE
><P
>The LNK identifier must be in uppercase, followed by
exactly one valid IP address with no spaces, then followed by an
optional space and user description. After the page is submitted,
the embedded LNK will vanish.</P
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>If the destination record of a linked address does not
exist, a record will automatically get created pointing back to
the source address, but only if the destination subnet exists.
This is to signal the "Find Next Free" address logic
of the subnet that the destination address is used.</P
></TD
></TR
></TABLE
></DIV
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="admin"
>7. Administration</A
></H2
><P
>The access control is divided up into three layers and
revolves around the creation of groups:</P
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="admin-user"
>7.1. Admin user</A
></H3
><P
>Firstly you will need to create users and groups using the
admin user defined in the config.php script. The admin user can
only be used on the admin pages. Once you are done with the admin
functions, you will be required to re-authenticate as one of the
newly created users as soon as you access functions on the main
index page.</P
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="customer-access"
>7.2. Customer access</A
></H3
><P
>When a customer is created, a group must be assigned to the
customer. This will be the customers admin group and all members
of this group can create and delete both subnets, ranges, areas
and individual IP address records for the customer.</P
><P
>When the subnet is created, the creator will choose a
subnet admin group.</P
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="subnet-access"
>7.3. Subnet access</A
></H3
><P
>The users assigned to the group that has subnet access can
only modify individual IP records for that subnet.</P
><P
>Initially I would create three groups, one group that can
create customers, one group that can create subnets, areas and
ranges, and another group which can only modify individual IP
records. Normally in large networks the people that modify IP
records are not the same people that administer routers and
configure the IP address space.</P
><P
>If a group is set to see only a particular customer, the
same group needs to be used for all operations for the customer.
The side effect to this is that the users assigned to the group
have full access to the customer and can make any changes to the
customers data, including creating and deletion of subnets. This
is not ideal and will be changed in future.</P
><DIV
CLASS="tip"
><P
></P
><TABLE
CLASS="tip"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Groups can be created that prevent certain users from
changing an administrator defined number of reserved addresses
at the start of a subnet.</P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="g-a-b"
>7.4. Group authority boundaries</A
></H3
><P
>Areas of responsibility can be assigned to a group, thus
limiting what address space a group can create networks in. The
default behavior allows administration anywhere. Care should be
taken when using this feature as changing the boundaries at a
later stage may orphan some parts of the database and yield data
inaccessible.</P
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>If a user belongs to multiple groups and one of the
groups does not have boundaries defined, then the user is
granted all access. Thus boundaries are a sum of all the
boundaries the user belongs to.</P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="tip"
><P
></P
><TABLE
CLASS="tip"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Bounds are also useful to create users that only have
read access to the IPplan information. Select the "Read
Only" option when creating a new group.</P
></TD
></TR
></TABLE
></DIV
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="circuit"
>8. Circuit administration, host configuration data and asset
information</A
></H2
><P
>Using the template capability IPplan can be extended to
contain custom information about your site. You can add any number
of custom fields for your site. See the section on
"Templates" for further information.</P
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="file"
>9. Device configuration file management</A
></H2
><P
>Any number of files can be attached to individual IP records.
Using this feature, configuration data (text and binary, drawings
etc) for devices can be stored and managed by IPplan.</P
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="AEN209"
>10. DNS administration</A
></H2
><P
>Both forward and reverse zones can be created via the web
interface. Zone domains are forward zones - there can be as many
forward zones as you like per customer. Each of these can be unique
or they can even overlap with other customers.</P
><P
><EM
>Forward Zones:</EM
></P
><P
>To create a forward zone, select a customer and select
"Add a DNS zone". The next screen will allow you to enter
information for the new zone. The domain name must be entered as
must at least two nameservers.</P
><P
>At this point you have the option of creating a new zone from
scratch, cloning (copying) a zone from an already existing zone
called "template.com", or importing an existing zone via
a zone transfer. If you do a zone transfer, the PRIMARY or
SECONDARY DNS servers must be directly contactable from the
webserver on which IPplan is running. If the DNS server is not
contactable an error will be returned.</P
><P
>If a domain is created from scratch, the domain name must be
entered as must at least two upstream DNS servers. The DNS servers
are automatically entered for you if the customer record (created
via "Create a new customer/autonomous system") contains
DNS servers. This is a good way to not have to manually add the DNS
servers for each new zone created. The DNS servers can be changed
and will be independent per zone created. At the bottom of the
Add/Edit screen is place to enter two zone file paths. In future
this can be used to determine where the zone must be saved or on
what DNS server the zone must be created - currently these fields
do nothing.</P
><P
>The next step is to add individual records to the newly
created zone. Do this under the "Zone DNS records" main
menu function. Select the customer, select the domain and add a
host. The "Host name" refers to the left hand side of a
bind zone file, then the type (A, CNAME or MX - more types in
future) and the "IP/Hostname" refers to the right hand
side of the zone file. In future the screen will change depending
on the record type you select and more record types will be
possible. The sort order determines the placement of the record in
the zone and on the screen. This is a number and the default is
9999 or the end of the file. If you want to insert records between
other records, work out a numbering plan.</P
><P
>In future this will be automatic with options to "Insert
before" and "Insert after". Currently you can
renumber the values retaining the order of the entries.</P
><P
><EM
>Reverse zones:</EM
></P
><P
>To create reverse zones is very much like creating a forward
zone, except that there are no detail records. All that is required
is to create a starting address and mask. The actual reverse
records are extracted based on the start and mask from the IP
records when you create a subnet and add records to the subnet. The
field used is the host name field and all invalid information in
this field will be ignored with a warning.</P
><P
>Once your forward and reverse zones are created, each time a
change is made you will be required to export the zone by clicking
on the "Export zone" option. The output generated is in
XML and must then be parsed using and XSLT processor into a format
compatible with your DNS server.</P
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="export"
>10.1. Handling exported zones</A
></H3
><P
>The zone files are created in the directory specified by
the DNSEXPORTPATH variable in the config.php file. The files are
in XML format and are created when a user hits the Export option
either on the DNS page or Reverse zone page. The files have a
format of zone_ or revzone_ followed by the zone name followed by
a trailing unique identifier, which is operating system
dependent. The file has a .xml extension.</P
><P
>If a template is attached to the forward zone, the template
fields will also appear in the exported XML file with tag names
the same as the template field names.</P
><P
>These files must be processed using a XML stylesheet
processor into a format suitable for your DNS server, and then
placed into the correct location and activated by your DNS
server. This is beyond the scope of IPplan and will require
custom scripts for your installation. Contributions are
welcome.</P
><P
>Sample procedure:</P
><P
>You will require a script for your environment that
periodically runs to check for new zone files that have been
added to the output directory. You will probably use cron to do
this. Once your script finds a file, you can extract the file
paths saved in IPplan using a simple grep:</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>grep -A 1 '<primary>' /tmp/revzone_FS9mEU|grep -v '<primary>'</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>This gives me the primary file path. Once you have the
destination path, process the file and copy the output by
whatever means your environment uses to the target DNS server. I
would suggest using scp with a public key on the remote server to
prevent having to type in user id's and passwords during the
copy process.</P
><P
>Processing the file:</P
><P
>A sample XSLT stylesheet can be found in the contrib
directory to transform the forward zone XML (files starting with
zone_) into a bind8 or higher compatible zone file. I use
xsltproc from the libxslt package (
<A
HREF="http://xmlsoft.org/XSLT/"
TARGET="_top"
> http://xmlsoft.org/XSLT/</A
>) which should be installed on
most modern linux systems. A different stylesheet (.xsl file)
will be required for each DNS server system that you use - I have
no intention of writing style sheets for all the various DNS
servers out there, but you are more than welcome to send me style
sheets for different DNS servers to be included with
IPplan.</P
><P
>A sample command is:</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>xsltproc bind9_zone.xsl zone_</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>For sample XML input of:</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
><?xml version="1.0" ?>
<zone domain="test.com">
<soa serialdate="20040626" serialnum="04" ttl="21600" retry="3600" refresh="86400" expire="604800" minimumttl="21600" email="" />
<record><NS><iphostname>ns1.example.com</iphostname></NS></record>
<record><NS><iphostname>ns2.example.com</iphostname></NS></record>
<record><NS><iphostname>ns3.example.com</iphostname></NS></record>
<record><NS><iphostname>ns4.example.com</iphostname></NS></record>
<record><A><host>myhost</host><iphostname>10.10.10.1</iphostname></A></record>
<record><CNAME><host>myhost-alias</host><iphostname>myhost</iphostname></CNAME></record>
<record><MX><host></host><iphostname>mailhost</iphostname></MX></record>
</zone></PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>Generating output as follows:</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>$ORIGIN test.com.
$TTL 86400
@ IN SOA test.com. dnsadmin.test.com. (
2004062604 ; serial
21600 ; refresh
3600 ; retry
604800 ; expire
21600 ) ; minimum TTL
IN NS ns1.example.com.
IN NS ns2.example.com.
IN NS ns3.example.com.
IN NS ns4.example.com.
myhost IN A 10.10.10.1
myhost-alias IN CNAME myhost
IN MX 10 mailhost</PRE
></FONT
></TD
></TR
></TABLE
>
</P
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="individual"
>10.2. Automatic updating of zone records</A
></H3
><P
>IP subnet records (which equate to zone PTR records) and
forward zone A records will automatically get syncronised and
updated provided a number of criteria are fulfilled.</P
><P
>If a DNS A record is created or updated, and there is
exactly one A record across all the customers zones matching one
IP subnet record, then the IP record hostname field will be
updated with the A record hostname field.</P
><P
>If an IP record hostname field is updated, then the zone A
record field will be updated if there is exactly one A record
matching the IP record across all the customers zones.</P
><P
>If an IP record hostname field is updated and a matching A
record cannot be found, then an A record will automatically be
created in the matching domain provided there is only one
matching domain. This will only happen if the DNSAUTOCREATE
setting is TRUE in config.php.</P
><P
>Under all the above conditions a warning message will be
displayed stating that an update occured. The appropriate log
entries will be made and triggers will fire.</P
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="registrars"
>11. Dealing with registrars</A
></H2
><P
>Registrars are interacted with by email. IPplan can manage
all the records and manage all the fields and data required to
generate the registrar updates, no matter what the registrar is
(ARIN, RIPE, APNIC etc). Before these functions will work, the
correct config variables need to be set - these include the
REGENABLED, MAINTAINERID, REGISTRY, REGEMAIL etc. Only users
belonging to the customer admin group can send these updates.
Additional fields can be added to the IPplan display pages if
required, and these fields are also available to the registrar
templates.</P
><P
>To generate updates, the required registrar template is
selected. IPplan includes a limited number of templates, but these
are fully customizable and simple to create and modify - see the
section on "Templates" later in the manual. Once the
template is selected, the fields from the database are substituted
into the template file and the output is displayed on the screen.
The user then selects which updates should be sent to the
registrar. The selected updates are then sent via email and the
date the updates were sent are recorded in the IPplan
database.</P
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="searching"
>12. Searching</A
></H2
><P
>Creating a special customer called 'All' allows
searching for information across all the available
customer/autonomous systems using the 'Display subnet'
function. This special customer can contain areas and ranges that
limit the scope of searches, just like normal customers. Using this
feature allows a user to see the entire network picture in one
view.</P
><DIV
CLASS="tip"
><P
></P
><TABLE
CLASS="tip"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>When creating new subnets, it is also beneficial to create
unused subnets with a a description of either 'free' or
'spare'. These can be searched for at a later stage
using the 'Find Free' function.</P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="tip"
><P
></P
><TABLE
CLASS="tip"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>It may also be beneficial to give ASE (Autonomous System
External, networks not local to yours) a special handle like
EXTERNAL so that they can be searched for at a later stage. These
networks often appear in routing tables as static routes to third
parties (not via the Internet).</P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="individual"
>12.1. Searching for individual address details</A
></H3
><P
>Searching can also be done on individual addresses using
the 'Match any IP address in subnet' option of the
'Display subnet information' option. This is useful for
finding which networks, either for a single customer, or for all
customers an IP address belongs to. Using this option makes it
easy to find the offending network in a complaint situation if
you are an ISP.</P
><P
>If matching by IP address, you will automatically jump to
the IP address edit page if the search is unique and matches only
one subnet from one customer. If you use the 'All'
customer you will need to click on the relevant customer network
you wish to work with.</P
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="areas"
>12.2. Searching areas and ranges</A
></H3
><P
>You can also create areas and ranges to search across only
certain address space ranges. Areas are containers for ranges.
Selecting an area that has ranges attached will search only in
those ranges. Select an area and not selecting a range will
search across all the ranges in the area.</P
><P
>Depending on what settings have been selected in the
config.php file, ranges may either never overlap (the default),
have overlaps within an area only, or overlap in anyway,
including having duplicate ranges.</P
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Areas with no attached ranges will not display in the
"Area" selection list until ranges are added to the
area. Areas with no ranges yeild no search results.</P
></TD
></TR
></TABLE
></DIV
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="config"
>13. Config file</A
></H2
><P
>A a number of settings that can be changed in the config.php
file. These include the database connection information, admin user
and password, and the number of lines displayed in tables. See the
comments in the config.php file for more details.</P
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="import-data"
>14. Importing data</A
></H2
><P
>Data can be imported by the admin user via TAB delimited text
files or from output generated in XML format by
<A
HREF="http://www.insecure.org"
TARGET="_top"
>NMAP</A
>.</P
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="tab"
>14.1. TAB delimited data</A
></H3
><P
>Network definitions or individual ip records can be
imported in TAB delimited format.</P
><P
>The order of columns for network definitions or subnet
descriptions are (three columns required): The first column
contains the IP base address, the second the description and the
third the mask either in dotted decimal format or in bit
format.</P
><P
>The order of columns for importing IP records should be
(six columns required): The first column contains the IP address,
the second the user, the third the location, the fourth the
description, the fifth the hostname and the sixth the telephone
number.</P
><P
>If you have more than six columns, the remaining columns
will be entered into the user defined fields specified in the
template. The order will be the order the fields are defined in
the XML template file.</P
><TABLE
BORDER="0"
WIDTH="100%"
CELLSPACING="0"
CELLPADDING="0"
CLASS="EPIGRAPH"
><TR
><TD
WIDTH="45%"
> </TD
><TD
WIDTH="45%"
ALIGN="LEFT"
VALIGN="TOP"
><I
><P
><I
>See the templates section for details on how the
templates work.</I
></P
></I
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="nmap"
>14.2. Importing using NMAP</A
></H3
><P
>A typical application for this would be to obtain data for
networks that there are no records for. NMAP would be used to
obtain the host info of all the addresses that are active on the
network. Once this is done, the data can be read into IPplan. The
NMAP parameters required by IPplan to generate a valid import
file are:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>Â -sP -oX output.xml</PRE
></FONT
></TD
></TR
></TABLE
><P
>To speed up the process, you can add -n to not resolve host
names. The import process also understands the -O operating
system detection parameter. To use -O, you will need to drop the
-sP parameter. Using -O increases scanning time
significantly.</P
><P
>As of version 3.93 of nmap, the -sP option also returns the
MAC address which will be recorded in the MAC address field of
the subnet IP record. MAC addresses only appear if the scan was
done using root user - thus the MAC address will not appear if
nmap was executed through php and the webserver. You can set the
S bit on the nmap binary, but this is not advised due to security
concerns.</P
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="templates"
>15. Templates</A
></H2
><P
>Various forms of templates are available. These include
templates that add additional, custom fields to the IPplan display
pages (different templates can be added to the customer, subnet and
ip address record pages), and templates that then munipulate the
data contained in the IPplan databases to generate output for
various registrars. All of these templates are fully administrator
customizable with display fields added to customer and subnet pages
automatically available in output templates used to generate
registrar updates.</P
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="iptemplates"
>15.1. Customer, Subnet, DNS and IP address templates</A
></H3
><P
>The administrator can define a custom template in IPplan to
allow the addition of as many custom fields to the customer,
subnet, DNS forward zones and ip address record pages as the
administrator wishes. This functionality allows flexibility in
the way data is added to the database. Some uses for these
templates include tracking asset information or WAN circuit
information, the management of DHCP address space, dealing with
additional and ever changing registrar requirements.</P
><P
>As mentioned there are different template files for the
customer, subnet, DNS and IP address pages. The template for each
of these pages has a different name:</P
><P
><CODE
CLASS="varname"
>Customer pages - custtemplate.xml</CODE
></P
><P
><CODE
CLASS="varname"
>Subnet pages - basetemplate.xml</CODE
></P
><P
><CODE
CLASS="varname"
>DNS forward zones -
fwdzonetemplate.xml</CODE
></P
><P
><CODE
CLASS="varname"
>IP address pages - iptemplate.xml</CODE
></P
><P
><CODE
CLASS="varname"
>IP address pages (network address) -
iptemplate-network.xml</CODE
></P
><P
>A sample template called iptemplate.xml.sample can be found
in the /ipplan/templates/display directory.</P
><P
>If a template called called iptemplate-network.xml exists,
then this template will be used for network addresses (the first
address of the subnet). This is useful to define subnet wide
information like VLAN id's, telco line numbers, router
configurations etc. If the iptemplate-network.xml does not exist,
then the iptemplate.xml template will be used for network
addresses.</P
><P
>The above templates are generic and act across all
customers, and thus all fields are the same for all customers.
Unique templates can be created per customer by adding the
customer id to the template name. To obtain the customer id (a
number), use the Admin/Maintenance function within IPplan. To
create a unique IP address template for customer id 25, place a
template file called iptemplate-25.xml in the
/ipplan/templates/display directory. This template will override
the default template for customer 25 only.</P
><DIV
CLASS="sect3"
><HR><H4
CLASS="sect3"
><A
NAME="format"
>15.1.1. Format of Customer, Subnet and IP address template
files</A
></H4
><P
>The templates are well formed XML files with a .xml
extension and should be stored in the /ipplan/templates/display
directory. You should use the xmllint tool to test the XML file
before using it with IPplan - no errors should be
returned.</P
><P
>The standard iptemplate.xml file adds a free form text
field to all the ip address record pages and has this
definition:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
><?xml version="1.0" ?>
<TEMPLATE>
<FIELD>
<DEFINITION NAME="info" DESCRIP="Additional information" TYPE="T" MAXLENGTH="10000" SIZE="80" ROWS="10" REGEX="" ERRMSG="Invalid field: Additional information" />
</FIELD>
</TEMPLATE></PRE
></FONT
></TD
></TR
></TABLE
><P
>A field definition to add a select drop down list:</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
> <FIELD>
<DEFINITION NAME="select" TYPE="S" DESCRIP="This is select list with two options" DEFAULT="2">
<SELECT OPTION="Option 1" VAL="1" />
<SELECT OPTION="Option 2" VAL="2" />
</DEFINITION>
</FIELD></PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>The template file must be surrounded with
<TEMPLATE> statements. Note that XML tags are case
sensitive and must match as per the example. Each field is
contained in a <FIELD></FIELD> statement. Each
field must have exactly one <DEFINITION> line. Any line
with an error will be silently ignore! The following are valid
for a definition:</P
><P
><CODE
CLASS="varname"
>NAME</CODE
></P
><P
>This is the field name used internally to track the names
of the variables. Can contain letters and numbers only - no
spaces or anything else.</P
><P
><CODE
CLASS="varname"
>DESCRIP</CODE
></P
><P
>This is the description that will be displayed above the
field.</P
><P
><CODE
CLASS="varname"
>TYPE</CODE
></P
><P
>This is the type of the field. C for a character field
and T for a memo or multi-line field, S for a select drop down
list.</P
><P
><CODE
CLASS="varname"
>DEFAULT</CODE
></P
><P
>The default value for the field the first time the field
is completed.</P
><P
><CODE
CLASS="varname"
>MAXLENGTH</CODE
></P
><P
>This is the maximum number of characters a field can
consist of.</P
><P
><CODE
CLASS="varname"
>SIZE</CODE
></P
><P
>This is the display length of the field on the screen -
if SIZE is less than MAXLENGTH, the field will scroll. SIZE may
not be more than MAXLENGTH.</P
><P
><CODE
CLASS="varname"
>ROWS</CODE
></P
><P
>This is the number of rows to display on the screen -
only valid for text or multi-line fields.</P
><P
><CODE
CLASS="varname"
>REGEX</CODE
></P
><P
>This is a regular expression to test validity of the
entered information. To test a field, use ^ and $ to signify
the start and end of the field, so something like</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>^[a-zA-Z0-9]$</PRE
></FONT
></TD
></TR
></TABLE
><P
>ensures that the field only contains numbers and letters.
See http://regexlib.com/ for more on regular
expressions.</P
><P
>Regular expressions are PERL compatible and use a /
character as the delimiter, thus if you want to match on a /,
you will need to escape the /. So to match a letter, / and a
number, this is the expression</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>^[a-zA-Z\/0-9]$</PRE
></FONT
></TD
></TR
></TABLE
><P
>Regular expression | can be used for multiple matches.
Thus the following will match a field or a blank entry</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>^[a-zA-Z\/0-9]$|^$</PRE
></FONT
></TD
></TR
></TABLE
><P
><CODE
CLASS="varname"
>ERRMSG</CODE
></P
><P
>This is the error message that is displayed if the
regular expression match fails.</P
><P
><EM
>Default template:</EM
></P
><P
>The default template contains one field which is the
"Additional information" field of older versions of
IPplan. If you do not want this field, change the template or
delete the template entirely.</P
><P
><EM
>Template rules:</EM
></P
><P
>If you delete the template all fields will vanish and
cannot be accessed. IP records that have been completed with
fields from a template will not be lost, but records that do
not have template fields cannot have template fields added
until the template is either restored or similar fields are
added.</P
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Deleting fields from a template results in existing
fields in the database with template data using a default
field definition. The data is not lost. It is not a good idea
to modify or change the template on a production system. Plan
the template fields carefully before implementing.</P
></TD
></TR
></TABLE
></DIV
></DIV
></DIV
><DIV
CLASS="sect2"
><HR><H3
CLASS="sect2"
><A
NAME="registrartemplates"
>15.2. Registrar templates</A
></H3
><P
>Templates for sending information to registrars should be
well formed XML stylesheets. See the existing templates in the
/ipplan/templates directory for examples. Currently only
the</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
><xsl:value-of select="variable"/></PRE
></FONT
></TD
></TR
></TABLE
><P
>tag is understood and all other XML tags are stripped, thus
only variable substitution is done. This is to prevent requiring
the XSLT php library to be compiled in. In future XML stylesheets
will be supported in full.</P
><P
>There are a number of special variables available during
the registrar output process which are defined in the config.php
file:</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>source -> the REGISTRY config setting
maint -> the MAINTAINERID config setting
regid -> the REGID config setting
password -> the REGPASS config setting
date -> todays date in UTC format</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>in addition to the standard customer page variables:</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>ntsnum -> starting of IP address range
ntenum -> end of IP address range
ntname -> network name as defined in the
subnet description field
DNS:
hname1 -> DNS hostname 1
ipaddr1 -> Primary DNS server
hname2 -> DNS hostname 2
ipaddr2 -> Secondary DNS server
hname3 -> DNS hostname 3
ipaddr3 -> Third DNS server
.
.
.
hname10 -> DNS hostname 10
ipaddr10 -> Thenth DNS server
Contact:
org -> Organization
street -> Street
city -> City
state -> State
zipcode -> Zip code/Postal code
country -> Two letter country code
Technical contact:
nichandl -> Nickname/handle
lname -> Lastname
fname -> Firstname
mname -> Middle name
torg -> Organization
tstreet -> Street
tcity -> City
tstate -> State
tzipcode -> Zip code/Postal code
tcntry -> Two letter country code
phne -> Phone number
mbox -> Email address</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>Plus any variables defined in a customer template
(custtemplate.xml) and also the subnet template
(basetemplate.xml) as described above will also be available. The
names of the variables will be the same as defined in the
customer template.</P
><P
>Thus the following basetemplate.xml file:</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
><?xml version="1.0" ?>
<TEMPLATE>
<FIELD>
<DEFINITION NAME="remarks" DESCRIP="Remarks" TYPE="C" MAXLENGTH="100" SIZE="100" ROWS="1" REGEX="" ERRMSG="RIPE remarks" />
</FIELD>
</TEMPLATE></PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>will provide the following additional variable to the
registrar template</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>remarks -> Remarks field for subnet</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>If there are duplicate variable names defined, the
variables in the basetemplate.xml file, then the
custtemplate.xml file appearing in the "Additional
information" section of the customer and subnet
administration pages will have precedence over any standard
variables.</P
></TD
></TR
></TABLE
></DIV
><P
></P
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="dhcp"
>16. DHCP</A
></H2
><P
>A special sample template called basetemplate.xml.dhcp can be
used in place of the basetemplate.xml file to provide DHCP support.
This template works in conjunction with the DHCP export function of
IPplan. For a DHCP export to work, the subnet must have the correct
template, the subnet must be marked as DHCP and subnet address
descriptions must start with the 'DHCPRESERVED'
config.php variable. Once an export has been initiated, the
resulting output must be processed via an XML parser just like any
other export function of IPplan.</P
><P
>Multiple address pools can be simulated by adding numbers to
the end of the IP address decsriptions eg. 'Reserved - DHCP
pool 1'. Static assignments are dealt with automatically if an
IP address has a valid MAC address assigned.</P
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="triggers"
>17. Triggers</A
></H2
><P
>Every database event (create a customer, update an ip record,
export a DNS zone file etc) in IPplan can trigger an external user
defined function or script. This is useful to update and external
system like a DNS server once something in IPplan has
changed.</P
><P
>You will be required to write your own custom script to do
the required action. This script will be called from the
user_trigger() function in the ipplanlib.php script. See the
comments of this function for more details.</P
><TABLE
BORDER="0"
WIDTH="100%"
CELLSPACING="0"
CELLPADDING="0"
CLASS="EPIGRAPH"
><TR
><TD
WIDTH="45%"
> </TD
><TD
WIDTH="45%"
ALIGN="LEFT"
VALIGN="TOP"
><I
><P
><I
>A list of all the IPplan triggers and what information is
passed to the user_trigger() function can be found in the
TRIGGERS file.</I
></P
></I
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="poller"
>18. External command line poller</A
></H2
><P
>The poller allows you to periodically scan subnets for
addresses that are active on the network. This information is then
logged in the IPplan database and will appear on the display subnet
page. You can find the poller script in the IPplan contrib
directory.</P
><P
>The scans are done using nmap, thus large networks can be
scanned rapidly. Subnets that are to be scanned get entered into a
plain text file, so maintenance is easy. Polling can be automated
by adding the poller to cron.</P
><P
>Firstly, you will need to create a file containing a list of
networks/addresses that you would like to poll. The file is a text
file with one address per line in the any format that the nmap
command understands (type nmap -h for more info).</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>10.10.10.0/24
10.10.11.*
10.12.12.1</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>Once you have created your file you will need to make sure
the poller is configured correctly. Edit the poller file and change
the path at the top to the correct place where the command line php
can be found on your system.</P
><P
>You can find the location by typing</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>which php</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>Next make sure that nmap can be found. Type</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>which nmap</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>and either update the NMAP statement in the IPplan config.php
file, or uncomment the NMAP define at the top of ipplan-poller.php
and update to reflect the correct path to nmap. This define will
override whatever is in config.php allowing a different NMAP to be
used. You may also leave config.php blank to prevent scanning from
within the IPplan web frontend.</P
><P
>Now run the ipplan-poller.php file with the -d option, or
navigate to the admin->maintenance page. This will dump a list
of customers and customer id's. You need to find the id of the
customer you want to update:</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>php -q ipplan-poller.php -d</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>ID Description
2 Test
46 Test customer
47 Test customer 2</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>Finally run the poller again with the correct command line
(assuming you want to update the customer called "Test
customer" which has id 46):</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>php -q ipplan-poller.php -c 46 -f nmap.list</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>If the configuration is correct and there are no errors,
there should be no output - the database is updated silently in the
background. Any address that was successfully polled will now have
a key in the "Pol" column on the IPplan display
pages.</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>D polled today
W polled within last week
M last month
Y last year</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>You can now add the above line to cron to scan certain
subnets periodically.</P
><P
>The following command line options are available with the
poller:</P
><P
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
>IPplan poller v1.0
-h this message!
-q suppress check if tool is executed from the command line
-d dump a list of customers and customer id's
-f filename containing list of subnets to scan, one per line in address/bits format
see the NMAP manpage for examples
-hostnames resolve and populate hostnames
-time timestamps the scan at start and completion
-a create auditlog entries for newly added records
-c customer id to update
example: php ipplan-poller.php -d
php ipplan-poller.php -time -hostnames -f /tmp/nmap.lst -c 1
</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>Using the -hostnames option will query the DNS when polling
addresses and update the host name field within IPplan with the DNS
name. Note that using this option could significantly increase
polling time, especially with incorrectly configured DNS servers.
Use the -time option to determine impact of using the -hostnames
option.</P
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Security: You should use a different user and password to
access the database using the command line poller. I suggest
creating a user that can only SELECT, UPDATE and INSERT into the
ipaddr table, and SELECT from the base and customer tables. See
your database administrator or manual for more details.</P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="AEN429"
>19. IP address request system</A
></H2
><P
>IPplan has a request feature whereby users can request
individual IP addresses by completing a form. This form is then
submitted into the IPplan database and via email to an
administrator or help desk account for processing. When the
administrator processes the request, all outstanding requests for a
particular customer/AS will appear on the IP address modify screen.
The administrator picks the relevant address from the list and all
the fields are automatically completed with the request details.
The administrator can then change some of the fields details before
submitting. When the form is submitted, the request is
deleted.</P
><P
>Up to 100 outstanding requests can be active at one time
(this is configurable by changing a variable at the start of the
requestip.php script). This is to prevent denial of service on the
database as the request page is not authenticated. Excess junk
requests can be cleared via an admin only option on the maintenance
page.</P
><P
>Request email addresses are set in the config file. The list
of visible customers/AS's that addresses can be requested for
are also set via config options. The default is that addresses can
be requested for all customers.</P
><P
>The request page also has the top menu structure disabled by
default (this can be enabled by changing a variable at the start of
the requestip.php script). Disabling the menu allows the page to be
used as a generic request page on a sites intranet server without
confusing regular users with menu options they cannot use or
access.</P
><DIV
CLASS="tip"
><P
></P
><TABLE
CLASS="tip"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>If an email field exists in the iptemplate.xml file, this
field will be used to popup an email window, allowing the newly
actioned requested address to be emailed back to the requester.
The email window will only display after Submit has been pressed
and the user has entered a valid email address.</P
></TD
></TR
></TABLE
></DIV
><P
>A sample definition for this field is as follows:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
><FIELD>
<DEFINITION NAME="email" DESCRIP="Email address" TYPE="C" MAXLENGTH="100" SIZE="100" ROWS="1" DEFAULT="" REGEX="" ERRMSG="Invalid field: Additional information" />
</FIELD></PRE
></FONT
></TD
></TR
></TABLE
><P
>See the section on templates for more information.</P
><P
>If a valid email address is found in the above field you will
be given the option to email the details back to the requester. The
gateways are site specific and can vary - manual completion of this
field is required unless one of the subnet addresses has a
description field starting with GW. This address will then be used
as the gateway address in the email.</P
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="AEN441"
>20. Authentication schemes</A
></H2
><P
>IPplan supports either its own internal authentication
scheme, or an external scheme based on the Apache webservers
authentication modules. To use an external scheme, change the
setting in the config.php file. Next, place the relevant .htaccess
file in the IPplan user subdirectory (/ipplan/user). Do not place
an equivalent file in the admin subdirectory as the admin account
cannot be overridden.</P
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>When using the external authentication method, IPplan never
prompts for a userid and password. It is the responsibility of
the external module to do the prompting, if any. IPplan uses the
credentials supplied and matches them to the IPplan userid
records to determine if access should be granted.</P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="important"
><P
></P
><TABLE
CLASS="important"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/important.gif"
HSPACE="5"
ALT="Important"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>The relevant users requiring access to IPplan must still be
created via the IPplan admin interface, but no password
information is required as this is overridden by the external
authenticator.</P
></TD
></TR
></TABLE
></DIV
><P
>If the user is removed from the external authenticators
database (ldap, radius etc), the user will no longer be able to log
in to IPplan even if the account still exists in IPplan. This
scheme only handles single signon and password changes, not single
point of administration.</P
><P
>Make sure that the external authenticator only returns the
userid in the php REMOTE_USER variable. Ldap (or auth_ldap) by
default will return the entire DN, but this can be configured to
return only the userid. From the auth_ldap docs at
<A
HREF=""
TARGET="_top"
>http://www.rudedog.org/auth_ldap/1.6/auth_ldap.html</A
>
ensure that the AuthLDAPRemoteUserIsDN is set correctly. You will
also need to look at the AuthLDAPGroupAttributeIsDN
attribute.</P
><P
>Read the instructions in config.php carefully for debug
tips.</P
><P
>External authentication was tested against SiteMinder and the
Apache <A
HREF="http://www.rudedog.org/auth_ldap/"
TARGET="_top"
> auth_ldap</A
> module. The
<A
HREF="http://www.ja-sig.org/products/cas/index.html"
TARGET="_top"
>CAS
authentication</A
> module is also supported - there are special
config.php variables to support this configuration.</P
><DIV
CLASS="warning"
><P
></P
><TABLE
CLASS="warning"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="images/warning.gif"
HSPACE="5"
ALT="Warning"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
><EM
>THE HTTP BASIC AUTHENTICATION SCHEME DOES NOT
ENCRYPT USER-IDS AND PASSWORDS TRANSMITTED TO THE WEBSERVER - IT
IS RECOMMENDED THAT IPPLAN IS INSTALLED ON AN SSL PROTECTED
WEBSERVER ON PRODUCTION SYSTEMS.</EM
></P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="problems"
>21. Problems</A
></H2
><P
></P
><UL
><LI
><P
>PHP's IP management functions and binary arithmetic
functions are seriously broken (see
<A
HREF="http://www.php.net/bugs.php?id=10924"
TARGET="_top"
>bug</A
>
report logged) Due to this limitation, the biggest subnet that
can be created is limited to 254k hosts.</P
></LI
><LI
><P
>This brokenness also prevents the use of the ip2long()
and long2ip() functions introduced with php 4.x. I have used
php only functions called inet_aton() and inet_ntoa().</P
></LI
><LI
><P
>SNMP appears to be broken on Redhat 7.2 systems. Try
following these
<A
HREF="https://sourceforge.net/forum/forum.php?thread_id=627391&forum_id=101033"
TARGET="_top"
> instructions</A
> for help.</P
></LI
></UL
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="limitations"
>22. Limitations</A
></H2
><P
></P
><UL
><LI
><P
>Due to the authentication scheme used, only the Apache
web server is supported currently. PHP installed under IIS as a
cgi is reported to work too.</P
></LI
><LI
><P
>IPplan can be run with php configured for safe_mode=on
and register_globals=off.</P
></LI
><LI
><P
>IPplan was developed using MySQL as a database. Using
other databases require workarounds for some functionality
which is not optimal. During my own tests, speed was visibly
faster using MySQL.</P
></LI
></UL
></DIV
><DIV
CLASS="sect1"
><HR><H2
CLASS="sect1"
><A
NAME="faq"
>23. Questions and Answers (FAQ)</A
></H2
><P
><EM
>Check the forums on SourceForge
too.</EM
></P
><P
>The FAQ is no longer maintained in the manual - check online
at the <A
HREF="http://iptrack.sourceforge.net"
TARGET="_top"
>IPplan
homepage</A
>.</P
></DIV
></DIV
></BODY
></HTML
>
|