aboutsummaryrefslogtreecommitdiff
path: root/documentation/content/en/books/handbook/network-servers/_index.po
blob: 4f7f0a8456553a85f733ff9fb2fe2f526563d160 (plain) (blame)
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
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR The FreeBSD Project
# This file is distributed under the same license as the FreeBSD Documentation package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: FreeBSD Documentation VERSION\n"
"POT-Creation-Date: 2024-01-17 20:35-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#. type: YAML Front Matter: description
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1
#, no-wrap
msgid "This chapter covers some of the more frequently used network services on UNIX systems"
msgstr ""

#. type: YAML Front Matter: part
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1
#, no-wrap
msgid "IV. Network Communication"
msgstr ""

#. type: YAML Front Matter: title
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1
#, no-wrap
msgid "Chapter 32. Network Servers"
msgstr ""

#. type: Title =
#: documentation/content/en/books/handbook/network-servers/_index.adoc:14
#, no-wrap
msgid "Network Servers"
msgstr ""

#. type: Title ==
#: documentation/content/en/books/handbook/network-servers/_index.adoc:52
#, no-wrap
msgid "Synopsis"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:57
msgid ""
"This chapter covers some of the more frequently used network services on "
"UNIX(R) systems.  This includes installing, configuring, testing, and "
"maintaining many different types of network services.  Example configuration "
"files are included throughout this chapter for reference."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:59
msgid "By the end of this chapter, readers will know:"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:61
msgid "How to manage the inetd daemon."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:62
msgid "How to set up the Network File System (NFS)."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:63
msgid ""
"How to set up the Network Information Server (NIS) for centralizing and "
"sharing user accounts."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:64
msgid "How to set FreeBSD up to act as an LDAP server or client"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:65
msgid "How to set up automatic network settings using DHCP."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:66
msgid "How to set up a Domain Name Server (DNS)."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:67
msgid "How to set up the Apache HTTP Server."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:68
msgid "How to set up a File Transfer Protocol (FTP) server."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:69
msgid ""
"How to set up a file and print server for Windows(R) clients using Samba."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:70
msgid ""
"How to synchronize the time and date, and set up a time server using the "
"Network Time Protocol (NTP)."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:71
msgid "How to set up iSCSI."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:73
msgid "This chapter assumes a basic knowledge of:"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:75
msgid "[.filename]#/etc/rc# scripts."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:76
msgid "Network terminology."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:77
msgid ""
"Installation of additional third-party software (crossref:ports[ports,"
"Installing Applications: Packages and Ports])."
msgstr ""

#. type: Title ==
#: documentation/content/en/books/handbook/network-servers/_index.adoc:79
#, no-wrap
msgid "The inetd Super-Server"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:85
msgid ""
"The man:inetd[8] daemon is sometimes referred to as a Super-Server because "
"it manages connections for many services.  Instead of starting multiple "
"applications, only the inetd service needs to be started.  When a connection "
"is received for a service that is managed by inetd, it determines which "
"program the connection is destined for, spawns a process for that program, "
"and delegates the program a socket.  Using inetd for services that are not "
"heavily used can reduce system load, when compared to running each daemon "
"individually in stand-alone mode."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:87
msgid ""
"Primarily, inetd is used to spawn other daemons, but several trivial "
"protocols are handled internally, such as chargen, auth, time, echo, "
"discard, and daytime."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:89
msgid "This section covers the basics of configuring inetd."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:91
#, no-wrap
msgid "Configuration File"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:97
msgid ""
"Configuration of inetd is done by editing [.filename]#/etc/inetd.conf#.  "
"Each line of this configuration file represents an application which can be "
"started by inetd.  By default, every line starts with a comment (`+#+`), "
"meaning that inetd is not listening for any applications.  To configure "
"inetd to listen for an application's connections, remove the `+#+` at the "
"beginning of the line for that application."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:99
msgid ""
"After saving your edits, configure inetd to start at system boot by editing "
"[.filename]#/etc/rc.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:103
#, no-wrap
msgid "inetd_enable=\"YES\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:106
msgid ""
"To start inetd now, so that it listens for the service you configured, type:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:110
#, no-wrap
msgid "# service inetd start\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:113
msgid ""
"Once inetd is started, it needs to be notified whenever a modification is "
"made to [.filename]#/etc/inetd.conf#:"
msgstr ""

#. type: Block title
#: documentation/content/en/books/handbook/network-servers/_index.adoc:115
#, no-wrap
msgid "Reloading the inetd Configuration File"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:122
#, no-wrap
msgid "# service inetd reload\n"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:128
msgid ""
"Typically, the default entry for an application does not need to be edited "
"beyond removing the `+#+`.  In some situations, it may be appropriate to "
"edit the default entry."
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:130
msgid "As an example, this is the default entry for man:ftpd[8] over IPv4:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:134
#, no-wrap
msgid "ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:137
msgid "The seven columns in an entry are as follows:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:147
#, no-wrap
msgid ""
"service-name\n"
"socket-type\n"
"protocol\n"
"{wait|nowait}[/max-child[/max-connections-per-ip-per-minute[/max-child-per-ip]]]\n"
"user[:group][/login-class]\n"
"server-program\n"
"server-program-arguments\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:150
msgid "where:"
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:151
#, no-wrap
msgid "service-name"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:156
msgid ""
"The service name of the daemon to start.  It must correspond to a service "
"listed in [.filename]#/etc/services#.  This determines which port inetd "
"listens on for incoming connections to that service.  When using a custom "
"service, it must first be added to [.filename]#/etc/services#."
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:157
#, no-wrap
msgid "socket-type"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:160
msgid ""
"Either `stream`, `dgram`, `raw`, or `seqpacket`.  Use `stream` for TCP "
"connections and `dgram` for UDP services."
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:161
#, no-wrap
msgid "protocol"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:163
msgid "Use one of the following protocol names:"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:168
#, no-wrap
msgid "Protocol Name"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:171
#, no-wrap
msgid "Explanation"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:172
#, no-wrap
msgid "tcp or tcp4"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:174
#, no-wrap
msgid "TCP IPv4"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:175
#, no-wrap
msgid "udp or udp4"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:177
#, no-wrap
msgid "UDP IPv4"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:178
#, no-wrap
msgid "tcp6"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:180
#, no-wrap
msgid "TCP IPv6"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:181
#, no-wrap
msgid "udp6"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:183
#, no-wrap
msgid "UDP IPv6"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:184
#, no-wrap
msgid "tcp46"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:186
#, no-wrap
msgid "Both TCP IPv4 and IPv6"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:187
#, no-wrap
msgid "udp46"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:188
#, no-wrap
msgid "Both UDP IPv4 and IPv6"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:193
msgid ""
"{wait|nowait}[/max-child[/max-connections-per-ip-per-minute[/max-child-per-"
"ip]]]:: In this field, `wait` or `nowait` must be specified.  `max-child`, "
"`max-connections-per-ip-per-minute` and `max-child-per-ip` are optional."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:197
msgid ""
"`wait|nowait` indicates whether or not the service is able to handle its own "
"socket.  `dgram` socket types must use `wait` while `stream` daemons, which "
"are usually multi-threaded, should use `nowait`.  `wait` usually hands off "
"multiple sockets to a single daemon, while `nowait` spawns a child daemon "
"for each new socket."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:201
msgid ""
"The maximum number of child daemons inetd may spawn is set by `max-child`.  "
"For example, to limit ten instances of the daemon, place a `/10` after "
"`nowait`.  Specifying `/0` allows an unlimited number of children."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:207
msgid ""
"`max-connections-per-ip-per-minute` limits the number of connections from "
"any particular IP address per minute.  Once the limit is reached, further "
"connections from this IP address will be dropped until the end of the "
"minute.  For example, a value of `/10` would limit any particular IP address "
"to ten connection attempts per minute.  `max-child-per-ip` limits the number "
"of child processes that can be started on behalf on any single IP address at "
"any moment.  These options can limit excessive resource consumption and help "
"to prevent Denial of Service attacks."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:209
msgid "An example can be seen in the default settings for man:fingerd[8]:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:213
#, no-wrap
msgid "finger stream  tcp     nowait/3/10 nobody /usr/libexec/fingerd fingerd -k -s\n"
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:215
#, no-wrap
msgid "user"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:218
msgid ""
"The username the daemon will run as.  Daemons typically run as `root`, "
"`daemon`, or `nobody`."
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:219
#, no-wrap
msgid "server-program"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:222
msgid ""
"The full path to the daemon.  If the daemon is a service provided by inetd "
"internally, use `internal`."
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:223
#, no-wrap
msgid "server-program-arguments"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:226
msgid ""
"Used to specify any command arguments to be passed to the daemon on "
"invocation.  If the daemon is an internal service, use `internal`."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:228
#, no-wrap
msgid "Command-Line Options"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:233
msgid ""
"Like most server daemons, inetd has a number of options that can be used to "
"modify its behavior.  By default, inetd is started with `-wW -C 60`.  These "
"options enable TCP wrappers for all services, including internal services, "
"and prevent any IP address from requesting any service more than 60 times "
"per minute."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:236
msgid ""
"To change the default options which are passed to inetd, add an entry for "
"`inetd_flags` in [.filename]#/etc/rc.conf#.  If inetd is already running, "
"restart it with `service inetd restart`."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:238
msgid "The available rate limiting options are:"
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:239
#, no-wrap
msgid "-c maximum"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:242
msgid ""
"Specify the default maximum number of simultaneous invocations of each "
"service, where the default is unlimited.  May be overridden on a per-service "
"basis by using `max-child` in [.filename]#/etc/inetd.conf#."
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:243
#, no-wrap
msgid "-C rate"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:246
msgid ""
"Specify the default maximum number of times a service can be invoked from a "
"single IP address per minute.  May be overridden on a per-service basis by "
"using `max-connections-per-ip-per-minute` in [.filename]#/etc/inetd.conf#."
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:247
#, no-wrap
msgid "-R rate"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:250
msgid ""
"Specify the maximum number of times a service can be invoked in one minute, "
"where the default is `256`.  A rate of `0` allows an unlimited number."
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:251
#, no-wrap
msgid "-s maximum"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:254
msgid ""
"Specify the maximum number of times a service can be invoked from a single "
"IP address at any one time, where the default is unlimited.  May be "
"overridden on a per-service basis by using `max-child-per-ip` in [."
"filename]#/etc/inetd.conf#."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:256
msgid ""
"Additional options are available. Refer to man:inetd[8] for the full list of "
"options."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:258
#, no-wrap
msgid "Security Considerations"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:264
msgid ""
"Many of the daemons which can be managed by inetd are not security-"
"conscious.  Some daemons, such as fingerd, can provide information that may "
"be useful to an attacker.  Only enable the services which are needed and "
"monitor the system for excessive connection attempts.  `max-connections-per-"
"ip-per-minute`, `max-child` and `max-child-per-ip` can be used to limit such "
"attacks."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:267
msgid ""
"By default, TCP wrappers are enabled.  Consult man:hosts_access[5] for more "
"information on placing TCP restrictions on various inetd invoked daemons."
msgstr ""

#. type: Title ==
#: documentation/content/en/books/handbook/network-servers/_index.adoc:269
#, no-wrap
msgid "Network File System (NFS)"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:273
msgid ""
"FreeBSD supports the Network File System (NFS), which allows a server to "
"share directories and files with clients over a network.  With NFS, users "
"and programs can access files on remote systems as if they were stored "
"locally."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:276
msgid "NFS has many practical uses.  Some of the more common uses include:"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:278
msgid ""
"Data that would otherwise be duplicated on each client can be kept in a "
"single location and accessed by clients on the network."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:279
msgid ""
"Several clients may need access to the [.filename]#/usr/ports/distfiles# "
"directory. Sharing that directory allows for quick access to the source "
"files without having to download them to each client."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:280
msgid ""
"On large networks, it is often more convenient to configure a central NFS "
"server on which all user home directories are stored. Users can log into a "
"client anywhere on the network and have access to their home directories."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:281
msgid ""
"Administration of NFS exports is simplified. For example, there is only one "
"file system where security or backup policies must be set."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:282
msgid ""
"Removable media storage devices can be used by other machines on the "
"network. This reduces the number of devices throughout the network and "
"provides a centralized location to manage their security. It is often more "
"convenient to install software on multiple machines from a centralized "
"installation media."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:286
msgid ""
"NFS consists of a server and one or more clients.  The client remotely "
"accesses the data that is stored on the server machine.  In order for this "
"to function properly, a few processes have to be configured and running."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:288
msgid "These daemons must be running on the server:"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:293
#, no-wrap
msgid "Daemon"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:296
#: documentation/content/en/books/handbook/network-servers/_index.adoc:556
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1005
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1024
#, no-wrap
msgid "Description"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:297
#, no-wrap
msgid "nfsd"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:299
#, no-wrap
msgid "The NFS daemon which services requests from NFS clients."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:300
#, no-wrap
msgid "mountd"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:302
#, no-wrap
msgid "The NFS mount daemon which carries out requests received from nfsd."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:303
#, no-wrap
msgid "rpcbind"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:304
#, no-wrap
msgid "This daemon allows NFS clients to discover which port the NFS server is using."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:307
msgid ""
"Running man:nfsiod[8] on the client can improve performance, but is not "
"required."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:309
#, no-wrap
msgid "Configuring the Server"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:315
msgid ""
"The file systems which the NFS server will share are specified in [."
"filename]#/etc/exports#.  Each line in this file specifies a file system to "
"be exported, which clients have access to that file system, and any access "
"options.  When adding entries to this file, each exported file system, its "
"properties, and allowed hosts must occur on a single line.  If no clients "
"are listed in the entry, then any client on the network can mount that file "
"system."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:320
msgid ""
"The following [.filename]#/etc/exports# entries demonstrate how to export "
"file systems.  The examples can be modified to match the file systems and "
"client names on the reader's network.  There are many options that can be "
"used in this file, but only a few will be mentioned here.  See man:"
"exports[5] for the full list of options."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:322
msgid ""
"This example shows how to export [.filename]#/cdrom# to three hosts named "
"_alpha_, _bravo_, and _charlie_:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:326
#, no-wrap
msgid "/cdrom -ro alpha bravo charlie\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:331
msgid ""
"The `-ro` flag makes the file system read-only, preventing clients from "
"making any changes to the exported file system.  This example assumes that "
"the host names are either in DNS or in [.filename]#/etc/hosts#.  Refer to "
"man:hosts[5] if the network does not have a DNS server."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:336
msgid ""
"The next example exports [.filename]#/home# to three clients by IP address.  "
"This can be useful for networks without DNS or [.filename]#/etc/hosts# "
"entries.  The `-alldirs` flag allows subdirectories to be mount points.  In "
"other words, it will not automatically mount the subdirectories, but will "
"permit the client to mount the directories that are required as needed."
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:340
#, no-wrap
msgid "/usr/home  -alldirs  10.0.0.2 10.0.0.3 10.0.0.4\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:345
msgid ""
"This next example exports [.filename]#/a# so that two clients from different "
"domains may access that file system.  The `-maproot=root` allows `root` on "
"the remote system to write data on the exported file system as `root`.  If `-"
"maproot=root` is not specified, the client's `root` user will be mapped to "
"the server's `nobody` account and will be subject to the access limitations "
"defined for `nobody`."
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:349
#, no-wrap
msgid "/a  -maproot=root  host.example.com box.example.org\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:353
msgid ""
"A client can only be specified once per file system.  For example, if [."
"filename]#/usr# is a single file system, these entries would be invalid as "
"both entries specify the same host:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:359
#, no-wrap
msgid ""
"# Invalid when /usr is one file system\n"
"/usr/src   client\n"
"/usr/ports client\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:362
msgid "The correct format for this situation is to use one entry:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:366
#, no-wrap
msgid "/usr/src /usr/ports  client\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:369
msgid ""
"The following is an example of a valid export list, where [.filename]#/usr# "
"and [.filename]#/exports# are local file systems:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:380
#, no-wrap
msgid ""
"# Export src and ports to client01 and client02, but only\n"
"# client01 has root privileges on it\n"
"/usr/src /usr/ports -maproot=root    client01\n"
"/usr/src /usr/ports               client02\n"
"# The client machines have root and can mount anywhere\n"
"# on /exports. Anyone in the world can mount /exports/obj read-only\n"
"/exports -alldirs -maproot=root      client01 client02\n"
"/exports/obj -ro\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:383
msgid ""
"To enable the processes required by the NFS server at boot time, add these "
"options to [.filename]#/etc/rc.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:389
#, no-wrap
msgid ""
"rpcbind_enable=\"YES\"\n"
"nfs_server_enable=\"YES\"\n"
"mountd_enable=\"YES\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:392
msgid "The server can be started now by running this command:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:396
#, no-wrap
msgid "# service nfsd start\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:401
msgid ""
"Whenever the NFS server is started, mountd also starts automatically.  "
"However, mountd only reads [.filename]#/etc/exports# when it is started.  To "
"make subsequent [.filename]#/etc/exports# edits take effect immediately, "
"force mountd to reread it:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:405
#, no-wrap
msgid "# service mountd reload\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:408
msgid "Refer to man:nfsv4[4] for a description of an NFS Version 4 setup."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:409
#, no-wrap
msgid "Configuring the Client"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:412
msgid ""
"To enable NFS clients, set this option in each client's [.filename]#/etc/rc."
"conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:416
#, no-wrap
msgid "nfs_client_enable=\"YES\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:419
msgid "Then, run this command on each NFS client:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:423
#, no-wrap
msgid "# service nfsclient start\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:428
msgid ""
"The client now has everything it needs to mount a remote file system.  In "
"these examples, the server's name is `server` and the client's name is "
"`client`.  To mount [.filename]#/home# on `server` to the [.filename]#/mnt# "
"mount point on `client`:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:432
#, no-wrap
msgid "# mount server:/home /mnt\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:435
msgid ""
"The files and directories in [.filename]#/home# will now be available on "
"`client`, in the [.filename]#/mnt# directory."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:437
msgid ""
"To mount a remote file system each time the client boots, add it to [."
"filename]#/etc/fstab#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:441
#, no-wrap
msgid "server:/home\t/mnt\tnfs\trw\t0\t0\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:444
msgid "Refer to man:fstab[5] for a description of all available options."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:445
#, no-wrap
msgid "Locking"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:449
msgid ""
"Some applications require file locking to operate correctly.  To enable "
"locking, execute the following command on both the client and server:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:453
#, no-wrap
msgid "# sysrc rpc_lockd_enable=\"YES\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:456
msgid "Then start the service:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:460
#, no-wrap
msgid "# service lockd start\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:464
msgid ""
"If locking is not required on the server, the NFS client can be configured "
"to lock locally by including `-L` when running mount.  Refer to man:"
"mount_nfs[8] for further details."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:466
#, no-wrap
msgid "Automating Mounts with man:autofs[5]"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:473
msgid ""
"The man:autofs[5] automount facility is supported starting with FreeBSD 10.1-"
"RELEASE.  To use the automounter functionality in older versions of FreeBSD, "
"use man:amd[8] instead.  This chapter only describes the man:autofs[5] "
"automounter."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:479
msgid ""
"The man:autofs[5] facility is a common name for several components that, "
"together, allow for automatic mounting of remote and local filesystems "
"whenever a file or directory within that file system is accessed.  It "
"consists of the kernel component, man:autofs[5], and several userspace "
"applications: man:automount[8], man:automountd[8] and man:autounmountd[8].  "
"It serves as an alternative for man:amd[8] from previous FreeBSD releases.  "
"amd is still provided for backward compatibility purposes, as the two use "
"different map formats; the one used by autofs is the same as with other SVR4 "
"automounters, such as the ones in Solaris, MacOS X, and Linux."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:481
msgid ""
"The man:autofs[5] virtual filesystem is mounted on specified mountpoints by "
"man:automount[8], usually invoked during boot."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:485
msgid ""
"Whenever a process attempts to access a file within the man:autofs[5] "
"mountpoint, the kernel will notify man:automountd[8] daemon and pause the "
"triggering process.  The man:automountd[8] daemon will handle kernel "
"requests by finding the proper map and mounting the filesystem according to "
"it, then signal the kernel to release blocked process.  The man:"
"autounmountd[8] daemon automatically unmounts automounted filesystems after "
"some time, unless they are still being used."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:488
msgid ""
"The primary autofs configuration file is [.filename]#/etc/auto_master#. It "
"assigns individual maps to top-level mounts.  For an explanation of [."
"filename]#auto_master# and the map syntax, refer to man:auto_master[5]."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:492
msgid ""
"There is a special automounter map mounted on [.filename]#/net#.  When a "
"file is accessed within this directory, man:autofs[5] looks up the "
"corresponding remote mount and automatically mounts it.  For instance, an "
"attempt to access a file within [.filename]#/net/foobar/usr# would tell man:"
"automountd[8] to mount the [.filename]#/usr# export from the host `foobar`."
msgstr ""

#. type: Block title
#: documentation/content/en/books/handbook/network-servers/_index.adoc:493
#, no-wrap
msgid "Mounting an Export with man:autofs[5]"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:497
msgid ""
"In this example, `showmount -e` shows the exported file systems that can be "
"mounted from the NFS server, `foobar`:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:505
#, no-wrap
msgid ""
"% showmount -e foobar\n"
"Exports list on foobar:\n"
"/usr                               10.10.10.0\n"
"/a                                 10.10.10.0\n"
"% cd /net/foobar/usr\n"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:512
msgid ""
"The output from `showmount` shows [.filename]#/usr# as an export.  When "
"changing directories to [.filename]#/host/foobar/usr#, man:automountd[8] "
"intercepts the request and attempts to resolve the hostname `foobar`.  If "
"successful, man:automountd[8] automatically mounts the source export."
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:514
msgid ""
"To enable man:autofs[5] at boot time, add this line to [.filename]#/etc/rc."
"conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:518
#, no-wrap
msgid "autofs_enable=\"YES\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:521
msgid "Then man:autofs[5] can be started by running:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:527
#, no-wrap
msgid ""
"# service automount start\n"
"# service automountd start\n"
"# service autounmountd start\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:531
msgid ""
"The man:autofs[5] map format is the same as in other operating systems.  "
"Information about this format from other sources can be useful, like the "
"http://web.archive.org/web/20160813071113/http://images.apple.com/business/"
"docs/Autofs.pdf[Mac OS X document]."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:533
msgid ""
"Consult the man:automount[8], man:automountd[8], man:autounmountd[8], and "
"man:auto_master[5] manual pages for more information."
msgstr ""

#. type: Title ==
#: documentation/content/en/books/handbook/network-servers/_index.adoc:535
#, no-wrap
msgid "Network Information System (NIS)"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:540
msgid ""
"Network Information System (NIS) is designed to centralize administration of "
"UNIX(R)-like systems such as Solaris(TM), HP-UX, AIX(R), Linux, NetBSD, "
"OpenBSD, and FreeBSD.  NIS was originally known as Yellow Pages but the name "
"was changed due to trademark issues.  This is the reason why NIS commands "
"begin with `yp`."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:543
msgid ""
"NIS is a Remote Procedure Call (RPC)-based client/server system that allows "
"a group of machines within an NIS domain to share a common set of "
"configuration files.  This permits a system administrator to set up NIS "
"client systems with only minimal configuration data and to add, remove, or "
"modify configuration data from a single location."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:545
msgid "FreeBSD uses version 2 of the NIS protocol."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:546
#, no-wrap
msgid "NIS Terms and Processes"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:549
msgid "Table 28.1 summarizes the terms and important processes used by NIS:"
msgstr ""

#. type: Block title
#: documentation/content/en/books/handbook/network-servers/_index.adoc:550
#, no-wrap
msgid "NIS Terminology"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:554
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1893
#, no-wrap
msgid "Term"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:557
#, no-wrap
msgid "NIS domain name"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:559
#, no-wrap
msgid "NIS servers and clients share an NIS domain name. Typically, this name does not have anything to do with DNS."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:560
#, no-wrap
msgid "man:rpcbind[8]"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:562
#, no-wrap
msgid "This service enables RPC and must be running in order to run an NIS server or act as an NIS client."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:563
#, no-wrap
msgid "man:ypbind[8]"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:565
#, no-wrap
msgid "This service binds an NIS client to its NIS server. It will take the NIS domain name and use RPC to connect to the server. It is the core of client/server communication in an NIS environment. If this service is not running on a client machine, it will not be able to access the NIS server."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:566
#, no-wrap
msgid "man:ypserv[8]"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:568
#, no-wrap
msgid "This is the process for the NIS server. If this service stops running, the server will no longer be able to respond to NIS requests so hopefully, there is a slave server to take over. Some non-FreeBSD clients will not try to reconnect using a slave server and the ypbind process may need to be restarted on these clients."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:569
#, no-wrap
msgid "man:rpc.yppasswdd[8]"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:570
#, no-wrap
msgid "This process only runs on NIS master servers. This daemon allows NIS clients to change their NIS passwords. If this daemon is not running, users will have to login to the NIS master server and change their passwords there."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:572
#, no-wrap
msgid "Machine Types"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:575
msgid "There are three types of hosts in an NIS environment:"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:577
msgid "NIS master server"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:581
msgid ""
"This server acts as a central repository for host configuration information "
"and maintains the authoritative copy of the files used by all of the NIS "
"clients.  The [.filename]#passwd#, [.filename]#group#, and other various "
"files used by NIS clients are stored on the master server.  While it is "
"possible for one machine to be an NIS master server for more than one NIS "
"domain, this type of configuration will not be covered in this chapter as it "
"assumes a relatively small-scale NIS environment."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:582
msgid "NIS slave servers"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:585
msgid ""
"NIS slave servers maintain copies of the NIS master's data files in order to "
"provide redundancy.  Slave servers also help to balance the load of the "
"master server as NIS clients always attach to the NIS server which responds "
"first."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:586
msgid "NIS clients"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:588
msgid "NIS clients authenticate against the NIS server during log on."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:592
msgid ""
"Information in many files can be shared using NIS.  The [.filename]#master."
"passwd#, [.filename]#group#, and [.filename]#hosts# files are commonly "
"shared via NIS.  Whenever a process on a client needs information that would "
"normally be found in these files locally, it makes a query to the NIS server "
"that it is bound to instead."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:593
#, no-wrap
msgid "Planning Considerations"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:599
msgid ""
"This section describes a sample NIS environment which consists of 15 FreeBSD "
"machines with no centralized point of administration.  Each machine has its "
"own [.filename]#/etc/passwd# and [.filename]#/etc/master.passwd#.  These "
"files are kept in sync with each other only through manual intervention.  "
"Currently, when a user is added to the lab, the process must be repeated on "
"all 15 machines."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:601
msgid "The configuration of the lab will be as follows:"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:606
#, no-wrap
msgid "Machine name"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:607
#, no-wrap
msgid "IP address"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:610
#, no-wrap
msgid "Machine role"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:611
#, no-wrap
msgid "`ellington`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:612
#, no-wrap
msgid "`10.0.0.2`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:614
#, no-wrap
msgid "NIS master"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:615
#, no-wrap
msgid "`coltrane`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:616
#, no-wrap
msgid "`10.0.0.3`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:618
#, no-wrap
msgid "NIS slave"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:619
#, no-wrap
msgid "`basie`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:620
#, no-wrap
msgid "`10.0.0.4`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:622
#, no-wrap
msgid "Faculty workstation"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:623
#, no-wrap
msgid "`bird`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:624
#, no-wrap
msgid "`10.0.0.5`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:626
#, no-wrap
msgid "Client machine"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:627
#, no-wrap
msgid "`cli[1-11]`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:628
#, no-wrap
msgid "`10.0.0.[6-17]`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:629
#, no-wrap
msgid "Other client machines"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:633
msgid ""
"If this is the first time an NIS scheme is being developed, it should be "
"thoroughly planned ahead of time.  Regardless of network size, several "
"decisions need to be made as part of the planning process."
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:634
#, no-wrap
msgid "Choosing a NIS Domain Name"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:639
msgid ""
"When a client broadcasts its requests for info, it includes the name of the "
"NIS domain that it is part of.  This is how multiple servers on one network "
"can tell which server should answer which request.  Think of the NIS domain "
"name as the name for a group of hosts."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:645
msgid ""
"Some organizations choose to use their Internet domain name for their NIS "
"domain name.  This is not recommended as it can cause confusion when trying "
"to debug network problems.  The NIS domain name should be unique within the "
"network and it is helpful if it describes the group of machines it "
"represents.  For example, the Art department at Acme Inc. might be in the "
"\"acme-art\" NIS domain.  This example will use the domain name `test-"
"domain`."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:648
msgid ""
"However, some non-FreeBSD operating systems require the NIS domain name to "
"be the same as the Internet domain name.  If one or more machines on the "
"network have this restriction, the Internet domain name _must_ be used as "
"the NIS domain name."
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:649
#, no-wrap
msgid "Physical Server Requirements"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:656
msgid ""
"There are several things to keep in mind when choosing a machine to use as a "
"NIS server.  Since NIS clients depend upon the availability of the server, "
"choose a machine that is not rebooted frequently.  The NIS server should "
"ideally be a stand alone machine whose sole purpose is to be an NIS server.  "
"If the network is not heavily used, it is acceptable to put the NIS server "
"on a machine running other services.  However, if the NIS server becomes "
"unavailable, it will adversely affect all NIS clients."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:657
#, no-wrap
msgid "Configuring the NIS Master Server"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:664
msgid ""
"The canonical copies of all NIS files are stored on the master server.  The "
"databases used to store the information are called NIS maps.  In FreeBSD, "
"these maps are stored in [.filename]#/var/yp/[domainname]# where [."
"filename]#[domainname]# is the name of the NIS domain.  Since multiple "
"domains are supported, it is possible to have several directories, one for "
"each domain.  Each domain will have its own independent set of maps."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:667
msgid ""
"NIS master and slave servers handle all NIS requests through man:ypserv[8].  "
"This daemon is responsible for receiving incoming requests from NIS clients, "
"translating the requested domain and map name to a path to the corresponding "
"database file, and transmitting data from the database back to the client."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:670
msgid ""
"Setting up a master NIS server can be relatively straight forward, depending "
"on environmental needs.  Since FreeBSD provides built-in NIS support, it "
"only needs to be enabled by adding the following lines to [.filename]#/etc/"
"rc.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:676
#, no-wrap
msgid ""
"nisdomainname=\"test-domain\"\t<.>\n"
"nis_server_enable=\"YES\"\t\t<.>\n"
"nis_yppasswdd_enable=\"YES\"\t<.>\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:679
msgid "This line sets the NIS domain name to `test-domain`."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:680
msgid ""
"This automates the start up of the NIS server processes when the system "
"boots."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:681
msgid ""
"This enables the man:rpc.yppasswdd[8] daemon so that users can change their "
"NIS password from a client machine."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:686
msgid ""
"Care must be taken in a multi-server domain where the server machines are "
"also NIS clients.  It is generally a good idea to force the servers to bind "
"to themselves rather than allowing them to broadcast bind requests and "
"possibly become bound to each other.  Strange failure modes can result if "
"one server goes down and others are dependent upon it.  Eventually, all the "
"clients will time out and attempt to bind to other servers, but the delay "
"involved can be considerable and the failure mode is still present since the "
"servers might bind to each other all over again."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:688
msgid ""
"A server that is also a client can be forced to bind to a particular server "
"by adding these additional lines to [.filename]#/etc/rc.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:693
#, no-wrap
msgid ""
"nis_client_enable=\"YES\"\t\t\t\t<.>\n"
"nis_client_flags=\"-S test-domain,server\"\t<.>\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:696
msgid "This enables running client stuff as well."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:697
msgid "This line sets the NIS domain name to `test-domain` and bind to itself."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:700
msgid ""
"After saving the edits, type `/etc/netstart` to restart the network and "
"apply the values defined in [.filename]#/etc/rc.conf#.  Before initializing "
"the NIS maps, start man:ypserv[8]:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:704
#, no-wrap
msgid "# service ypserv start\n"
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:707
#, no-wrap
msgid "Initializing the NIS Maps"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:712
msgid ""
"NIS maps are generated from the configuration files in [.filename]#/etc# on "
"the NIS master, with one exception: [.filename]#/etc/master.passwd#.  This "
"is to prevent the propagation of passwords to all the servers in the NIS "
"domain.  Therefore, before the NIS maps are initialized, configure the "
"primary password files:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:718
#, no-wrap
msgid ""
"# cp /etc/master.passwd /var/yp/master.passwd\n"
"# cd /var/yp\n"
"# vi master.passwd\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:721
msgid ""
"It is advisable to remove all entries for system accounts as well as any "
"user accounts that do not need to be propagated to the NIS clients, such as "
"the `root` and any other administrative accounts."
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:725
msgid ""
"Ensure that the [.filename]#/var/yp/master.passwd# is neither group or world "
"readable by setting its permissions to `600`."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:730
msgid ""
"After completing this task, initialize the NIS maps.  FreeBSD includes the "
"man:ypinit[8] script to do this.  When generating maps for the master "
"server, include `-m` and specify the NIS domain name:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:751
#, no-wrap
msgid ""
"ellington# ypinit -m test-domain\n"
"Server Type: MASTER Domain: test-domain\n"
"Creating an YP server will require that you answer a few questions.\n"
"Questions will all be asked at the beginning of the procedure.\n"
"Do you want this procedure to quit on non-fatal errors? [y/n: n] n\n"
"Ok, please remember to go back and redo manually whatever fails.\n"
"If not, something might not work.\n"
"At this point, we have to construct a list of this domains YP servers.\n"
"rod.darktech.org is already known as master server.\n"
"Please continue to add any slave servers, one per line. When you are\n"
"done with the list, type a <control D>.\n"
"master server   :  ellington\n"
"next host to add:  coltrane\n"
"next host to add:  ^D\n"
"The current list of NIS servers looks like this:\n"
"ellington\n"
"coltrane\n"
"Is this correct?  [y/n: y] y\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:753
#, no-wrap
msgid "[..output from map generation..]\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:756
#, no-wrap
msgid ""
"NIS Map update completed.\n"
"ellington has been setup as an YP master server without any errors.\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:761
msgid ""
"This will create [.filename]#/var/yp/Makefile# from [.filename]#/var/yp/"
"Makefile.dist#.  By default, this file assumes that the environment has a "
"single NIS server with only FreeBSD clients.  Since `test-domain` has a "
"slave server, edit this line in [.filename]#/var/yp/Makefile# so that it "
"begins with a comment (`+#+`):"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:765
#, no-wrap
msgid "NOPUSH = \"True\"\n"
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:768
#, no-wrap
msgid "Adding New Users"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:773
msgid ""
"Every time a new user is created, the user account must be added to the "
"master NIS server and the NIS maps rebuilt.  Until this occurs, the new user "
"will not be able to login anywhere except on the NIS master.  For example, "
"to add the new user `jsmith` to the `test-domain` domain, run these commands "
"on the master server:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:779
#, no-wrap
msgid ""
"# pw useradd jsmith\n"
"# cd /var/yp\n"
"# make test-domain\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:782
msgid ""
"The user could also be added using `adduser jsmith` instead of `pw useradd "
"smith`."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:783
#, no-wrap
msgid "Setting up a NIS Slave Server"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:789
msgid ""
"To set up an NIS slave server, log on to the slave server and edit [."
"filename]#/etc/rc.conf# as for the master server.  Do not generate any NIS "
"maps, as these already exist on the master server.  When running `ypinit` on "
"the slave server, use `-s` (for slave) instead of `-m` (for master).  This "
"option requires the name of the NIS master in addition to the domain name, "
"as seen in this example:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:793
#, no-wrap
msgid "coltrane# ypinit -s ellington test-domain\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:795
#, no-wrap
msgid "Server Type: SLAVE Domain: test-domain Master: ellington\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:798
#, no-wrap
msgid ""
"Creating an YP server will require that you answer a few questions.\n"
"Questions will all be asked at the beginning of the procedure.\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:800
#, no-wrap
msgid "Do you want this procedure to quit on non-fatal errors? [y/n: n]  n\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:845
#, no-wrap
msgid ""
"Ok, please remember to go back and redo manually whatever fails.\n"
"If not, something might not work.\n"
"There will be no further questions. The remainder of the procedure\n"
"should take a few minutes, to copy the databases from ellington.\n"
"Transferring netgroup...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring netgroup.byuser...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring netgroup.byhost...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring master.passwd.byuid...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring passwd.byuid...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring passwd.byname...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring group.bygid...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring group.byname...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring services.byname...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring rpc.bynumber...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring rpc.byname...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring protocols.byname...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring master.passwd.byname...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring networks.byname...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring networks.byaddr...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring netid.byname...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring hosts.byaddr...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring protocols.bynumber...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring ypservers...\n"
"ypxfr: Exiting: Map successfully transferred\n"
"Transferring hosts.byname...\n"
"ypxfr: Exiting: Map successfully transferred\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:848
#, no-wrap
msgid ""
"coltrane has been setup as an YP slave server without any errors.\n"
"Remember to update map ypservers on ellington.\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:852
msgid ""
"This will generate a directory on the slave server called [.filename]#/var/"
"yp/test-domain# which contains copies of the NIS master server's maps.  "
"Adding these [.filename]#/etc/crontab# entries on each slave server will "
"force the slaves to sync their maps with the maps on the master server:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:857
#, no-wrap
msgid ""
"20      *       *       *       *       root   /usr/libexec/ypxfr passwd.byname\n"
"21      *       *       *       *       root   /usr/libexec/ypxfr passwd.byuid\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:862
msgid ""
"These entries are not mandatory because the master server automatically "
"attempts to push any map changes to its slaves.  However, since clients may "
"depend upon the slave server to provide correct password information, it is "
"recommended to force frequent password map updates.  This is especially "
"important on busy networks where map updates might not always complete."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:864
msgid ""
"To finish the configuration, run `/etc/netstart` on the slave server in "
"order to start the NIS services."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:865
#, no-wrap
msgid "Setting Up an NIS Client"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:874
msgid ""
"An NIS client binds to an NIS server using man:ypbind[8].  This daemon "
"broadcasts RPC requests on the local network.  These requests specify the "
"domain name configured on the client.  If an NIS server in the same domain "
"receives one of the broadcasts, it will respond to ypbind, which will record "
"the server's address.  If there are several servers available, the client "
"will use the address of the first server to respond and will direct all of "
"its NIS requests to that server.  The client will automatically ping the "
"server on a regular basis to make sure it is still available.  If it fails "
"to receive a reply within a reasonable amount of time, ypbind will mark the "
"domain as unbound and begin broadcasting again in the hopes of locating "
"another server."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:876
msgid "To configure a FreeBSD machine to be an NIS client:"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:880
msgid ""
"Edit [.filename]#/etc/rc.conf# and add the following lines in order to set "
"the NIS domain name and start man:ypbind[8] during network startup:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:885
#, no-wrap
msgid ""
"nisdomainname=\"test-domain\"\n"
"nis_client_enable=\"YES\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:888
msgid ""
"To import all possible password entries from the NIS server, use `vipw` to "
"remove all user accounts except one from [.filename]#/etc/master.passwd#. "
"When removing the accounts, keep in mind that at least one local account "
"should remain and this account should be a member of `wheel`. If there is a "
"problem with NIS, this local account can be used to log in remotely, become "
"the superuser, and fix the problem. Before saving the edits, add the "
"following line to the end of the file:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:892
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1113
#, no-wrap
msgid "+:::::::::\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:898
msgid ""
"This line configures the client to provide anyone with a valid account in "
"the NIS server's password maps an account on the client.  There are many "
"ways to configure the NIS client by modifying this line.  One method is "
"described in <<network-netgroups>>.  For more detailed reading, refer to the "
"book `Managing NFS and NIS`, published by O'Reilly Media."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:899
msgid ""
"To import all possible group entries from the NIS server, add this line to [."
"filename]#/etc/group#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:903
#, no-wrap
msgid "+:*::\n"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:907
msgid ""
"To start the NIS client immediately, execute the following commands as the "
"superuser:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:912
#, no-wrap
msgid ""
"# /etc/netstart\n"
"# service ypbind start\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:915
msgid ""
"After completing these steps, running `ypcat passwd` on the client should "
"show the server's [.filename]#passwd# map."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:916
#, no-wrap
msgid "NIS Security"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:924
msgid ""
"Since RPC is a broadcast-based service, any system running ypbind within the "
"same domain can retrieve the contents of the NIS maps.  To prevent "
"unauthorized transactions, man:ypserv[8] supports a feature called "
"\"securenets\" which can be used to restrict access to a given set of "
"hosts.  By default, this information is stored in [.filename]#/var/yp/"
"securenets#, unless man:ypserv[8] is started with `-p` and an alternate "
"path.  This file contains entries that consist of a network specification "
"and a network mask separated by white space.  Lines starting with `+\"#\"+` "
"are considered to be comments.  A sample [.filename]#securenets# might look "
"like this:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:936
#, no-wrap
msgid ""
"# allow connections from local host -- mandatory\n"
"127.0.0.1     255.255.255.255\n"
"# allow connections from any host\n"
"# on the 192.168.128.0 network\n"
"192.168.128.0 255.255.255.0\n"
"# allow connections from any host\n"
"# between 10.0.0.0 to 10.0.15.255\n"
"# this includes the machines in the testlab\n"
"10.0.0.0      255.255.240.0\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:941
msgid ""
"If man:ypserv[8] receives a request from an address that matches one of "
"these rules, it will process the request normally.  If the address fails to "
"match a rule, the request will be ignored and a warning message will be "
"logged.  If the [.filename]#securenets# does not exist, `ypserv` will allow "
"connections from any host."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:945
msgid ""
"crossref:security[tcpwrappers,\"TCP Wrapper\"] is an alternate mechanism for "
"providing access control instead of [.filename]#securenets#.  While either "
"access control mechanism adds some security, they are both vulnerable to "
"\"IP spoofing\" attacks.  All NIS-related traffic should be blocked at the "
"firewall."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:949
msgid ""
"Servers using [.filename]#securenets# may fail to serve legitimate NIS "
"clients with archaic TCP/IP implementations.  Some of these implementations "
"set all host bits to zero when doing broadcasts or fail to observe the "
"subnet mask when calculating the broadcast address.  While some of these "
"problems can be fixed by changing the client configuration, other problems "
"may force the retirement of these client systems or the abandonment of [."
"filename]#securenets#."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:953
msgid ""
"The use of TCP Wrapper increases the latency of the NIS server.  The "
"additional delay may be long enough to cause timeouts in client programs, "
"especially in busy networks with slow NIS servers.  If one or more clients "
"suffer from latency, convert those clients into NIS slave servers and force "
"them to bind to themselves."
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:954
#, no-wrap
msgid "Barring Some Users"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:959
msgid ""
"In this example, the `basie` system is a faculty workstation within the NIS "
"domain.  The [.filename]#passwd# map on the master NIS server contains "
"accounts for both faculty and students.  This section demonstrates how to "
"allow faculty logins on this system while refusing student logins."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:963
msgid ""
"To prevent specified users from logging on to a system, even if they are "
"present in the NIS database, use `vipw` to add `-_username_` with the "
"correct number of colons towards the end of [.filename]#/etc/master.passwd# "
"on the client, where _username_ is the username of a user to bar from "
"logging in.  The line with the blocked user must be before the `+` line that "
"allows NIS users.  In this example, `bill` is barred from logging on to "
"`basie`:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:984
#, no-wrap
msgid ""
"basie# cat /etc/master.passwd\n"
"root:[password]:0:0::0:0:The super-user:/root:/bin/csh\n"
"toor:[password]:0:0::0:0:The other super-user:/root:/bin/sh\n"
"daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin\n"
"operator:*:2:5::0:0:System &:/:/usr/sbin/nologin\n"
"bin:*:3:7::0:0:Binaries Commands and Source,,,:/:/usr/sbin/nologin\n"
"tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin\n"
"kmem:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin\n"
"games:*:7:13::0:0:Games pseudo-user:/usr/games:/usr/sbin/nologin\n"
"news:*:8:8::0:0:News Subsystem:/:/usr/sbin/nologin\n"
"man:*:9:9::0:0:Mister Man Pages:/usr/share/man:/usr/sbin/nologin\n"
"bind:*:53:53::0:0:Bind Sandbox:/:/usr/sbin/nologin\n"
"uucp:*:66:66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/libexec/uucp/uucico\n"
"xten:*:67:67::0:0:X-10 daemon:/usr/local/xten:/usr/sbin/nologin\n"
"pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin\n"
"nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin\n"
"-bill:::::::::\n"
"+:::::::::\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:986
#, no-wrap
msgid "basie#\n"
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:990
#, no-wrap
msgid "Using Netgroups"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:993
msgid ""
"Barring specified users from logging on to individual systems becomes "
"unscaleable on larger networks and quickly loses the main benefit of NIS: "
"_centralized_ administration."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:996
msgid ""
"Netgroups were developed to handle large, complex networks with hundreds of "
"users and machines.  Their use is comparable to UNIX(R) groups, where the "
"main difference is the lack of a numeric ID and the ability to define a "
"netgroup by including both user accounts and other netgroups."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:998
msgid ""
"To expand on the example used in this chapter, the NIS domain will be "
"extended to add the users and systems shown in Tables 28.2 and 28.3:"
msgstr ""

#. type: Block title
#: documentation/content/en/books/handbook/network-servers/_index.adoc:999
#, no-wrap
msgid "Additional Users"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1003
#, no-wrap
msgid "User Name(s)"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1006
#, no-wrap
msgid "`alpha`, `beta`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1008
#, no-wrap
msgid "IT department employees"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1009
#, no-wrap
msgid "`charlie`, `delta`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1011
#, no-wrap
msgid "IT department apprentices"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1012
#, no-wrap
msgid "`echo`, `foxtrott`, `golf`, ..."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1014
#, no-wrap
msgid "employees"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1015
#, no-wrap
msgid "`able`, `baker`, ..."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1016
#, no-wrap
msgid "interns"
msgstr ""

#. type: Block title
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1018
#, no-wrap
msgid "Additional Systems"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1022
#, no-wrap
msgid "Machine Name(s)"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1025
#, no-wrap
msgid "`war`, `death`, `famine`, `pollution`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1027
#, no-wrap
msgid "Only IT employees are allowed to log onto these servers."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1028
#, no-wrap
msgid "`pride`, `greed`, `envy`, `wrath`, `lust`, `sloth`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1030
#, no-wrap
msgid "All members of the IT department are allowed to login onto these servers."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1031
#, no-wrap
msgid "`one`, `two`, `three`, `four`, ..."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1033
#, no-wrap
msgid "Ordinary workstations used by employees."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1034
#, no-wrap
msgid "`trashcan`"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1035
#, no-wrap
msgid "A very old machine without any critical data. Even interns are allowed to use this system."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1041
msgid ""
"When using netgroups to configure this scenario, each user is assigned to "
"one or more netgroups and logins are then allowed or forbidden for all "
"members of the netgroup.  When adding a new machine, login restrictions must "
"be defined for all netgroups.  When a new user is added, the account must be "
"added to one or more netgroups.  If the NIS setup is planned carefully, only "
"one central configuration file needs modification to grant or deny access to "
"machines."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1045
msgid ""
"The first step is the initialization of the NIS`netgroup` map.  In FreeBSD, "
"this map is not created by default.  On the NIS master server, use an editor "
"to create a map named [.filename]#/var/yp/netgroup#."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1047
msgid ""
"This example creates four netgroups to represent IT employees, IT "
"apprentices, employees, and interns:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1055
#, no-wrap
msgid ""
"IT_EMP  (,alpha,test-domain)    (,beta,test-domain)\n"
"IT_APP  (,charlie,test-domain)  (,delta,test-domain)\n"
"USERS   (,echo,test-domain)     (,foxtrott,test-domain) \\\n"
"        (,golf,test-domain)\n"
"INTERNS (,able,test-domain)     (,baker,test-domain)\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1060
msgid ""
"Each entry configures a netgroup. The first column in an entry is the name "
"of the netgroup.  Each set of parentheses represents either a group of one "
"or more users or the name of another netgroup.  When specifying a user, the "
"three comma-delimited fields inside each group represent:"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1062
msgid ""
"The name of the host(s) where the other fields representing the user are "
"valid. If a hostname is not specified, the entry is valid on all hosts."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1063
msgid "The name of the account that belongs to this netgroup."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1064
msgid ""
"The NIS domain for the account. Accounts may be imported from other NIS "
"domains into a netgroup."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1068
msgid ""
"If a group contains multiple users, separate each user with whitespace.  "
"Additionally, each field may contain wildcards.  See man:netgroup[5] for "
"details."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1071
msgid ""
"Netgroup names longer than 8 characters should not be used.  The names are "
"case sensitive and using capital letters for netgroup names is an easy way "
"to distinguish between user, machine and netgroup names."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1074
msgid ""
"Some non-FreeBSD NIS clients cannot handle netgroups containing more than 15 "
"entries.  This limit may be circumvented by creating several sub-netgroups "
"with 15 users or fewer and a real netgroup consisting of the sub-netgroups, "
"as seen in this example:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1081
#, no-wrap
msgid ""
"BIGGRP1  (,joe1,domain)  (,joe2,domain)  (,joe3,domain) [...]\n"
"BIGGRP2  (,joe16,domain)  (,joe17,domain) [...]\n"
"BIGGRP3  (,joe31,domain)  (,joe32,domain)\n"
"BIGGROUP  BIGGRP1 BIGGRP2 BIGGRP3\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1084
msgid ""
"Repeat this process if more than 225 (15 times 15) users exist within a "
"single netgroup."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1086
msgid "To activate and distribute the new NIS map:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1091
#, no-wrap
msgid ""
"ellington# cd /var/yp\n"
"ellington# make\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1095
msgid ""
"This will generate the three NIS maps [.filename]#netgroup#, [."
"filename]#netgroup.byhost# and [.filename]#netgroup.byuser#.  Use the map "
"key option of man:ypcat[1] to check if the new NIS maps are available:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1101
#, no-wrap
msgid ""
"ellington% ypcat -k netgroup\n"
"ellington% ypcat -k netgroup.byhost\n"
"ellington% ypcat -k netgroup.byuser\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1106
msgid ""
"The output of the first command should resemble the contents of [.filename]#/"
"var/yp/netgroup#.  The second command only produces output if host-specific "
"netgroups were created.  The third command is used to get the list of "
"netgroups for a user."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1109
msgid ""
"To configure a client, use man:vipw[8] to specify the name of the netgroup.  "
"For example, on the server named `war`, replace this line:"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1116
msgid "with"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1120
#, no-wrap
msgid "+@IT_EMP:::::::::\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1123
msgid ""
"This specifies that only the users defined in the netgroup `IT_EMP` will be "
"imported into this system's password database and only those users are "
"allowed to login to this system."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1128
msgid ""
"This configuration also applies to the `~` function of the shell and all "
"routines which convert between user names and numerical user IDs.  In other "
"words, `cd ~_user_` will not work, `ls -l` will show the numerical ID "
"instead of the username, and `find . -user joe -print` will fail with the "
"message `No such user`.  To fix this, import all user entries without "
"allowing them to login into the servers.  This can be achieved by adding an "
"extra line:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1132
#, no-wrap
msgid "+:::::::::/usr/sbin/nologin\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1135
msgid ""
"This line configures the client to import all entries but to replace the "
"shell in those entries with [.filename]#/usr/sbin/nologin#."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1138
msgid ""
"Make sure that extra line is placed _after_ `+@IT_EMP:::::::::`.  Otherwise, "
"all user accounts imported from NIS will have [.filename]#/usr/sbin/nologin# "
"as their login shell and no one will be able to login to the system."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1140
msgid ""
"To configure the less important servers, replace the old `+:::::::::` on the "
"servers with these lines:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1146
#, no-wrap
msgid ""
"+@IT_EMP:::::::::\n"
"+@IT_APP:::::::::\n"
"+:::::::::/usr/sbin/nologin\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1149
msgid "The corresponding lines for the workstations would be:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1155
#, no-wrap
msgid ""
"+@IT_EMP:::::::::\n"
"+@USERS:::::::::\n"
"+:::::::::/usr/sbin/nologin\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1162
msgid ""
"NIS supports the creation of netgroups from other netgroups which can be "
"useful if the policy regarding user access changes.  One possibility is the "
"creation of role-based netgroups.  For example, one might create a netgroup "
"called `BIGSRV` to define the login restrictions for the important servers, "
"another netgroup called `SMALLSRV` for the less important servers, and a "
"third netgroup called `USERBOX` for the workstations.  Each of these "
"netgroups contains the netgroups that are allowed to login onto these "
"machines.  The new entries for the NIS`netgroup` map would look like this:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1168
#, no-wrap
msgid ""
"BIGSRV    IT_EMP  IT_APP\n"
"SMALLSRV  IT_EMP  IT_APP  ITINTERN\n"
"USERBOX   IT_EMP  ITINTERN USERS\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1173
msgid ""
"This method of defining login restrictions works reasonably well when it is "
"possible to define groups of machines with identical restrictions.  "
"Unfortunately, this is the exception and not the rule.  Most of the time, "
"the ability to define login restrictions on a per-machine basis is required."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1178
msgid ""
"Machine-specific netgroup definitions are another possibility to deal with "
"the policy changes.  In this scenario, the [.filename]#/etc/master.passwd# "
"of each system contains two lines starting with \"+\".  The first line adds "
"a netgroup with the accounts allowed to login onto this machine and the "
"second line adds all other accounts with [.filename]#/usr/sbin/nologin# as "
"shell.  It is recommended to use the \"ALL-CAPS\" version of the hostname as "
"the name of the netgroup:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1183
#, no-wrap
msgid ""
"+@BOXNAME:::::::::\n"
"+:::::::::/usr/sbin/nologin\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1188
msgid ""
"Once this task is completed on all the machines, there is no longer a need "
"to modify the local versions of [.filename]#/etc/master.passwd# ever again.  "
"All further changes can be handled by modifying the NIS map.  Here is an "
"example of a possible `netgroup` map for this scenario:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1226
#, no-wrap
msgid ""
"# Define groups of users first\n"
"IT_EMP    (,alpha,test-domain)    (,beta,test-domain)\n"
"IT_APP    (,charlie,test-domain)  (,delta,test-domain)\n"
"DEPT1     (,echo,test-domain)     (,foxtrott,test-domain)\n"
"DEPT2     (,golf,test-domain)     (,hotel,test-domain)\n"
"DEPT3     (,india,test-domain)    (,juliet,test-domain)\n"
"ITINTERN  (,kilo,test-domain)     (,lima,test-domain)\n"
"D_INTERNS (,able,test-domain)     (,baker,test-domain)\n"
"#\n"
"# Now, define some groups based on roles\n"
"USERS     DEPT1   DEPT2     DEPT3\n"
"BIGSRV    IT_EMP  IT_APP\n"
"SMALLSRV  IT_EMP  IT_APP    ITINTERN\n"
"USERBOX   IT_EMP  ITINTERN  USERS\n"
"#\n"
"# And a groups for a special tasks\n"
"# Allow echo and golf to access our anti-virus-machine\n"
"SECURITY  IT_EMP  (,echo,test-domain)  (,golf,test-domain)\n"
"#\n"
"# machine-based netgroups\n"
"# Our main servers\n"
"WAR       BIGSRV\n"
"FAMINE    BIGSRV\n"
"# User india needs access to this server\n"
"POLLUTION  BIGSRV  (,india,test-domain)\n"
"#\n"
"# This one is really important and needs more access restrictions\n"
"DEATH     IT_EMP\n"
"#\n"
"# The anti-virus-machine mentioned above\n"
"ONE       SECURITY\n"
"#\n"
"# Restrict a machine to a single user\n"
"TWO       (,hotel,test-domain)\n"
"# [...more groups to follow]\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1230
msgid ""
"It may not always be advisable to use machine-based netgroups.  When "
"deploying a couple of dozen or hundreds of systems, role-based netgroups "
"instead of machine-based netgroups may be used to keep the size of the NIS "
"map within reasonable limits."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1231
#, no-wrap
msgid "Password Formats"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1236
msgid ""
"NIS requires that all hosts within an NIS domain use the same format for "
"encrypting passwords.  If users have trouble authenticating on an NIS "
"client, it may be due to a differing password format.  In a heterogeneous "
"network, the format must be supported by all operating systems, where DES is "
"the lowest common standard."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1238
msgid ""
"To check which format a server or client is using, look at this section of [."
"filename]#/etc/login.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1245
#, no-wrap
msgid ""
"default:\\\n"
"\t:passwd_format=des:\\\n"
"\t:copyright=/etc/COPYRIGHT:\\\n"
"\t[Further entries elided]\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1250
msgid ""
"In this example, the system is using the DES format for password hashing.  "
"Other possible values include `blf` for Blowfish, `md5` for MD5, `sha256` "
"and `sha512` for SHA-256 and SHA-512 respectively.  For more information and "
"the up to date list of what is available on your system, consult the man:"
"crypt[3] manpage."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1252
msgid ""
"If the format on a host needs to be edited to match the one being used in "
"the NIS domain, the login capability database must be rebuilt after saving "
"the change:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1256
#, no-wrap
msgid "# cap_mkdb /etc/login.conf\n"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1261
msgid ""
"The format of passwords for existing user accounts will not be updated until "
"each user changes their password _after_ the login capability database is "
"rebuilt."
msgstr ""

#. type: Title ==
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1264
#, no-wrap
msgid "Lightweight Directory Access Protocol (LDAP)"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1270
msgid ""
"The Lightweight Directory Access Protocol (LDAP) is an application layer "
"protocol used to access, modify, and authenticate objects using a "
"distributed directory information service.  Think of it as a phone or record "
"book which stores several levels of hierarchical, homogeneous information.  "
"It is used in Active Directory and OpenLDAP networks and allows users to "
"access to several levels of internal information utilizing a single "
"account.  For example, email authentication, pulling employee contact "
"information, and internal website authentication might all make use of a "
"single user account in the LDAP server's record base."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1273
msgid ""
"This section provides a quick start guide for configuring an LDAP server on "
"a FreeBSD system.  It assumes that the administrator already has a design "
"plan which includes the type of information to store, what that information "
"will be used for, which users should have access to that information, and "
"how to secure this information from unauthorized access."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1274
#, no-wrap
msgid "LDAP Terminology and Structure"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1280
msgid ""
"LDAP uses several terms which should be understood before starting the "
"configuration.  All directory entries consist of a group of _attributes_.  "
"Each of these attribute sets contains a unique identifier known as a "
"_Distinguished Name_ (DN) which is normally built from several other "
"attributes such as the common or _Relative Distinguished Name_ (RDN).  "
"Similar to how directories have absolute and relative paths, consider a DN "
"as an absolute path and the RDN as the relative path."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1283
msgid ""
"An example LDAP entry looks like the following.  This example searches for "
"the entry for the specified user account (`uid`), organizational unit "
"(`ou`), and organization (`o`):"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1294
#, no-wrap
msgid ""
"% ldapsearch -xb \"uid=trhodes,ou=users,o=example.com\"\n"
"# extended LDIF\n"
"#\n"
"# LDAPv3\n"
"# base <uid=trhodes,ou=users,o=example.com> with scope subtree\n"
"# filter: (objectclass=*)\n"
"# requesting: ALL\n"
"#\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1301
#, no-wrap
msgid ""
"# trhodes, users, example.com\n"
"dn: uid=trhodes,ou=users,o=example.com\n"
"mail: trhodes@example.com\n"
"cn: Tom Rhodes\n"
"uid: trhodes\n"
"telephoneNumber: (123) 456-7890\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1305
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1579
#, no-wrap
msgid ""
"# search result\n"
"search: 2\n"
"result: 0 Success\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1308
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1582
#, no-wrap
msgid ""
"# numResponses: 2\n"
"# numEntries: 1\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1312
msgid ""
"This example entry shows the values for the `dn`, `mail`, `cn`, `uid`, and "
"`telephoneNumber` attributes.  The cn attribute is the RDN."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1314
msgid ""
"More information about LDAP and its terminology can be found at http://www."
"openldap.org/doc/admin24/intro.html[http://www.openldap.org/doc/admin24/"
"intro.html]."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1316
#, no-wrap
msgid "Configuring an LDAP Server"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1320
msgid ""
"FreeBSD does not provide a built-in LDAP server.  Begin the configuration by "
"installing package:net/openldap-server[] package or port:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1324
#, no-wrap
msgid "# pkg install openldap-server\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1329
msgid ""
"There is a large set of default options enabled in the extref:{linux-users}"
"[package, software].  Review them by running `pkg info openldap-server`.  If "
"they are not sufficient (for example if SQL support is needed), please "
"consider recompiling the port using the appropriate crossref:ports[ports-"
"using,framework]."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1332
msgid ""
"The installation creates the directory [.filename]#/var/db/openldap-data# to "
"hold the data.  The directory to store the certificates must be created:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1336
#, no-wrap
msgid "# mkdir /usr/local/etc/openldap/private\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1343
msgid ""
"The next phase is to configure the Certificate Authority.  The following "
"commands must be executed from [.filename]#/usr/local/etc/openldap/"
"private#.  This is important as the file permissions need to be restrictive "
"and users should not have access to these files.  More detailed information "
"about certificates and their parameters can be found in crossref:"
"security[openssl,\"OpenSSL\"].  To create the Certificate Authority, start "
"with this command and follow the prompts:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1347
#, no-wrap
msgid "# openssl req -days 365 -nodes -new -x509 -keyout ca.key -out ../ca.crt\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1352
msgid ""
"The entries for the prompts may be generic _except_ for the `Common Name`.  "
"This entry must be _different_ than the system hostname.  If this will be a "
"self signed certificate, prefix the hostname with `CA` for Certificate "
"Authority."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1355
msgid ""
"The next task is to create a certificate signing request and a private key.  "
"Input this command and follow the prompts:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1359
#, no-wrap
msgid "# openssl req -days 365 -nodes -new -keyout server.key -out server.csr\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1363
msgid ""
"During the certificate generation process, be sure to correctly set the "
"`Common Name` attribute.  The Certificate Signing Request must be signed "
"with the Certificate Authority in order to be used as a valid certificate:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1367
#, no-wrap
msgid "# openssl x509 -req -days 365 -in server.csr -out ../server.crt -CA ../ca.crt -CAkey ca.key -CAcreateserial\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1370
msgid ""
"The final part of the certificate generation process is to generate and sign "
"the client certificates:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1375
#, no-wrap
msgid ""
"# openssl req -days 365 -nodes -new -keyout client.key -out client.csr\n"
"# openssl x509 -req -days 3650 -in client.csr -out ../client.crt -CA ../ca.crt -CAkey ca.key\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1379
msgid ""
"Remember to use the same `Common Name` attribute when prompted.  When "
"finished, ensure that a total of eight (8) new files have been generated "
"through the proceeding commands."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1382
msgid ""
"The daemon running the OpenLDAP server is [.filename]#slapd#.  Its "
"configuration is performed through [.filename]#slapd.ldif#: the old [."
"filename]#slapd.conf# has been deprecated by OpenLDAP."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1389
msgid ""
"http://www.openldap.org/doc/admin24/slapdconf2.html[Configuration examples] "
"for [.filename]#slapd.ldif# are available and can also be found in [."
"filename]#/usr/local/etc/openldap/slapd.ldif.sample#.  Options are "
"documented in slapd-config(5).  Each section of [.filename]#slapd.ldif#, "
"like all the other LDAP attribute sets, is uniquely identified through a "
"DN.  Be sure that no blank lines are left between the `dn:` statement and "
"the desired end of the section.  In the following example, TLS will be used "
"to implement a secure channel.  The first section represents the global "
"configuration:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1411
#, no-wrap
msgid ""
"#\n"
"# See slapd-config(5) for details on configuration options.\n"
"# This file should NOT be world readable.\n"
"#\n"
"dn: cn=config\n"
"objectClass: olcGlobal\n"
"cn: config\n"
"#\n"
"#\n"
"# Define global ACLs to disable default read access.\n"
"#\n"
"olcArgsFile: /var/run/openldap/slapd.args\n"
"olcPidFile: /var/run/openldap/slapd.pid\n"
"olcTLSCertificateFile: /usr/local/etc/openldap/server.crt\n"
"olcTLSCertificateKeyFile: /usr/local/etc/openldap/private/server.key\n"
"olcTLSCACertificateFile: /usr/local/etc/openldap/ca.crt\n"
"#olcTLSCipherSuite: HIGH\n"
"olcTLSProtocolMin: 3.1\n"
"olcTLSVerifyClient: never\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1416
msgid ""
"The Certificate Authority, server certificate and server private key files "
"must be specified here.  It is recommended to let the clients choose the "
"security cipher and omit option `olcTLSCipherSuite` (incompatible with TLS "
"clients other than [.filename]#openssl#). Option `olcTLSProtocolMin` lets "
"the server require a minimum security level: it is recommended.  While "
"verification is mandatory for the server, it is not for the client: "
"`olcTLSVerifyClient: never`."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1418
msgid ""
"The second section is about the backend modules and can be configured as "
"follows:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1434
#, no-wrap
msgid ""
"#\n"
"# Load dynamic backend modules:\n"
"#\n"
"dn: cn=module,cn=config\n"
"objectClass: olcModuleList\n"
"cn: module\n"
"olcModulepath:\t/usr/local/libexec/openldap\n"
"olcModuleload:\tback_mdb.la\n"
"#olcModuleload:\tback_bdb.la\n"
"#olcModuleload:\tback_hdb.la\n"
"#olcModuleload:\tback_ldap.la\n"
"#olcModuleload:\tback_passwd.la\n"
"#olcModuleload:\tback_shell.la\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1437
msgid ""
"The third section is devoted to load the needed `ldif` schemas to be used by "
"the databases: they are essential."
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1443
#, no-wrap
msgid ""
"dn: cn=schema,cn=config\n"
"objectClass: olcSchemaConfig\n"
"cn: schema\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1448
#, no-wrap
msgid ""
"include: file:///usr/local/etc/openldap/schema/core.ldif\n"
"include: file:///usr/local/etc/openldap/schema/cosine.ldif\n"
"include: file:///usr/local/etc/openldap/schema/inetorgperson.ldif\n"
"include: file:///usr/local/etc/openldap/schema/nis.ldif\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1451
msgid "Next, the frontend configuration section:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1485
#, no-wrap
msgid ""
"# Frontend settings\n"
"#\n"
"dn: olcDatabase={-1}frontend,cn=config\n"
"objectClass: olcDatabaseConfig\n"
"objectClass: olcFrontendConfig\n"
"olcDatabase: {-1}frontend\n"
"olcAccess: to * by * read\n"
"#\n"
"# Sample global access control policy:\n"
"#\tRoot DSE: allow anyone to read it\n"
"#\tSubschema (sub)entry DSE: allow anyone to read it\n"
"#\tOther DSEs:\n"
"#\t\tAllow self write access\n"
"#\t\tAllow authenticated users read access\n"
"#\t\tAllow anonymous users to authenticate\n"
"#\n"
"#olcAccess: to dn.base=\"\" by * read\n"
"#olcAccess: to dn.base=\"cn=Subschema\" by * read\n"
"#olcAccess: to *\n"
"#\tby self write\n"
"#\tby users read\n"
"#\tby anonymous auth\n"
"#\n"
"# if no access controls are present, the default policy\n"
"# allows anyone and everyone to read anything but restricts\n"
"# updates to rootdn.  (e.g., \"access to * by * read\")\n"
"#\n"
"# rootdn can always read and write EVERYTHING!\n"
"#\n"
"olcPasswordHash: {SSHA}\n"
"# {SSHA} is already the default for olcPasswordHash\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1488
msgid ""
"Another section is devoted to the _configuration backend_, the only way to "
"later access the OpenLDAP server configuration is as a global super-user."
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1496
#, no-wrap
msgid ""
"dn: olcDatabase={0}config,cn=config\n"
"objectClass: olcDatabaseConfig\n"
"olcDatabase: {0}config\n"
"olcAccess: to * by * none\n"
"olcRootPW: {SSHA}iae+lrQZILpiUdf16Z9KmDmSwT77Dj4U\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1501
msgid ""
"The default administrator username is `cn=config`.  Type [."
"filename]#slappasswd# in a shell, choose a password and use its hash in "
"`olcRootPW`.  If this option is not specified now, before [.filename]#slapd."
"ldif# is imported, no one will be later able to modify the _global "
"configuration_ section."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1503
msgid "The last section is about the database backend:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1527
#, no-wrap
msgid ""
"#######################################################################\n"
"# LMDB database definitions\n"
"#######################################################################\n"
"#\n"
"dn: olcDatabase=mdb,cn=config\n"
"objectClass: olcDatabaseConfig\n"
"objectClass: olcMdbConfig\n"
"olcDatabase: mdb\n"
"olcDbMaxSize: 1073741824\n"
"olcSuffix: dc=domain,dc=example\n"
"olcRootDN: cn=mdbadmin,dc=domain,dc=example\n"
"# Cleartext passwords, especially for the rootdn, should\n"
"# be avoided.  See slappasswd(8) and slapd-config(5) for details.\n"
"# Use of strong authentication encouraged.\n"
"olcRootPW: {SSHA}X2wHvIWDk6G76CQyCMS1vDCvtICWgn0+\n"
"# The database directory MUST exist prior to running slapd AND\n"
"# should only be accessible by the slapd and slap tools.\n"
"# Mode 700 recommended.\n"
"olcDbDirectory:\t/var/db/openldap-data\n"
"# Indices to maintain\n"
"olcDbIndex: objectClass eq\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1532
msgid ""
"This database hosts the _actual contents_ of the LDAP directory.  Types "
"other than `mdb` are available.  Its super-user, not to be confused with the "
"global one, is configured here: a (possibly custom) username in `olcRootDN` "
"and the password hash in `olcRootPW`; [.filename]#slappasswd# can be used as "
"before."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1535
msgid ""
"This http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=tree;f=tests/"
"data/regressions/its8444;h=8a5e808e63b0de3d2bdaf2cf34fecca8577ca7fd;"
"hb=HEAD[repository] contains four examples of [.filename]#slapd.ldif#.  To "
"convert an existing [.filename]#slapd.conf# into [.filename]#slapd.ldif#, "
"refer to http://www.openldap.org/doc/admin24/slapdconf2.html[this page] "
"(please note that this may introduce some unuseful options)."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1538
msgid ""
"When the configuration is completed, [.filename]#slapd.ldif# must be placed "
"in an empty directory.  It is recommended to create it as:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1542
#, no-wrap
msgid "# mkdir /usr/local/etc/openldap/slapd.d/\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1545
msgid "Import the configuration database:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1549
#, no-wrap
msgid "# /usr/local/sbin/slapadd -n0 -F /usr/local/etc/openldap/slapd.d/ -l /usr/local/etc/openldap/slapd.ldif\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1552
msgid "Start the [.filename]#slapd# daemon:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1556
#, no-wrap
msgid "# /usr/local/libexec/slapd -F /usr/local/etc/openldap/slapd.d/\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1560
msgid ""
"Option `-d` can be used for debugging, as specified in slapd(8).  To verify "
"that the server is running and working:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1571
#, no-wrap
msgid ""
"# ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts\n"
"# extended LDIF\n"
"#\n"
"# LDAPv3\n"
"# base <> with scope baseObject\n"
"# filter: (objectclass=*)\n"
"# requesting: namingContexts\n"
"#\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1575
#, no-wrap
msgid ""
"#\n"
"dn:\n"
"namingContexts: dc=domain,dc=example\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1587
msgid ""
"The server must still be trusted.  If that has never been done before, "
"follow these instructions.  Install the OpenSSL package or port:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1591
#, no-wrap
msgid "# pkg install openssl\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1594
msgid ""
"From the directory where [.filename]#ca.crt# is stored (in this example, [."
"filename]#/usr/local/etc/openldap#), run:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1598
#, no-wrap
msgid "# c_rehash .\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1602
msgid ""
"Both the CA and the server certificate are now correctly recognized in their "
"respective roles.  To verify this, run this command from the [."
"filename]#server.crt# directory:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1606
#, no-wrap
msgid "# openssl verify -verbose -CApath . server.crt\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1610
msgid ""
"If [.filename]#slapd# was running, restart it.  As stated in [.filename]#/"
"usr/local/etc/rc.d/slapd#, to properly run [.filename]#slapd# at boot the "
"following lines must be added to [.filename]#/etc/rc.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1618
#, no-wrap
msgid ""
"slapd_enable=\"YES\"\n"
"slapd_flags='-h \"ldapi://%2fvar%2frun%2fopenldap%2fldapi/\n"
"ldap://0.0.0.0/\"'\n"
"slapd_sockets=\"/var/run/openldap/ldapi\"\n"
"slapd_cn_config=\"YES\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1622
msgid ""
"[.filename]#slapd# does not provide debugging at boot.  Check [.filename]#/"
"var/log/debug.log#, [.filename]#dmesg -a# and [.filename]#/var/log/messages# "
"for this purpose."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1625
msgid ""
"The following example adds the group `team` and the user `john` to the "
"`domain.example` LDAP database, which is still empty.  First, create the "
"file [.filename]#domain.ldif#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1634
#, no-wrap
msgid ""
"# cat domain.ldif\n"
"dn: dc=domain,dc=example\n"
"objectClass: dcObject\n"
"objectClass: organization\n"
"o: domain.example\n"
"dc: domain\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1639
#, no-wrap
msgid ""
"dn: ou=groups,dc=domain,dc=example\n"
"objectClass: top\n"
"objectClass: organizationalunit\n"
"ou: groups\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1644
#, no-wrap
msgid ""
"dn: ou=users,dc=domain,dc=example\n"
"objectClass: top\n"
"objectClass: organizationalunit\n"
"ou: users\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1650
#, no-wrap
msgid ""
"dn: cn=team,ou=groups,dc=domain,dc=example\n"
"objectClass: top\n"
"objectClass: posixGroup\n"
"cn: team\n"
"gidNumber: 10001\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1663
#, no-wrap
msgid ""
"dn: uid=john,ou=users,dc=domain,dc=example\n"
"objectClass: top\n"
"objectClass: account\n"
"objectClass: posixAccount\n"
"objectClass: shadowAccount\n"
"cn: John McUser\n"
"uid: john\n"
"uidNumber: 10001\n"
"gidNumber: 10001\n"
"homeDirectory: /home/john/\n"
"loginShell: /usr/bin/bash\n"
"userPassword: secret\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1669
msgid ""
"See the OpenLDAP documentation for more details.  Use [."
"filename]#slappasswd# to replace the plain text password `secret` with a "
"hash in `userPassword`.  The path specified as `loginShell` must exist in "
"all the systems where `john` is allowed to login.  Finally, use the `mdb` "
"administrator to modify the database:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1673
#, no-wrap
msgid "# ldapadd -W -D \"cn=mdbadmin,dc=domain,dc=example\" -f domain.ldif\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1678
msgid ""
"Modifications to the _global configuration_ section can only be performed by "
"the global super-user.  For example, assume that the option "
"`olcTLSCipherSuite: HIGH:MEDIUM:SSLv3` was initially specified and must now "
"be deleted.  First, create a file that contains the following:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1685
#, no-wrap
msgid ""
"# cat global_mod\n"
"dn: cn=config\n"
"changetype: modify\n"
"delete: olcTLSCipherSuite\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1688
msgid "Then, apply the modifications:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1692
#, no-wrap
msgid "# ldapmodify -f global_mod -x -D \"cn=config\" -W\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1697
msgid ""
"When asked, provide the password chosen in the _configuration backend_ "
"section.  The username is not required: here, `cn=config` represents the DN "
"of the database section to be modified.  Alternatively, use `ldapmodify` to "
"delete a single line of the database, `ldapdelete` to delete a whole entry."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1699
msgid ""
"If something goes wrong, or if the global super-user cannot access the "
"configuration backend, it is possible to delete and re-write the whole "
"configuration:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1703
#, no-wrap
msgid "# rm -rf /usr/local/etc/openldap/slapd.d/\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1707
msgid ""
"[.filename]#slapd.ldif# can then be edited and imported again.  Please, "
"follow this procedure only when no other solution is available."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1710
msgid ""
"This is the configuration of the server only.  The same machine can also "
"host an LDAP client, with its own separate configuration."
msgstr ""

#. type: Title ==
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1712
#, no-wrap
msgid "Dynamic Host Configuration Protocol (DHCP)"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1719
msgid ""
"The Dynamic Host Configuration Protocol (DHCP) allows a system to connect to "
"a network in order to be assigned the necessary addressing information for "
"communication on that network.  FreeBSD includes the OpenBSD version of "
"`dhclient` which is used by the client to obtain the addressing "
"information.  FreeBSD does not install a DHCP server, but several servers "
"are available in the FreeBSD Ports Collection.  The DHCP protocol is fully "
"described in http://www.freesoft.org/CIE/RFC/2131/[RFC 2131].  Informational "
"resources are also available at http://www.isc.org/downloads/dhcp/[isc.org/"
"downloads/dhcp/]."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1722
msgid ""
"This section describes how to use the built-in DHCP client.  It then "
"describes how to install and configure a DHCP server."
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1728
msgid ""
"In FreeBSD, the man:bpf[4] device is needed by both the DHCP server and DHCP "
"client.  This device is included in the [.filename]#GENERIC# kernel that is "
"installed with FreeBSD.  Users who prefer to create a custom kernel need to "
"keep this device if DHCP is used."
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1730
msgid ""
"It should be noted that [.filename]#bpf# also allows privileged users to run "
"network packet sniffers on that system."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1733
#, no-wrap
msgid "Configuring a DHCP Client"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1737
msgid ""
"DHCP client support is included in the FreeBSD installer, making it easy to "
"configure a newly installed system to automatically receive its networking "
"addressing information from an existing DHCP server.  Refer to crossref:"
"bsdinstall[bsdinstall-post,\"Accounts, Time Zone, Services and Hardening\"] "
"for examples of network configuration."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1745
msgid ""
"When `dhclient` is executed on the client machine, it begins broadcasting "
"requests for configuration information.  By default, these requests use UDP "
"port 68.  The server replies on UDP port 67, giving the client an IP address "
"and other relevant network information such as a subnet mask, default "
"gateway, and DNS server addresses.  This information is in the form of a "
"DHCP \"lease\" and is valid for a configurable time.  This allows stale IP "
"addresses for clients no longer connected to the network to automatically be "
"reused.  DHCP clients can obtain a great deal of information from the "
"server.  An exhaustive list may be found in man:dhcp-options[5]."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1748
msgid ""
"By default, when a FreeBSD system boots, its DHCP client runs in the "
"background, or _asynchronously_.  Other startup scripts continue to run "
"while the DHCP process completes, which speeds up system startup."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1753
msgid ""
"Background DHCP works well when the DHCP server responds quickly to the "
"client's requests.  However, DHCP may take a long time to complete on some "
"systems.  If network services attempt to run before DHCP has assigned the "
"network addressing information, they will fail.  Using DHCP in _synchronous_ "
"mode prevents this problem as it pauses startup until the DHCP configuration "
"has completed."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1755
msgid ""
"This line in [.filename]#/etc/rc.conf# is used to configure background or "
"asynchronous mode:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1759
#, no-wrap
msgid "ifconfig_fxp0=\"DHCP\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1763
msgid ""
"This line may already exist if the system was configured to use DHCP during "
"installation.  Replace the _fxp0_ shown in these examples with the name of "
"the interface to be dynamically configured, as described in crossref:"
"config[config-network-setup,“Setting Up Network Interface Cards”]."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1765
msgid ""
"To instead configure the system to use synchronous mode, and to pause during "
"startup while DHCP completes, use \"`SYNCDHCP`\":"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1769
#, no-wrap
msgid "ifconfig_fxp0=\"SYNCDHCP\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1773
msgid ""
"Additional client options are available.  Search for `dhclient` in man:rc."
"conf[5] for details."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1775
msgid "The DHCP client uses the following files:"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1777
msgid "[.filename]#/etc/dhclient.conf#"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1781
msgid ""
"The configuration file used by `dhclient`.  Typically, this file contains "
"only comments as the defaults are suitable for most clients.  This "
"configuration file is described in man:dhclient.conf[5]."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1782
msgid "[.filename]#/sbin/dhclient#"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1784
msgid ""
"More information about the command itself can be found in man:dhclient[8]."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1785
msgid "[.filename]#/sbin/dhclient-script#"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1788
msgid ""
"The FreeBSD-specific DHCP client configuration script.  It is described in "
"man:dhclient-script[8], but should not need any user modification to "
"function properly."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1789
msgid "[.filename]#/var/db/dhclient.leases.interface#"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1791
msgid ""
"The DHCP client keeps a database of valid leases in this file, which is "
"written as a log and is described in man:dhclient.leases[5]."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1794
#, no-wrap
msgid "Installing and Configuring a DHCP Server"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1798
msgid ""
"This section demonstrates how to configure a FreeBSD system to act as a DHCP "
"server using the Internet Systems Consortium (ISC) implementation of the "
"DHCP server.  This implementation and its documentation can be installed "
"using the package:net/isc-dhcp44-server[] package or port."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1801
msgid ""
"The installation of package:net/isc-dhcp44-server[] installs a sample "
"configuration file.  Copy [.filename]#/usr/local/etc/dhcpd.conf.example# to "
"[.filename]#/usr/local/etc/dhcpd.conf# and make any edits to this new file."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1804
msgid ""
"The configuration file is comprised of declarations for subnets and hosts "
"which define the information that is provided to DHCP clients.  For example, "
"these lines configure the following:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1810
#, no-wrap
msgid ""
"option domain-name \"example.org\";<.>\n"
"option domain-name-servers ns1.example.org;<.>\n"
"option subnet-mask 255.255.255.0;<.>\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1814
#, no-wrap
msgid ""
"default-lease-time 600;<.>\n"
"max-lease-time 72400;<.>\n"
"ddns-update-style none;<.>\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1819
#, no-wrap
msgid ""
"subnet 10.254.239.0 netmask 255.255.255.224 {\n"
"  range 10.254.239.10 10.254.239.20;<.>\n"
"  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;<.>\n"
"}\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1824
#, no-wrap
msgid ""
"host fantasia {\n"
"  hardware ethernet 08:00:07:26:c0:a5;<.>\n"
"  fixed-address fantasia.fugue.com;<.>\n"
"}\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1827
msgid ""
"This option specifies the default search domain that will be provided to "
"clients. Refer to man:resolv.conf[5] for more information."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1828
msgid ""
"This option specifies a comma separated list of DNS servers that the client "
"should use. They can be listed by their Fully Qualified Domain Names (FQDN), "
"as seen in the example, or by their IP addresses."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1829
msgid "The subnet mask that will be provided to clients."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1830
msgid ""
"The default lease expiry time in seconds. A client can be configured to "
"override this value."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1831
msgid ""
"The maximum allowed length of time, in seconds, for a lease. Should a client "
"request a longer lease, a lease will still be issued, but it will only be "
"valid for `max-lease-time`."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1832
msgid ""
"The default of `none` disables dynamic DNS updates. Changing this to "
"`interim` configures the DHCP server to update a DNS server whenever it "
"hands out a lease so that the DNS server knows which IP addresses are "
"associated with which computers in the network. Do not change the default "
"setting unless the DNS server has been configured to support dynamic DNS."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1833
msgid ""
"This line creates a pool of available IP addresses which are reserved for "
"allocation to DHCP clients. The range of addresses must be valid for the "
"network or subnet specified in the previous line."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1834
msgid ""
"Declares the default gateway that is valid for the network or subnet "
"specified before the opening `{` bracket."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1835
msgid ""
"Specifies the hardware MAC address of a client so that the DHCP server can "
"recognize the client when it makes a request."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1836
msgid ""
"Specifies that this host should always be given the same IP address. Using "
"the hostname is correct, since the DHCP server will resolve the hostname "
"before returning the lease information."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1839
msgid ""
"This configuration file supports many more options.  Refer to dhcpd.conf(5), "
"installed with the server, for details and examples."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1841
msgid ""
"Once the configuration of [.filename]#dhcpd.conf# is complete, enable the "
"DHCP server in [.filename]#/etc/rc.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1846
#, no-wrap
msgid ""
"dhcpd_enable=\"YES\"\n"
"dhcpd_ifaces=\"dc0\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1849
msgid ""
"Replace the `dc0` with the interface (or interfaces, separated by "
"whitespace) that the DHCP server should listen on for DHCP client requests."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1851
msgid "Start the server by issuing the following command:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1855
#, no-wrap
msgid "# service isc-dhcpd start\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1858
msgid ""
"Any future changes to the configuration of the server will require the dhcpd "
"service to be stopped and then started using man:service[8]."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1861
msgid ""
"The DHCP server uses the following files.  Note that the manual pages are "
"installed with the server software."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1863
msgid "[.filename]#/usr/local/sbin/dhcpd#"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1865
msgid "More information about the dhcpd server can be found in dhcpd(8)."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1866
msgid "[.filename]#/usr/local/etc/dhcpd.conf#"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1869
msgid ""
"The server configuration file needs to contain all the information that "
"should be provided to clients, along with information regarding the "
"operation of the server.  This configuration file is described in dhcpd."
"conf(5)."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1870
msgid "[.filename]#/var/db/dhcpd.leases#"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1873
msgid ""
"The DHCP server keeps a database of leases it has issued in this file, which "
"is written as a log.  Refer to dhcpd.leases(5), which gives a slightly "
"longer description."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1874
msgid "[.filename]#/usr/local/sbin/dhcrelay#"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1878
msgid ""
"This daemon is used in advanced environments where one DHCP server forwards "
"a request from a client to another DHCP server on a separate network.  If "
"this functionality is required, install the package:net/isc-dhcp44-relay[] "
"package or port.  The installation includes dhcrelay(8) which provides more "
"detail."
msgstr ""

#. type: Title ==
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1881
#, no-wrap
msgid "Domain Name System (DNS)"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1886
msgid ""
"Domain Name System (DNS) is the protocol through which domain names are "
"mapped to IP addresses, and vice versa.  DNS is coordinated across the "
"Internet through a somewhat complex system of authoritative root, Top Level "
"Domain (TLD), and other smaller-scale name servers, which host and cache "
"individual domain information.  It is not necessary to run a name server to "
"perform DNS lookups on a system."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1888
msgid "The following table describes some of the terms associated with DNS:"
msgstr ""

#. type: Block title
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1889
#, no-wrap
msgid "DNS Terminology"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1895
#, no-wrap
msgid "Definition"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1896
#, no-wrap
msgid "Forward DNS"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1898
#, no-wrap
msgid "Mapping of hostnames to IP addresses."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1899
#, no-wrap
msgid "Origin"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1901
#, no-wrap
msgid "Refers to the domain covered in a particular zone file."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1902
#, no-wrap
msgid "Resolver"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1904
#, no-wrap
msgid "A system process through which a machine queries a name server for zone information."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1905
#, no-wrap
msgid "Reverse DNS"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1907
#, no-wrap
msgid "Mapping of IP addresses to hostnames."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1908
#, no-wrap
msgid "Root zone"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1910
#, no-wrap
msgid "The beginning of the Internet zone hierarchy. All zones fall under the root zone, similar to how all files in a file system fall under the root directory."
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1911
#, no-wrap
msgid "Zone"
msgstr ""

#. type: Table
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1912
#, no-wrap
msgid "An individual domain, subdomain, or portion of the DNS administered by the same authority."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1915
msgid "Examples of zones:"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1917
msgid "`.` is how the root zone is usually referred to in documentation."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1918
msgid "`org.` is a Top Level Domain (TLD) under the root zone."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1919
msgid "`example.org.` is a zone under the `org.`TLD."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1920
msgid ""
"`1.168.192.in-addr.arpa` is a zone referencing all IP addresses which fall "
"under the `192.168.1.*`IP address space."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1924
msgid ""
"As one can see, the more specific part of a hostname appears to its left.  "
"For example, `example.org.` is more specific than `org.`, as `org.` is more "
"specific than the root zone.  The layout of each part of a hostname is much "
"like a file system: the [.filename]#/dev# directory falls within the root, "
"and so on."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1925
#, no-wrap
msgid "Reasons to Run a Name Server"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1928
msgid ""
"Name servers generally come in two forms: authoritative name servers, and "
"caching (also known as resolving) name servers."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1930
msgid "An authoritative name server is needed when:"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1932
msgid ""
"One wants to serve DNS information to the world, replying authoritatively to "
"queries."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1933
msgid ""
"A domain, such as `example.org`, is registered and IP addresses need to be "
"assigned to hostnames under it."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1934
msgid "An IP address block requires reverse DNS entries (IP to hostname)."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1935
msgid "A backup or second name server, called a slave, will reply to queries."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1937
msgid "A caching name server is needed when:"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1939
msgid ""
"A local DNS server may cache and respond more quickly than querying an "
"outside name server."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1943
msgid ""
"When one queries for `www.FreeBSD.org`, the resolver usually queries the "
"uplink ISP's name server, and retrieves the reply.  With a local, caching "
"DNS server, the query only has to be made once to the outside world by the "
"caching DNS server.  Additional queries will not have to go outside the "
"local network, since the information is cached locally."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1944
#, no-wrap
msgid "DNS Server Configuration"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1949
msgid ""
"Unbound is provided in the FreeBSD base system.  By default, it will provide "
"DNS resolution to the local machine only.  While the base system package can "
"be configured to provide resolution services beyond the local machine, it is "
"recommended that such requirements be addressed by installing Unbound from "
"the FreeBSD Ports Collection."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1951
msgid "To enable Unbound, add the following to [.filename]#/etc/rc.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1955
#, no-wrap
msgid "local_unbound_enable=\"YES\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1958
msgid ""
"Any existing nameservers in [.filename]#/etc/resolv.conf# will be configured "
"as forwarders in the new Unbound configuration."
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1964
msgid ""
"If any of the listed nameservers do not support DNSSEC, local DNS resolution "
"will fail.  Be sure to test each nameserver and remove any that fail the "
"test.  The following command will show the trust tree or a failure for a "
"nameserver running on `192.168.1.1`:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1968
#, no-wrap
msgid "% drill -S FreeBSD.org @192.168.1.1\n"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1972
msgid "Once each nameserver is confirmed to support DNSSEC, start Unbound:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1976
#, no-wrap
msgid "# service local_unbound onestart\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1980
msgid ""
"This will take care of updating [.filename]#/etc/resolv.conf# so that "
"queries for DNSSEC secured domains will now work.  For example, run the "
"following to validate the FreeBSD.org DNSSEC trust tree:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:1986
#, no-wrap
msgid ""
"% drill -S FreeBSD.org\n"
";; Number of trusted keys: 1\n"
";; Chasing: freebsd.org. A\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2002
#, no-wrap
msgid ""
"DNSSEC Trust tree:\n"
"freebsd.org. (A)\n"
"|---freebsd.org. (DNSKEY keytag: 36786 alg: 8 flags: 256)\n"
"    |---freebsd.org. (DNSKEY keytag: 32659 alg: 8 flags: 257)\n"
"    |---freebsd.org. (DS keytag: 32659 digest type: 2)\n"
"        |---org. (DNSKEY keytag: 49587 alg: 7 flags: 256)\n"
"            |---org. (DNSKEY keytag: 9795 alg: 7 flags: 257)\n"
"            |---org. (DNSKEY keytag: 21366 alg: 7 flags: 257)\n"
"            |---org. (DS keytag: 21366 digest type: 1)\n"
"            |   |---. (DNSKEY keytag: 40926 alg: 8 flags: 256)\n"
"            |       |---. (DNSKEY keytag: 19036 alg: 8 flags: 257)\n"
"            |---org. (DS keytag: 21366 digest type: 2)\n"
"                |---. (DNSKEY keytag: 40926 alg: 8 flags: 256)\n"
"                    |---. (DNSKEY keytag: 19036 alg: 8 flags: 257)\n"
";; Chase successful\n"
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2004
#, no-wrap
msgid "Authoritative Name Server Configuration"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2007
msgid ""
"FreeBSD does not provide authoritative name server software in the base "
"system.  Users are encouraged to install third party applications, like "
"package:dns/nsd[] or package:dns/bind918[] package or port."
msgstr ""

#. type: Title ==
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2009
#, no-wrap
msgid "Apache HTTP Server"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2013
msgid ""
"The open source Apache HTTP Server is the most widely used web server.  "
"FreeBSD does not install this web server by default, but it can be installed "
"from the package:www/apache24[] package or port."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2016
msgid ""
"This section summarizes how to configure and start version 2._x_ of the "
"Apache HTTP Server on FreeBSD.  For more detailed information about Apache 2."
"X and its configuration directives, refer to http://httpd.apache.org/[httpd."
"apache.org]."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2017
#, no-wrap
msgid "Configuring and Starting Apache"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2022
msgid ""
"In FreeBSD, the main Apache HTTP Server configuration file is installed as [."
"filename]#/usr/local/etc/apache2x/httpd.conf#, where _x_ represents the "
"version number.  This ASCII text file begins comment lines with a `+#+`.  "
"The most frequently modified directives are:"
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2023
#, no-wrap
msgid "`ServerRoot \"/usr/local\"`"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2026
msgid ""
"Specifies the default directory hierarchy for the Apache installation.  "
"Binaries are stored in the [.filename]#bin# and [.filename]#sbin# "
"subdirectories of the server root and configuration files are stored in the "
"[.filename]#etc/apache2x# subdirectory."
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2027
#, no-wrap
msgid "`ServerAdmin you@example.com`"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2030
msgid ""
"Change this to the email address to receive problems with the server.  This "
"address also appears on some server-generated pages, such as error documents."
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2031
#, no-wrap
msgid "`ServerName www.example.com:80`"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2036
msgid ""
"Allows an administrator to set a hostname which is sent back to clients for "
"the server.  For example, `www` can be used instead of the actual hostname.  "
"If the system does not have a registered DNS name, enter its IP address "
"instead.  If the server will listen on an alternate report, change `80` to "
"the alternate port number."
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2037
#, no-wrap
msgid "`DocumentRoot \"/usr/local/www/apache2_x_/data\"`"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2040
msgid ""
"The directory where documents will be served from.  By default, all requests "
"are taken from this directory, but symbolic links and aliases may be used to "
"point to other locations."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2044
msgid ""
"It is always a good idea to make a backup copy of the default Apache "
"configuration file before making changes.  When the configuration of Apache "
"is complete, save the file and verify the configuration using `apachectl`.  "
"Running `apachectl configtest` should return `Syntax OK`."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2046
msgid ""
"To launch Apache at system startup, add the following line to [.filename]#/"
"etc/rc.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2050
#, no-wrap
msgid "apache24_enable=\"YES\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2053
msgid ""
"If Apache should be started with non-default options, the following line may "
"be added to [.filename]#/etc/rc.conf# to specify the needed flags:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2057
#, no-wrap
msgid "apache24_flags=\"\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2060
msgid "If apachectl does not report configuration errors, start `httpd` now:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2064
#, no-wrap
msgid "# service apache24 start\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2068
msgid ""
"The `httpd` service can be tested by entering `http://_localhost_` in a web "
"browser, replacing _localhost_ with the fully-qualified domain name of the "
"machine running `httpd`.  The default web page that is displayed is [."
"filename]#/usr/local/www/apache24/data/index.html#."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2070
msgid ""
"The Apache configuration can be tested for errors after making subsequent "
"configuration changes while `httpd` is running using the following command:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2074
#, no-wrap
msgid "# service apache24 configtest\n"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2079
msgid ""
"It is important to note that `configtest` is not an man:rc[8] standard, and "
"should not be expected to work for all startup scripts."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2081
#, no-wrap
msgid "Virtual Hosting"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2087
msgid ""
"Virtual hosting allows multiple websites to run on one Apache server.  The "
"virtual hosts can be _IP-based_ or _name-based_.  IP-based virtual hosting "
"uses a different IP address for each website.  Name-based virtual hosting "
"uses the clients HTTP/1.1 headers to figure out the hostname, which allows "
"the websites to share the same IP address."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2090
msgid ""
"To setup Apache to use name-based virtual hosting, add a `VirtualHost` block "
"for each website.  For example, for the webserver named `www.domain.tld` "
"with a virtual domain of `www.someotherdomain.tld`, add the following "
"entries to [.filename]#httpd.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2097
#, no-wrap
msgid ""
"<VirtualHost *>\n"
"    ServerName www.domain.tld\n"
"    DocumentRoot /www/domain.tld\n"
"</VirtualHost>\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2102
#, no-wrap
msgid ""
"<VirtualHost *>\n"
"    ServerName www.someotherdomain.tld\n"
"    DocumentRoot /www/someotherdomain.tld\n"
"</VirtualHost>\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2105
msgid ""
"For each virtual host, replace the values for `ServerName` and "
"`DocumentRoot` with the values to be used."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2107
msgid ""
"For more information about setting up virtual hosts, consult the official "
"Apache documentation at: http://httpd.apache.org/docs/vhosts/[http://httpd."
"apache.org/docs/vhosts/]."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2108
#, no-wrap
msgid "Apache Modules"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2112
msgid ""
"Apache uses modules to augment the functionality provided by the basic "
"server.  Refer to http://httpd.apache.org/docs/current/mod/[http://httpd."
"apache.org/docs/current/mod/] for a complete listing of and the "
"configuration details for the available modules."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2117
msgid ""
"In FreeBSD, some modules can be compiled with the package:www/apache24[] "
"port.  Type `make config` within [.filename]#/usr/ports/www/apache24# to see "
"which modules are available and which are enabled by default.  If the module "
"is not compiled with the port, the FreeBSD Ports Collection provides an easy "
"way to install many modules.  This section describes three of the most "
"commonly used modules."
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2118
#, no-wrap
msgid "SSL support"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2125
msgid ""
"At one point, support for SSL inside of Apache required a secondary module "
"called [.filename]#mod_ssl#.  This is no longer the case and the default "
"install of Apache comes with SSL built into the web server.  An example of "
"how to enable support for SSL websites is available in the installed file, [."
"filename]#httpd-ssl.conf# inside of the [.filename]#/usr/local/etc/apache24/"
"extra# directory Inside this directory is also a sample file called named [."
"filename]#ssl.conf-sample#.  It is recommended that both files be evaluated "
"to properly set up secure websites in the Apache web server."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2127
msgid ""
"After the configuration of SSL is complete, the following line must be "
"uncommented in the main [.filename]#http.conf# to activate the changes on "
"the next restart or reload of Apache:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2131
#, no-wrap
msgid "#Include etc/apache24/extra/httpd-ssl.conf\n"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2138
msgid ""
"SSL version two and version three have known vulnerability issues.  It is "
"highly recommended TLS version 1.2 and 1.3 be enabled in place of the older "
"SSL options.  This can be accomplished by setting the following options in "
"the [.filename]#ssl.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2145
#, no-wrap
msgid ""
"SSLProtocol all -SSLv3 -SSLv2 +TLSv1.2 +TLSv1.3\n"
"SSLProxyProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2148
msgid ""
"To complete the configuration of SSL in the web server, uncomment the "
"following line to ensure that the configuration will be pulled into Apache "
"during restart or reload:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2153
#, no-wrap
msgid ""
"# Secure (SSL/TLS) connections\n"
"Include etc/apache24/extra/httpd-ssl.conf\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2156
msgid ""
"The following lines must also be uncommented in the [.filename]#httpd.conf# "
"to fully support SSL in Apache:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2162
#, no-wrap
msgid ""
"LoadModule authn_socache_module libexec/apache24/mod_authn_socache.so\n"
"LoadModule socache_shmcb_module libexec/apache24/mod_socache_shmcb.so\n"
"LoadModule ssl_module libexec/apache24/mod_ssl.so\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2166
msgid ""
"The next step is to work with a certificate authority to have the "
"appropriate certificates installed on the system.  This will set up a chain "
"of trust for the site and prevent any warnings of self-signed certificates."
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2167
#, no-wrap
msgid "[.filename]#mod_perl#"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2171
msgid ""
"The [.filename]#mod_perl# module makes it possible to write Apache modules "
"in Perl.  In addition, the persistent interpreter embedded in the server "
"avoids the overhead of starting an external interpreter and the penalty of "
"Perl start-up time."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2174
msgid ""
"The [.filename]#mod_perl# can be installed using the package:www/mod_perl2[] "
"package or port.  Documentation for using this module can be found at http://"
"perl.apache.org/docs/2.0/index.html[http://perl.apache.org/docs/2.0/index."
"html]."
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2175
#, no-wrap
msgid "[.filename]#mod_php#"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2179
msgid ""
"_PHP: Hypertext Preprocessor_ (PHP) is a general-purpose scripting language "
"that is especially suited for web development.  Capable of being embedded "
"into HTML, its syntax draws upon C, Java(TM), and Perl with the intention of "
"allowing web developers to write dynamically generated webpages quickly."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2181
msgid ""
"Support for PHP for Apache and any other feature written in the language, "
"can be added by installing the appropriate port."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2183
msgid "For all supported versions, search the package database using `pkg`:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2187
#, no-wrap
msgid "# pkg search php\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2192
msgid ""
"A list will be displayed including the versions and additional features they "
"provide.  The components are completely modular, meaning features are "
"enabled by installing the appropriate port.  To install PHP version 7.4 for "
"Apache, issue the following command:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2196
#, no-wrap
msgid "# pkg install mod_php74\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2199
msgid ""
"If any dependency packages need to be installed, they will be installed as "
"well."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2202
msgid ""
"By default, PHP will not be enabled.  The following lines will need to be "
"added to the Apache configuration file located in [.filename]#/usr/local/etc/"
"apache24# to make it active:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2211
#, no-wrap
msgid ""
"<FilesMatch \"\\.php$\">\n"
"    SetHandler application/x-httpd-php\n"
"</FilesMatch>\n"
"<FilesMatch \"\\.phps$\">\n"
"    SetHandler application/x-httpd-php-source\n"
"</FilesMatch>\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2214
msgid ""
"In addition, the `DirectoryIndex` in the configuration file will also need "
"to be updated and Apache will either need to be restarted or reloaded for "
"the changes to take effect."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2217
msgid ""
"Support for many of the PHP features may also be installed by using `pkg`.  "
"For example, to install support for XML or SSL, install their respective "
"ports:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2221
#, no-wrap
msgid "# pkg install php74-xml php74-openssl\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2224
msgid ""
"As before, the Apache configuration will need to be reloaded for the changes "
"to take effect, even in cases where it was just a module install."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2226
msgid ""
"To perform a graceful restart to reload the configuration, issue the "
"following command:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2230
#, no-wrap
msgid "# apachectl graceful\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2234
msgid ""
"Once the install is complete, there are two methods of obtaining the "
"installed PHP support modules and the environmental information of the "
"build.  The first is to install the full PHP binary and running the command "
"to gain the information:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2238
#, no-wrap
msgid "# pkg install php74\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2244
#, no-wrap
msgid "# php -i |less\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2247
msgid ""
"It is necessary to pass the output to a pager, such as the `more` or `less` "
"to easier digest the amount of output."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2251
msgid ""
"Finally, to make any changes to the global configuration of PHP there is a "
"well documented file installed into [.filename]#/usr/local/etc/php.ini#.  At "
"the time of install, this file will not exist because there are two versions "
"to choose from, one is [.filename]#php.ini-development# and the other is [."
"filename]#php.ini-production#.  These are starting points to assist "
"administrators in their deployment."
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2252
#, no-wrap
msgid "HTTP2 Support"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2257
msgid ""
"Apache support for the HTTP2 protocol is included by default when installing "
"the port with `pkg`.  The new version of HTTP includes many improvements "
"over the previous version, including utilizing a single connection to a "
"website, reducing overall roundtrips of TCP connections.  Also, packet "
"header data is compressed and HTTP2 requires encryption by default."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2260
msgid ""
"When Apache is configured to only use HTTP2, web browsers will require "
"secure, encrypted HTTPS connections.  When Apache is configured to use both "
"versions, HTTP1.1 will be considered a fall back option if any issues arise "
"during the connection."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2263
msgid ""
"While this change does require administrators to make changes, they are "
"positive and equate to a more secure Internet for everyone.  The changes are "
"only required for sites not currently implementing SSL and TLS."
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2268
msgid ""
"This configuration depends on the previous sections, including TLS support.  "
"It is recommended those instructions be followed before continuing with this "
"configuration."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2271
msgid ""
"Start the process by enabling the http2 module by uncommenting the line in [."
"filename]#/usr/local/etc/apache24/httpd.conf# and replace the mpm_prefork "
"module with mpm_event as the former does not support HTTP2."
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2276
#, no-wrap
msgid ""
"LoadModule http2_module libexec/apache24/mod_http2.so\n"
"LoadModule mpm_event_module libexec/apache24/mod_mpm_event.so\n"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2284
msgid ""
"There is a separate [.filename]#mod_http2# port that is available.  It "
"exists to deliver security and bug fixes quicker than the module installed "
"with the bundled [.filename]#apache24# port.  It is not required for HTTP2 "
"support but is available.  When installed, the [.filename]#mod_h2.so# should "
"be used in place of [.filename]#mod_http2.so# in the Apache configuration."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2288
msgid ""
"There are two methods to implement HTTP2 in Apache; one way is globally for "
"all sites and each VirtualHost running on the system.  To enable HTTP2 "
"globally, add the following line under the ServerName directive:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2292
#, no-wrap
msgid "Protocols h2 http/1.1\n"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2297
msgid ""
"To enable HTTP2 over plaintext, use h2h2chttp/1.1 in the [.filename]#httpd."
"conf#."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2301
msgid ""
"Having the h2c here will allow plaintext HTTP2 data to pass on the system "
"but is not recommended.  In addition, using the http/1.1 here will allow "
"fallback to the HTTP1.1 version of the protocol should it be needed by the "
"system."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2303
msgid ""
"To enable HTTP2 for individual VirtualHosts, add the same line within the "
"VirtualHost directive in either [.filename]#httpd.conf# or [.filename]#httpd-"
"ssl.conf#."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2305
msgid ""
"Reload the configuration using the `apachectl`[parameter]#reload# command "
"and test the configuration either by using either of the following methods "
"after visiting one of the hosted pages:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2309
#, no-wrap
msgid "# grep \"HTTP/2.0\" /var/log/httpd-access.log\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2312
msgid "This should return something similar to the following:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2319
#, no-wrap
msgid ""
"192.168.1.205 - - [18/Oct/2020:18:34:36 -0400] \"GET / HTTP/2.0\" 304 -\n"
"192.0.2.205 - - [18/Oct/2020:19:19:57 -0400] \"GET / HTTP/2.0\" 304 -\n"
"192.0.0.205 - - [18/Oct/2020:19:20:52 -0400] \"GET / HTTP/2.0\" 304 -\n"
"192.0.2.205 - - [18/Oct/2020:19:23:10 -0400] \"GET / HTTP/2.0\" 304 -\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2322
msgid ""
"The other method is using the web browser's built in site debugger or "
"`tcpdump`; however, using either method is beyond the scope of this document."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2325
msgid ""
"Support for HTTP2 reverse proxy connections by using the [."
"filename]#mod_proxy_http2.so# module.  When configuring the ProxyPass or "
"RewriteRules [P] statements, they should use h2:// for the connection."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2326
#, no-wrap
msgid "Dynamic Websites"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2330
msgid ""
"In addition to mod_perl and mod_php, other languages are available for "
"creating dynamic web content.  These include Django and Ruby on Rails."
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2331
#, no-wrap
msgid "Django"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2337
msgid ""
"Django is a BSD-licensed framework designed to allow developers to write "
"high performance, elegant web applications quickly.  It provides an object-"
"relational mapper so that data types are developed as Python objects.  A "
"rich dynamic database-access API is provided for those objects without the "
"developer ever having to write SQL.  It also provides an extensible template "
"system so that the logic of the application is separated from the HTML "
"presentation."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2341
msgid ""
"Django depends on [.filename]#mod_python#, and an SQL database engine.  In "
"FreeBSD, the package:www/py-django[] port automatically installs [."
"filename]#mod_python# and supports the PostgreSQL, MySQL, or SQLite "
"databases, with the default being SQLite.  To change the database engine, "
"type `make config` within [.filename]#/usr/ports/www/py-django#, then "
"install the port."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2344
msgid ""
"Once Django is installed, the application will need a project directory "
"along with the Apache configuration in order to use the embedded Python "
"interpreter.  This interpreter is used to call the application for specific "
"URLs on the site."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2346
msgid ""
"To configure Apache to pass requests for certain URLs to the web "
"application, add the following to [.filename]#httpd.conf#, specifying the "
"full path to the project directory:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2357
#, no-wrap
msgid ""
"<Location \"/\">\n"
"    SetHandler python-program\n"
"    PythonPath \"['/dir/to/the/django/packages/'] + sys.path\"\n"
"    PythonHandler django.core.handlers.modpython\n"
"    SetEnv DJANGO_SETTINGS_MODULE mysite.settings\n"
"    PythonAutoReload On\n"
"    PythonDebug On\n"
"</Location>\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2360
msgid ""
"Refer to https://docs.djangoproject.com[https://docs.djangoproject.com] for "
"more information on how to use Django."
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2361
#, no-wrap
msgid "Ruby on Rails"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2366
msgid ""
"Ruby on Rails is another open source web framework that provides a full "
"development stack.  It is optimized to make web developers more productive "
"and capable of writing powerful applications quickly.  On FreeBSD, it can be "
"installed using the package:www/rubygem-rails[] package or port."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2368
msgid ""
"Refer to http://guides.rubyonrails.org[http://guides.rubyonrails.org] for "
"more information on how to use Ruby on Rails."
msgstr ""

#. type: Title ==
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2370
#, no-wrap
msgid "File Transfer Protocol (FTP)"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2374
msgid ""
"The File Transfer Protocol (FTP) provides users with a simple way to "
"transfer files to and from an FTP server.  FreeBSD includes FTP server "
"software, ftpd, in the base system."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2378
msgid ""
"FreeBSD provides several configuration files for controlling access to the "
"FTP server.  This section summarizes these files.  Refer to man:ftpd[8] for "
"more details about the built-in FTP server."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2379
#, no-wrap
msgid "Configuration"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2385
msgid ""
"The most important configuration step is deciding which accounts will be "
"allowed access to the FTP server.  A FreeBSD system has a number of system "
"accounts which should not be allowed FTP access.  The list of users "
"disallowed any FTP access can be found in [.filename]#/etc/ftpusers#. By "
"default, it includes system accounts.  Additional users that should not be "
"allowed access to FTP can be added."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2389
msgid ""
"In some cases it may be desirable to restrict the access of some users "
"without preventing them completely from using FTP.  This can be accomplished "
"be creating [.filename]#/etc/ftpchroot# as described in man:ftpchroot[5].  "
"This file lists users and groups subject to FTP access restrictions."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2394
msgid ""
"To enable anonymous FTP access to the server, create a user named `ftp` on "
"the FreeBSD system.  Users will then be able to log on to the FTP server "
"with a username of `ftp` or `anonymous`.  When prompted for the password, "
"any input will be accepted, but by convention, an email address should be "
"used as the password.  The FTP server will call man:chroot[2] when an "
"anonymous user logs in, to restrict access to only the home directory of the "
"`ftp` user."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2399
msgid ""
"There are two text files that can be created to specify welcome messages to "
"be displayed to FTP clients.  The contents of [.filename]#/etc/ftpwelcome# "
"will be displayed to users before they reach the login prompt.  After a "
"successful login, the contents of [.filename]#/etc/ftpmotd# will be "
"displayed.  Note that the path to this file is relative to the login "
"environment, so the contents of [.filename]#~ftp/etc/ftpmotd# would be "
"displayed for anonymous users."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2401
msgid ""
"Once the FTP server has been configured, set the appropriate variable in [."
"filename]#/etc/rc.conf# to start the service during boot:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2405
#, no-wrap
msgid "ftpd_enable=\"YES\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2408
msgid "To start the service now:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2412
#, no-wrap
msgid "# service ftpd start\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2415
msgid "Test the connection to the FTP server by typing:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2419
#, no-wrap
msgid "% ftp localhost\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2424
msgid ""
"The ftpd daemon uses man:syslog[3] to log messages.  By default, the system "
"log daemon will write messages related to FTP in [.filename]#/var/log/"
"xferlog#.  The location of the FTP log can be modified by changing the "
"following line in [.filename]#/etc/syslog.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2428
#, no-wrap
msgid "ftp.info      /var/log/xferlog\n"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2437
msgid ""
"Be aware of the potential problems involved with running an anonymous FTP "
"server.  In particular, think twice about allowing anonymous users to upload "
"files.  It may turn out that the FTP site becomes a forum for the trade of "
"unlicensed commercial software or worse.  If anonymous FTP uploads are "
"required, then verify the permissions so that these files cannot be read by "
"other anonymous users until they have been reviewed by an administrator."
msgstr ""

#. type: Title ==
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2440
#, no-wrap
msgid "File and Print Services for Microsoft(R) Windows(R) Clients (Samba)"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2447
msgid ""
"Samba is a popular open source software package that provides file and print "
"services using the SMB/CIFS protocol.  This protocol is built into "
"Microsoft(R) Windows(R) systems.  It can be added to non-Microsoft(R) "
"Windows(R) systems by installing the Samba client libraries.  The protocol "
"allows clients to access shared data and printers.  These shares can be "
"mapped as a local disk drive and shared printers can be used as if they were "
"local printers."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2450
msgid ""
"On FreeBSD, the Samba client libraries can be installed using the package:"
"net/samba413[] port or package.  The client provides the ability for a "
"FreeBSD system to access SMB/CIFS shares in a Microsoft(R) Windows(R) "
"network."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2453
msgid ""
"A FreeBSD system can also be configured to act as a Samba server by "
"installing the same package:net/samba413[] port or package.  This allows the "
"administrator to create SMB/CIFS shares on the FreeBSD system which can be "
"accessed by clients running Microsoft(R) Windows(R) or the Samba client "
"libraries."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2454
#, no-wrap
msgid "Server Configuration"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2458
msgid ""
"Samba is configured in [.filename]#/usr/local/etc/smb4.conf#.  This file "
"must be created before Samba can be used."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2461
msgid ""
"A simple [.filename]#smb4.conf# to share directories and printers with "
"Windows(R) clients in a workgroup is shown here.  For more complex setups "
"involving LDAP or Active Directory, it is easier to use man:samba-tool[8] to "
"create the initial [.filename]#smb4.conf#."
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2471
#, no-wrap
msgid ""
"[global]\n"
"workgroup = WORKGROUP\n"
"server string = Samba Server Version %v\n"
"netbios name = ExampleMachine\n"
"wins support = Yes\n"
"security = user\n"
"passdb backend = tdbsam\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2483
#, no-wrap
msgid ""
"# Example: share /usr/src accessible only to 'developer' user\n"
"[src]\n"
"path = /usr/src\n"
"valid users = developer\n"
"writable  = yes\n"
"browsable = yes\n"
"read only = no\n"
"guest ok = no\n"
"public = no\n"
"create mask = 0666\n"
"directory mask = 0755\n"
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2486
#, no-wrap
msgid "Global Settings"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2489
msgid ""
"Settings that describe the network are added in [.filename]#/usr/local/etc/"
"smb4.conf#:"
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2490
#, no-wrap
msgid "`workgroup`"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2492
msgid "The name of the workgroup to be served."
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2493
#, no-wrap
msgid "`netbios name`"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2496
msgid ""
"The NetBIOS name by which a Samba server is known.  By default, it is the "
"same as the first component of the host's DNS name."
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2497
#, no-wrap
msgid "`server string`"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2499
msgid ""
"The string that will be displayed in the output of `net view` and some other "
"networking tools that seek to display descriptive text about the server."
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2500
#, no-wrap
msgid "`wins support`"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2503
msgid ""
"Whether Samba will act as a WINS server.  Do not enable support for WINS on "
"more than one server on the network."
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2505
#, no-wrap
msgid "Security Settings"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2509
msgid ""
"The most important settings in [.filename]#/usr/local/etc/smb4.conf# are the "
"security model and the backend password format.  These directives control "
"the options:"
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2510
#, no-wrap
msgid "`security`"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2514
msgid ""
"The most common settings are `security = share` and `security = user`.  If "
"the clients use usernames that are the same as their usernames on the "
"FreeBSD machine, user level security should be used.  This is the default "
"security policy and it requires clients to first log on before they can "
"access shared resources."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2517
msgid ""
"In share level security, clients do not need to log onto the server with a "
"valid username and password before attempting to connect to a shared "
"resource.  This was the default security model for older versions of Samba."
msgstr ""

#. type: Labeled list
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2518
#, no-wrap
msgid "`passdb backend`"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2524
msgid ""
"Samba has several different backend authentication models.  Clients may be "
"authenticated with LDAP, NIS+, an SQL database, or a modified password "
"file.  The recommended authentication method, `tdbsam`, is ideal for simple "
"networks and is covered here.  For larger or more complex networks, "
"`ldapsam` is recommended.  `smbpasswd` was the former default and is now "
"obsolete."
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2525
#, no-wrap
msgid "Samba Users"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2529
msgid ""
"FreeBSD user accounts must be mapped to the `SambaSAMAccount` database for "
"Windows(R) clients to access the share.  Map existing FreeBSD user accounts "
"using man:pdbedit[8]:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2533
#, no-wrap
msgid "# pdbedit -a -u username\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2537
msgid ""
"This section has only mentioned the most commonly used settings.  Refer to "
"the https://wiki.samba.org[Official Samba Wiki] for additional information "
"about the available configuration options."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2538
#, no-wrap
msgid "Starting Samba"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2541
msgid ""
"To enable Samba at boot time, add the following line to [.filename]#/etc/rc."
"conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2545
#, no-wrap
msgid "samba_server_enable=\"YES\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2548
msgid "To start Samba now:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2555
#, no-wrap
msgid ""
"# service samba_server start\n"
"Performing sanity check on Samba configuration: OK\n"
"Starting nmbd.\n"
"Starting smbd.\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2560
msgid ""
"Samba consists of three separate daemons.  Both the nmbd and smbd daemons "
"are started by `samba_enable`.  If winbind name resolution is also required, "
"set:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2564
#, no-wrap
msgid "winbindd_enable=\"YES\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2567
msgid "Samba can be stopped at any time by typing:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2571
#, no-wrap
msgid "# service samba_server stop\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2575
msgid ""
"Samba is a complex software suite with functionality that allows broad "
"integration with Microsoft(R) Windows(R) networks.  For more information "
"about functionality beyond the basic configuration described here, refer to "
"https://www.samba.org[https://www.samba.org]."
msgstr ""

#. type: Title ==
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2577
#, no-wrap
msgid "Clock Synchronization with NTP"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2583
msgid ""
"Over time, a computer's clock is prone to drift.  This is problematic as "
"many network services require the computers on a network to share the same "
"accurate time.  Accurate time is also needed to ensure that file timestamps "
"stay consistent.  The Network Time Protocol (NTP) is one way to provide "
"clock accuracy in a network."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2585
msgid ""
"FreeBSD includes man:ntpd[8] which can be configured to query other NTP "
"servers to synchronize the clock on that machine or to provide time services "
"to other computers in the network."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2588
msgid ""
"This section describes how to configure ntpd on FreeBSD.  Further "
"documentation can be found in [.filename]#/usr/share/doc/ntp/# in HTML "
"format."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2589
#, no-wrap
msgid "NTP Configuration"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2593
msgid ""
"On FreeBSD, the built-in ntpd can be used to synchronize a system's clock.  "
"ntpd is configured using man:rc.conf[5] variables and [.filename]#/etc/ntp."
"conf#, as detailed in the following sections."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2596
msgid ""
"ntpd communicates with its network peers using UDP packets.  Any firewalls "
"between your machine and its NTP peers must be configured to allow UDP "
"packets in and out on port 123."
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2597
#, no-wrap
msgid "The [.filename]#/etc/ntp.conf# file"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2607
msgid ""
"ntpd reads [.filename]#/etc/ntp.conf# to determine which NTP servers to "
"query.  Choosing several NTP servers is recommended in case one of the "
"servers becomes unreachable or its clock proves unreliable.  As ntpd "
"receives responses, it favors reliable servers over the less reliable ones.  "
"The servers which are queried can be local to the network, provided by an "
"ISP, or selected from an http://support.ntp.org/bin/view/Servers/"
"WebHome[ online list of publicly accessible NTP servers].  When choosing a "
"public NTP server, select one that is geographically close and review its "
"usage policy.  The `pool` configuration keyword selects one or more servers "
"from a pool of servers.  An http://support.ntp.org/bin/view/Servers/"
"NTPPoolServers[ online list of publicly accessible NTP pools] is available, "
"organized by geographic area.  In addition, FreeBSD provides a project-"
"sponsored pool, `0.freebsd.pool.ntp.org`."
msgstr ""

#. type: Block title
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2608
#, no-wrap
msgid "Sample [.filename]#/etc/ntp.conf#"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2613
msgid ""
"This is a simple example of an [.filename]#ntp.conf# file.  It can safely be "
"used as-is; it contains the recommended `restrict` options for operation on "
"a publicly-accessible network connection."
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2621
#, no-wrap
msgid ""
"# Disallow ntpq control/query access.  Allow peers to be added only\n"
"# based on pool and server statements in this file.\n"
"restrict default limited kod nomodify notrap noquery nopeer\n"
"restrict source  limited kod nomodify notrap noquery\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2625
#, no-wrap
msgid ""
"# Allow unrestricted access from localhost for queries and control.\n"
"restrict 127.0.0.1\n"
"restrict ::1\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2628
#, no-wrap
msgid ""
"# Add a specific server.\n"
"server ntplocal.example.com iburst\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2632
#, no-wrap
msgid ""
"# Add FreeBSD pool servers until 3-6 good servers are available.\n"
"tos minclock 3 maxclock 6\n"
"pool 0.freebsd.pool.ntp.org iburst\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2635
#, no-wrap
msgid ""
"# Use a local leap-seconds file.\n"
"leapfile \"/var/db/ntpd.leap-seconds.list\"\n"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2641
msgid ""
"The format of this file is described in man:ntp.conf[5].  The descriptions "
"below provide a quick overview of just the keywords used in the sample file "
"above."
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2647
msgid ""
"By default, an NTP server is accessible to any network host.  The `restrict` "
"keyword controls which systems can access the server.  Multiple `restrict` "
"entries are supported, each one refining the restrictions given in previous "
"statements.  The values shown in the example grant the local system full "
"query and control access, while allowing remote systems only the ability to "
"query the time.  For more details, refer to the `Access Control Support` "
"subsection of man:ntp.conf[5]."
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2653
msgid ""
"The `server` keyword specifies a single server to query.  The file can "
"contain multiple server keywords, with one server listed on each line.  The "
"`pool` keyword specifies a pool of servers.  ntpd will add one or more "
"servers from this pool as needed to reach the number of peers specified "
"using the `tos minclock` value.  The `iburst` keyword directs ntpd to "
"perform a burst of eight quick packet exchanges with a server when contact "
"is first established, to help quickly synchronize system time."
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2657
msgid ""
"The `leapfile` keyword specifies the location of a file containing "
"information about leap seconds.  The file is updated automatically by man:"
"periodic[8].  The file location specified by this keyword must match the "
"location set in the `ntp_db_leapfile` variable in [.filename]#/etc/rc.conf#."
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2658
#, no-wrap
msgid "NTP entries in [.filename]#/etc/rc.conf#"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2662
msgid ""
"Set `ntpd_enable=YES` to start ntpd at boot time.  Once `ntpd_enable=YES` "
"has been added to [.filename]#/etc/rc.conf#, ntpd can be started immediately "
"without rebooting the system by typing:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2666
#, no-wrap
msgid "# service ntpd start\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2670
msgid ""
"Only `ntpd_enable` must be set to use ntpd.  The [.filename]#rc.conf# "
"variables listed below may also be set as needed."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2674
msgid ""
"Set `ntpd_sync_on_start=YES` to allow ntpd to step the clock any amount, one "
"time at startup.  Normally ntpd will log an error message and exit if the "
"clock is off by more than 1000 seconds.  This option is especially useful on "
"systems without a battery-backed realtime clock."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2676
msgid ""
"Set `ntpd_oomprotect=YES` to protect the ntpd daemon from being killed by "
"the system attempting to recover from an Out Of Memory (OOM) condition."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2678
msgid ""
"Set `ntpd_config=` to the location of an alternate [.filename]#ntp.conf# "
"file."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2680
msgid ""
"Set `ntpd_flags=` to contain any other ntpd flags as needed, but avoid using "
"these flags which are managed internally by [.filename]#/etc/rc.d/ntpd#:"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2682
msgid "`-p` (pid file location)"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2683
msgid "`-c` (set `ntpd_config=` instead)"
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2685
#, no-wrap
msgid "ntpd and the unpriveleged `ntpd` user"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2692
msgid ""
"ntpd on FreeBSD can start and run as an unpriveleged user.  Doing so "
"requires the man:mac_ntpd[4] policy module.  The [.filename]#/etc/rc.d/ntpd# "
"startup script first examines the NTP configuration.  If possible, it loads "
"the `mac_ntpd` module, then starts ntpd as unpriveleged user `ntpd` (user id "
"123).  To avoid problems with file and directory access, the startup script "
"will not automatically start ntpd as `ntpd` when the configuration contains "
"any file-related options."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2694
msgid ""
"The presence of any of the following in `ntpd_flags` requires manual "
"configuration as described below to run as the `ntpd` user:"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2696
msgid "-f or --driftfile"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2697
msgid "-i or --jaildir"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2698
msgid "-k or --keyfile"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2699
msgid "-l or --logfile"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2700
msgid "-s or --statsdir"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2702
msgid ""
"The presence of any of the following keywords in [.filename]#ntp.conf# "
"requires manual configuration as described below to run as the `ntpd` user:"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2704
msgid "crypto"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2705
msgid "driftfile"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2706
msgid "key"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2707
msgid "logdir"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2708
msgid "statsdir"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2710
msgid "To manually configure ntpd to run as user `ntpd` you must:"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2712
msgid ""
"Ensure that the `ntpd` user has access to all the files and directories "
"specified in the configuration."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2713
msgid ""
"Arrange for the `mac_ntpd` module to be loaded or compiled into the kernel. "
"See man:mac_ntpd[4] for details."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2714
msgid "Set `ntpd_user=\"ntpd\"` in [.filename]#/etc/rc.conf#"
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2715
#, no-wrap
msgid "Using NTP with a PPP Connection"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2720
msgid ""
"ntpd does not need a permanent connection to the Internet to function "
"properly.  However, if a PPP connection is configured to dial out on demand, "
"NTP traffic should be prevented from triggering a dial out or keeping the "
"connection alive.  This can be configured with `filter` directives in [."
"filename]#/etc/ppp/ppp.conf#. For example:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2731
#, no-wrap
msgid ""
"set filter dial 0 deny udp src eq 123\n"
"# Prevent NTP traffic from initiating dial out\n"
"set filter dial 1 permit 0 0\n"
"set filter alive 0 deny udp src eq 123\n"
"# Prevent incoming NTP traffic from keeping the connection open\n"
"set filter alive 1 deny udp dst eq 123\n"
"# Prevent outgoing NTP traffic from keeping the connection open\n"
"set filter alive 2 permit 0/0 0/0\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2734
msgid ""
"For more details, refer to the `PACKET FILTERING` section in man:ppp[8] and "
"the examples in [.filename]#/usr/share/examples/ppp/#."
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2738
msgid ""
"Some Internet access providers block low-numbered ports, preventing NTP from "
"functioning since replies never reach the machine."
msgstr ""

#. type: Title ==
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2741
#, no-wrap
msgid "iSCSI Initiator and Target Configuration"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2745
msgid ""
"iSCSI is a way to share storage over a network.  Unlike NFS, which works at "
"the file system level, iSCSI works at the block device level."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2749
msgid ""
"In iSCSI terminology, the system that shares the storage is known as the "
"_target_.  The storage can be a physical disk, or an area representing "
"multiple disks or a portion of a physical disk.  For example, if the disk(s) "
"are formatted with ZFS, a zvol can be created to use as the iSCSI storage."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2753
msgid ""
"The clients which access the iSCSI storage are called _initiators_.  To "
"initiators, the storage available through iSCSI appears as a raw, "
"unformatted disk known as a LUN.  Device nodes for the disk appear in [."
"filename]#/dev/# and the device must be separately formatted and mounted."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2756
msgid ""
"FreeBSD provides a native, kernel-based iSCSI target and initiator.  This "
"section describes how to configure a FreeBSD system as a target or an "
"initiator."
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2758
#, no-wrap
msgid "Configuring an iSCSI Target"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2761
msgid ""
"To configure an iSCSI target, create the [.filename]#/etc/ctl.conf# "
"configuration file, add a line to [.filename]#/etc/rc.conf# to make sure the "
"man:ctld[8] daemon is automatically started at boot, and then start the "
"daemon."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2764
msgid ""
"The following is an example of a simple [.filename]#/etc/ctl.conf# "
"configuration file.  Refer to man:ctl.conf[5] for a complete description of "
"this file's available options."
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2772
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2850
#, no-wrap
msgid ""
"portal-group pg0 {\n"
"\tdiscovery-auth-group no-authentication\n"
"\tlisten 0.0.0.0\n"
"\tlisten [::]\n"
"}\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2776
#, no-wrap
msgid ""
"target iqn.2012-06.com.example:target0 {\n"
"\tauth-group no-authentication\n"
"\tportal-group pg0\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2782
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2880
#, no-wrap
msgid ""
"\tlun 0 {\n"
"\t\tpath /data/target0-0\n"
"\t\tsize 4G\n"
"\t}\n"
"}\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2788
msgid ""
"The first entry defines the `pg0` portal group.  Portal groups define which "
"network addresses the man:ctld[8] daemon will listen on.  The `discovery-"
"auth-group no-authentication` entry indicates that any initiator is allowed "
"to perform iSCSI target discovery without authentication.  Lines three and "
"four configure man:ctld[8] to listen on all IPv4 (`listen 0.0.0.0`) and IPv6 "
"(`listen [::]`) addresses on the default port of 3260."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2791
msgid ""
"It is not necessary to define a portal group as there is a built-in portal "
"group called `default`.  In this case, the difference between `default` and "
"`pg0` is that with `default`, target discovery is always denied, while with "
"`pg0`, it is always allowed."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2799
msgid ""
"The second entry defines a single target.  Target has two possible meanings: "
"a machine serving iSCSI or a named group of LUNs.  This example uses the "
"latter meaning, where `iqn.2012-06.com.example:target0` is the target name.  "
"This target name is suitable for testing purposes.  For actual use, change "
"`com.example` to the real domain name, reversed.  The `2012-06` represents "
"the year and month of acquiring control of that domain name, and `target0` "
"can be any value.  Any number of targets can be defined in this "
"configuration file."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2801
msgid ""
"The `auth-group no-authentication` line allows all initiators to connect to "
"the specified target and `portal-group pg0` makes the target reachable "
"through the `pg0` portal group."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2809
msgid ""
"The next section defines the LUN.  To the initiator, each LUN will be "
"visible as a separate disk device.  Multiple LUNs can be defined for each "
"target.  Each LUN is identified by a number, where LUN 0 is mandatory.  The "
"`path /data/target0-0` line defines the full path to a file or zvol backing "
"the LUN.  That path must exist before starting man:ctld[8].  The second line "
"is optional and specifies the size of the LUN."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2811
msgid ""
"Next, to make sure the man:ctld[8] daemon is started at boot, add this line "
"to [.filename]#/etc/rc.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2815
#, no-wrap
msgid "ctld_enable=\"YES\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2818
msgid "To start man:ctld[8] now, run this command:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2822
#, no-wrap
msgid "# service ctld start\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2826
msgid ""
"As the man:ctld[8] daemon is started, it reads [.filename]#/etc/ctl.conf#.  "
"If this file is edited after the daemon starts, use this command so that the "
"changes take effect immediately:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2830
#, no-wrap
msgid "# service ctld reload\n"
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2833
#, no-wrap
msgid "Authentication"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2837
msgid ""
"The previous example is inherently insecure as it uses no authentication, "
"granting anyone full access to all targets.  To require a username and "
"password to access targets, modify the configuration as follows:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2844
#, no-wrap
msgid ""
"auth-group ag0 {\n"
"\tchap username1 secretsecret\n"
"\tchap username2 anothersecret\n"
"}\n"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2859
#, no-wrap
msgid ""
"target iqn.2012-06.com.example:target0 {\n"
"\tauth-group ag0\n"
"\tportal-group pg0\n"
"\tlun 0 {\n"
"\t\tpath /data/target0-0\n"
"\t\tsize 4G\n"
"\t}\n"
"}\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2865
msgid ""
"The `auth-group` section defines username and password pairs.  An initiator "
"trying to connect to `iqn.2012-06.com.example:target0` must first specify a "
"defined username and secret.  However, target discovery is still permitted "
"without authentication.  To require target discovery authentication, set "
"`discovery-auth-group` to a defined `auth-group` name instead of `no-"
"authentication`."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2868
msgid ""
"It is common to define a single exported target for every initiator.  As a "
"shorthand for the syntax above, the username and password can be specified "
"directly in the target entry:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2874
#, no-wrap
msgid ""
"target iqn.2012-06.com.example:target0 {\n"
"\tportal-group pg0\n"
"\tchap username1 secretsecret\n"
msgstr ""

#. type: Title ===
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2884
#, no-wrap
msgid "Configuring an iSCSI Initiator"
msgstr ""

#. type: delimited block = 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2890
msgid ""
"The iSCSI initiator described in this section is supported starting with "
"FreeBSD 10.0-RELEASE.  To use the iSCSI initiator available in older "
"versions, refer to man:iscontrol[8]."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2895
msgid ""
"The iSCSI initiator requires that the man:iscsid[8] daemon is running.  This "
"daemon does not use a configuration file.  To start it automatically at "
"boot, add this line to [.filename]#/etc/rc.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2899
#, no-wrap
msgid "iscsid_enable=\"YES\"\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2902
msgid "To start man:iscsid[8] now, run this command:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2906
#, no-wrap
msgid "# service iscsid start\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2910
msgid ""
"Connecting to a target can be done with or without an [.filename]#/etc/iscsi."
"conf# configuration file.  This section demonstrates both types of "
"connections."
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2911
#, no-wrap
msgid "Connecting to a Target Without a Configuration File"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2914
msgid ""
"To connect an initiator to a single target, specify the IP address of the "
"portal and the name of the target:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2918
#, no-wrap
msgid "# iscsictl -A -p 10.10.10.10 -t iqn.2012-06.com.example:target0\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2922
msgid ""
"To verify if the connection succeeded, run `iscsictl` without any "
"arguments.  The output should look similar to this:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2927
#, no-wrap
msgid ""
"Target name                                     Target portal   State\n"
"iqn.2012-06.com.example:target0                 10.10.10.10     Connected: da0\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2931
msgid ""
"In this example, the iSCSI session was successfully established, with [."
"filename]#/dev/da0# representing the attached LUN.  If the `iqn.2012-06.com."
"example:target0` target exports more than one LUN, multiple device nodes "
"will be shown in that section of the output:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2935
#, no-wrap
msgid "Connected: da0 da1 da2.\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2939
msgid ""
"Any errors will be reported in the output, as well as the system logs.  For "
"example, this message usually means that the man:iscsid[8] daemon is not "
"running:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2944
#, no-wrap
msgid ""
"Target name                                     Target portal   State\n"
"iqn.2012-06.com.example:target0                 10.10.10.10     Waiting for iscsid(8)\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2947
msgid ""
"The following message suggests a networking problem, such as a wrong IP "
"address or port:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2952
#, no-wrap
msgid ""
"Target name                                     Target portal   State\n"
"iqn.2012-06.com.example:target0                 10.10.10.11     Connection refused\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2955
msgid "This message means that the specified target name is wrong:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2960
#, no-wrap
msgid ""
"Target name                                     Target portal   State\n"
"iqn.2012-06.com.example:target0                 10.10.10.10     Not found\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2963
msgid "This message means that the target requires authentication:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2968
#, no-wrap
msgid ""
"Target name                                     Target portal   State\n"
"iqn.2012-06.com.example:target0                 10.10.10.10     Authentication failed\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2971
msgid "To specify a CHAP username and secret, use this syntax:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2975
#, no-wrap
msgid "# iscsictl -A -p 10.10.10.10 -t iqn.2012-06.com.example:target0 -u user -s secretsecret\n"
msgstr ""

#. type: Title ====
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2978
#, no-wrap
msgid "Connecting to a Target with a Configuration File"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2981
msgid ""
"To connect using a configuration file, create [.filename]#/etc/iscsi.conf# "
"with contents like this:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2991
#, no-wrap
msgid ""
"t0 {\n"
"\tTargetAddress   = 10.10.10.10\n"
"\tTargetName      = iqn.2012-06.com.example:target0\n"
"\tAuthMethod      = CHAP\n"
"\tchapIName       = user\n"
"\tchapSecret      = secretsecret\n"
"}\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:2998
msgid ""
"The `t0` specifies a nickname for the configuration file section.  It will "
"be used by the initiator to specify which configuration to use.  The other "
"lines specify the parameters to use during connection.  The `TargetAddress` "
"and `TargetName` are mandatory, whereas the other options are optional.  In "
"this example, the CHAP username and secret are shown."
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:3000
msgid "To connect to the defined target, specify the nickname:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:3004
#, no-wrap
msgid "# iscsictl -An t0\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:3007
msgid ""
"Alternately, to connect to all targets defined in the configuration file, "
"use:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:3011
#, no-wrap
msgid "# iscsictl -Aa\n"
msgstr ""

#. type: Plain text
#: documentation/content/en/books/handbook/network-servers/_index.adoc:3014
msgid ""
"To make the initiator automatically connect to all targets in [.filename]#/"
"etc/iscsi.conf#, add the following to [.filename]#/etc/rc.conf#:"
msgstr ""

#. type: delimited block . 4
#: documentation/content/en/books/handbook/network-servers/_index.adoc:3019
#, no-wrap
msgid ""
"iscsictl_enable=\"YES\"\n"
"iscsictl_flags=\"-Aa\"\n"
msgstr ""