|
root / base / usr / src / cmd / cmd-inet / etc
etc Plain Text 2417 lines 79.4 KB
   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
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
# Copyright 2022 Garrett D'Amore

SYMPROG= hosts inetd.conf networks protocols services netmasks

# New /etc/inet files shouldn't have /etc entries.
EDITPROG= ipaddrsel.conf ipsecalgs
PROG= datemsk.ndpd ipsecinit.sample ipqosconf.1.sample ipqosconf.2.sample \
    ipqosconf.3.sample
ETCPROG= $(SYMPROG) $(EDITPROG) $(PROG)
# Hammerhead: removed init.d (SysV-init pppd wrapper; zyginit replaces SMF/SysV).
SUBDIRS= default dhcp ike ppp secret sock2path.d

include ../../Makefile.cmd

all:		TARGET= all
install:	TARGET= install

ROOTVAR=	$(ROOT)/var
INETETCDIR=	$(ROOTETC)/inet
INETVARDIR=	$(ROOTVAR)/inet
DIRS=		$(INETETCDIR) $(INETVARDIR)
SYMDIR=		inet
ETCINETPROG=	$(ETCPROG:%=$(INETETCDIR)/%)
EDITFILES=	$(SYMPROG:%=$(INETETCDIR)/%) $(EDITPROG:%=$(INETETCDIR)/%)
# Only old /etc/inet files get symlinks in /etc.
SYMETCPROG=	$(SYMPROG:%=sym_%)
SYMIPNODES=	$(INETETCDIR)/ipnodes

FILEMODE= 0444

.KEEP_STATE:

$(EDITFILES) : FILEMODE= 0644

all: $(ETCPROG) $(SUBDIRS)

install: all $(DIRS) $(ETCINETPROG) $(SYMETCPROG) $(SYMIPNODES) $(SUBDIRS)

$(SYMIPNODES) :
	$(RM) $@
	$(SYMLINK) ./hosts $@

$(INETETCDIR)/% : %
	$(INS.file)

sym_% : %
	$(RM) $(ROOTETC)/$<
	$(SYMLINK) $(SYMDIR)/$< $(ROOTETC)/$<

$(DIRS):
	$(INS.dir)

$(SUBDIRS): FRC $(DIRS)
	@cd $@; pwd; $(MAKE) $(TARGET)

FRC:

# datemsk.ndpd is generated from datemsk.template because of a side-effect of
# SCCS.  Some of the datemsk.ndpd format strings include "%<letter>%", which
# SCCS confuses for ID keywords.  datemsk.template should quote the "%"
# with "\" and code below will filter out the "\".  Only datemsk.ndpd format
# strings next to each other need to be quoted.

datemsk.ndpd: datemsk.template
	@while read i; do echo $$i; done < datemsk.template > $@

clean clobber:
	$(RM) datemsk.ndpd

lint:
%Y-%m-%d\%t\%R
%Y-%m-%d
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident	"%Z%%M%	%I%	%E% SMI"
#
# cmd/cmd-inet/etc/default/Makefile

DEFAULTFILES=	inetinit.dfl ipsec.dfl

include ../../../Makefile.cmd

all clean lint:

install: all $(ROOTETCDEFAULTFILES)

include ../../../Makefile.targ

.KEEP_STATE:
.PARALLEL:
#
# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# ident	"%Z%%M%	%I%	%E% SMI"
#
# TCP_STRONG_ISS sets the TCP initial sequence number generation parameters.
# Set TCP_STRONG_ISS to be:
#	0 = Old-fashioned sequential initial sequence number generation.
#	1 = Improved sequential generation, with random variance in increment.
#	2 = RFC 1948 sequence number generation, unique-per-connection-ID.
#
TCP_STRONG_ISS=2
#
# ACCEPT6TO4RELAY sets the policy for 6to4 tunnels communicating with 6to4
# Relay Routers as defined in RFC 3056.  Traffic sent from a 6to4 site to a
# native IPv6 host will be tunneled over the IPv4 Internet to a 6to4 Relay
# Router before being delivered to the native IPv6 host.  Enabling support
# for sending/receiving traffic to/from a 6to4 Relay Router can create a
# security risk for a 6to4 site, since there is no default trust
# mechanism for communicating with Relay Routers.  Communication support
# with 6to4 Relay Routers has been disabled by default.  ACCEPT6TO4RELAY
# can be set to the following values:
#	NO = Disables communication with 6to4 Relay Routers
#	YES = Enables communication with 6to4 Relay Routers and thus native
#	    IPv6 hosts through a 6to4 tunnel.
#
# When ACCEPT6TO4RELAY=YES, RELAY6TO4ADDR will be used to determine the
# destination IPv4 address to be used as a tunnel endpoint when communicating
# with 6to4 Relay Routers.  192.88.99.1 is the well-known 6to4 Relay Router
# Anycast address as defined in RFC 3068.  This value may be changed to
# the IPv4 unicast address of a particular 6to4 Relay Router, if desired.
#
ACCEPT6TO4RELAY=NO
RELAY6TO4ADDR="192.88.99.1"
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# ident	"%Z%%M%	%I%	%E% SMI"
#
# IKE CONFIGURATION:
# This file is read once by each in.iked process.
#
# IKE_CONFIG defines the default IKE config file pathname.  By default, it
# is /etc/inet/ike/config
#IKE_CONFIG=/etc/inet/ike/config
#
# IKE_DEBUG sets the initial debug level within the IKE daemon; by default, 
# no debug messages are logged.
#IKE_DEBUG=
#
# IKE_DEBUG_FILE controls where IKE debug output goes if enabled.  By default, 
# it goes to stderr (the console, when started at boot time, which is usually 
# not what you want)
#IKE_DEBUG_FILE=
# 
# IKE_ADM_PRIV sets the ikeadm "privilege level", which determines how
# much ikeadm is allowed to control while in.iked is running.
# Possible values are: 
#		base			ikeadm may not change keys
# 		modkeys			ikeadm may set keys.
#		keymat			ikeadm may set and get keys.
#IKE_ADM_PRIV=base



#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# cmd/cmd-inet/etc/dhcp/Makefile
#

DHCPFILES=	inittab inittab6

include ../../../Makefile.cmd

ETCDHCPDIR=	$(ROOTETC)/dhcp
ETCDHCPFILES=	$(DHCPFILES:%=$(ETCDHCPDIR)/%)

FILEMODE=	0644

.KEEP_STATE:

all:
install:	$(ETCDHCPFILES)

$(ETCDHCPDIR)/%: %
		$(INS.file)
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
# Copyright (c) 2016, Chris Fraire <cfraire@me.com>.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# This file provides information about all supported DHCP options, for
# use by DHCP-related programs.  This file should only be modified to
# add support for SITE options for clients; no existing options should
# be modified.  Only SITE options will be preserved during an upgrade.
# If you need to configure the Solaris DHCP server to support the vendor 
# options of a different client, see dhcptab(5) for details.
#
# Please consult dhcp_inittab(5) for further information.  Note that
# this interface is "Unstable" as defined by attributes(7).
#

Subnet		STANDARD,	1,	IP,	   1,	1,	sdmi
UTCoffst	STANDARD,	2,	SNUMBER32, 1,	1,	sdmi
Router		STANDARD,	3,	IP,	   1,	0,	sdmi
Timeserv	STANDARD,	4,	IP,	   1,	0,	sdmi
IEN116ns	STANDARD,	5,	IP,	   1,	0,	sdmi
DNSserv		STANDARD,	6,	IP,	   1,	0,	sdmi
Logserv		STANDARD,	7,	IP,	   1,	0,	sdmi
Cookie		STANDARD,	8,	IP,	   1,	0,	sdmi
Lprserv		STANDARD,	9,	IP,	   1,	0,	sdmi
Impress		STANDARD,	10,	IP,	   1,	0,	sdmi
Resource	STANDARD,	11,	IP,	   1,	0,	sdmi
Hostname	STANDARD,	12,	ASCII,	   1,	0,	si
Bootsize	STANDARD,	13,	UNUMBER16, 1,	1,	sdmi
Dumpfile	STANDARD,	14,	ASCII,	   1,	0,	sdmi
DNSdmain	STANDARD,	15,	ASCII,	   1,	0,	sdmi
Swapserv	STANDARD,	16,	IP,	   1,	1,	sdmi
Rootpath	STANDARD,	17,	ASCII,	   1,	0,	sdmi
ExtendP		STANDARD,	18,	ASCII,	   1,	0,	sdmi
IpFwdF		STANDARD,	19,	UNUMBER8,  1,	1,	sdmi
NLrouteF	STANDARD,	20,	UNUMBER8,  1,	1,	sdmi
PFilter		STANDARD,	21,	IP,	   2,	0,	sdmi
MaxIpSiz	STANDARD,	22,	UNUMBER16, 1,	1,	sdmi
IpTTL		STANDARD,	23,	UNUMBER8,  1,	1,	sdmi
PathTO		STANDARD,	24,	UNUMBER32, 1,	1,	sdmi
PathTbl		STANDARD,	25,	UNUMBER16, 1,	0,	sdmi
MTU		STANDARD,	26,	UNUMBER16, 1,	1,	sdmi
SameMtuF	STANDARD,	27,	UNUMBER8,  1,	1,	sdmi
Broadcst	STANDARD,	28,	IP,	   1,	1,	sdmi
MaskDscF	STANDARD,	29,	UNUMBER8,  1,	1,	sdmi
MaskSupF	STANDARD,	30,	UNUMBER8,  1,	1,	sdmi
RDiscvyF	STANDARD,	31,	UNUMBER8,  1,	1,	sdmi
RSolictS	STANDARD,	32,	IP,	   1,	1,	sdmi
StaticRt	STANDARD,	33,	IP,	   2,	0,	sdmi
TrailerF	STANDARD,	34,	UNUMBER8,  1,	1,	sdmi
ArpTimeO	STANDARD,	35,	UNUMBER32, 1,	1,	sdmi
EthEncap	STANDARD,	36,	UNUMBER8,  1,	1,	sdmi
TcpTTL		STANDARD,	37,	UNUMBER8,  1,	1,	sdmi
TcpKaInt	STANDARD,	38,	UNUMBER32, 1,	1,	sdmi
TcpKaGbF	STANDARD,	39,	UNUMBER8,  1,	1,	sdmi
NISdmain	STANDARD,	40,	ASCII,	   1,	0,	sdmi
NISservs	STANDARD,	41,	IP,	   1,	0,	sdmi
NTPservs	STANDARD,	42,	IP,	   1,	0,	sdmi
Vendor		STANDARD,	43,	OCTET,	   1,	0,	sdi
NetBNms		STANDARD,	44,	IP,	   1,	0,	sdmi
NetBDsts	STANDARD,	45,	IP,	   1,	0,	sdmi
NetBNdT		STANDARD,	46,	UNUMBER8,  1,	1,	sdmi
NetBScop	STANDARD,	47,	ASCII,	   1,	0,	sdmi
XFontSrv	STANDARD,	48,	IP,	   1,	0,	sdmi
XDispMgr	STANDARD,	49,	IP,	   1,	0,	sdmi
ReqIP		STANDARD,	50,	IP,	   1,	1,	sdi
LeaseTim	STANDARD,	51,	UNUMBER32, 1,	1,	sdmi
OptOvrld	STANDARD,	52,	UNUMBER8,  1,	1,	sdi
DHCPType	STANDARD,	53,	UNUMBER8,  1,	1,	sdi
ServerID	STANDARD,	54,	IP,	   1,	1,	sdi
ReqList		STANDARD,	55,	OCTET,	   1,	0,	sdi
Message		STANDARD,	56,	ASCII,	   1,	0,	sdi
DHCP_MTU	STANDARD,	57,	UNUMBER16, 1,	1,	sdi
T1Time		STANDARD,	58,	UNUMBER32, 1,	1,	sdmi
T2Time		STANDARD,	59,	UNUMBER32, 1,	1,	sdmi
ClassID		STANDARD,	60,	ASCII,	   1,	0,	sdi
ClientID	STANDARD,	61,	OCTET,	   1,	0,	sdi
NW_dmain	STANDARD,	62,	ASCII,	   1,	0,	sdmi
NWIPOpts	STANDARD,	63,	OCTET,	   1,	128,	sdmi
NIS+dom		STANDARD,	64,	ASCII,	   1,	0,	sdmi
NIS+serv	STANDARD,	65,	IP,	   1,	0,	sdmi
TFTPsrvN	STANDARD,	66,	ASCII,	   1,	64,	sdmi
OptBootF	STANDARD,	67,	ASCII,	   1,	128,	sdmi
MblIPAgt	STANDARD,	68,	IP,	   1,	0,	sdmi
SMTPserv	STANDARD,	69,	IP,	   1,	0,	sdmi
POP3serv	STANDARD,	70,	IP,	   1,	0,	sdmi
NNTPserv	STANDARD,	71,	IP,	   1,	0,	sdmi
WWWservs	STANDARD,	72,	IP,	   1,	0,	sdmi
Fingersv	STANDARD,	73,	IP,	   1,	0,	sdmi
IRCservs	STANDARD,	74,	IP,	   1,	0,	sdmi
STservs		STANDARD,	75,	IP,	   1,	0,	sdmi
STDAservs	STANDARD,	76,	IP,	   1,	0,	sdmi
UserClas	STANDARD,	77,	ASCII,	   1,	0,	sdi
SLP_DA		STANDARD,	78,	OCTET,	   1,	0,	sdmi
SLP_SS		STANDARD,	79,	OCTET,	   1,	0,	sdmi
ClientFQDN	STANDARD,	81,	OCTET,	   1,	0,	sdmi
AgentOpt	STANDARD,	82,	OCTET,	   1,	0,	sdi
FQDN		STANDARD,	89,	OCTET,	   1,	0,	sdmi

#
# DHCP packet fields.	Code field is byte offset into DHCP packet.
#

Opcode		FIELD,		0,	UNUMBER8,  1,	1,	id
Htype		FIELD,		1,	UNUMBER8,  1,	1,	id
HLen		FIELD,		2,	UNUMBER8,  1,	1,	id
Hops		FIELD,		3,	UNUMBER8,  1,	1,	id
Xid		FIELD,		4,	UNUMBER32, 1,	1,	id
Secs		FIELD,		8,	UNUMBER16, 1,	1,	id
Flags		FIELD,		10,	OCTET,	   1,	2,	id
Ciaddr		FIELD,		12,	IP,	   1,	1,	id
Yiaddr		FIELD,		16,	IP,	   1,	1,	id
BootSrvA	FIELD,		20,	IP,	   1,	1,	idm
Giaddr		FIELD,		24,	IP,	   1,	1,	id
Chaddr		FIELD,		28,	OCTET,	   1,	16,	id
BootSrvN	FIELD,		44,	ASCII,	   1,	64,	idm
BootFile	FIELD,		108,	ASCII,	   1,	128,	idm
Magic		FIELD,		236,	OCTET,	   1,	4,	id
Options		FIELD,		240,	OCTET,	   1,	60,	id


#
# Internal fields.
#

Hostname	INTERNAL,	1024,	BOOL,	   0,	0,	dm
LeaseNeg	INTERNAL,	1025,	BOOL,	   0,	0,	dm
EchoVC		INTERNAL,	1026,	BOOL,	   0,	0,	dm
BootPath	INTERNAL,	1027,	ASCII,	   1,	128,	dm


#
# SunOS vendor space -- see the Solaris System Administrator
# documentation for more information on these options. 
#

SrootOpt	VENDOR,		1,	ASCII,	   1,	0,	smi
SrootIP4	VENDOR,		2,	IP,	   1,	1,	smi
SrootNM		VENDOR,		3,	ASCII,	   1,	0,	smi
SrootPTH	VENDOR,		4,	ASCII,	   1,	0,	smi
SswapIP4	VENDOR,		5,	IP,	   1,	1,	smi
SswapPTH	VENDOR,		6,	ASCII,	   1,	0,	smi
SbootFIL	VENDOR,		7,	ASCII,	   1,	0,	smi
Stz		VENDOR,		8,	ASCII,	   1,	0,	smi
SbootRS		VENDOR,		9,	UNUMBER16, 1,	1,	smi
SinstIP4	VENDOR,		10,	IP,	   1,	1,	smi
SinstNM		VENDOR,		11,	ASCII,	   1,	0,	smi
SinstPTH	VENDOR,		12,	ASCII,	   1,	0,	smi
SsysidCF	VENDOR,		13,	ASCII,	   1,	0,	smi
SjumpsCF	VENDOR,		14,	ASCII,	   1,	0,	smi
Sterm		VENDOR,		15,	ASCII,	   1,	0,	smi
SbootURI	VENDOR,		16,	ASCII,	   1,	0,	smi
SHTTPproxy	VENDOR,		17,	ASCII,	   1,	0,	smi

#
# Site option example:
# The following option describes an option named ipPairs, that is in
# the  SITE category, meaning it is defined by each individual site.
# It is option code 132, which is of type IP Address, consisting of
# a potentially infinite number of pairs of IP addresses.  (See
# dhcp_inittab(5) for details)
#
# ipPairs     SITE,           132,    IP,     2,      0,      sdmi
#
#
# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# This file provides information about all supported DHCPv6 options, for
# use by DHCPv6-related programs.
#
# Please consult dhcp_inittab(5) for further information.  Note that
# this interface is "Uncommitted" as defined by attributes(7).
#
# Note: options 10 and 35 are not assigned.
#
ClientID	STANDARD,	1,	DUID,	   1,	1,	sdi
ServerID	STANDARD,	2,	DUID,	   1,	1,	sdi
Preference	STANDARD,	7,	UNUMBER8,  1,	1,	sdmi
Unicast		STANDARD,	12,	IPV6,	   1,	1,	sdmi
Status		STANDARD,	13,	UNUMBER16, 1,	1,	si
RapidCommit	STANDARD,	14,	BOOL,	   0,	0,	sdi
UserClass	STANDARD,	15,	OCTET,	   1,	0,	sdi
VendorClass	STANDARD,	16,	OCTET,	   1,	0,	sdi
Reconfigure	STANDARD,	19,	UNUMBER8,  1,	1,	si
SIPNames	STANDARD,	21,	DOMAIN,	   1,	0,	sdmi
SIPAddresses	STANDARD,	22,	IPV6,	   1,	0,	sdmi
DNSAddresses	STANDARD,	23,	IPV6,	   1,	0,	sdmi
DNSSearch	STANDARD,	24,	DOMAIN,	   1,	0,	sdmi
NISServers	STANDARD,	27,	IPV6,	   1,	0,	sdmi
NIS+Servers	STANDARD,	28,	IPV6,	   1,	0,	sdmi
NISDomain	STANDARD,	29,	DOMAIN,	   1,	0,	sdmi
NIS+Domain	STANDARD,	30,	DOMAIN,	   1,	0,	sdmi
SNTPServers	STANDARD,	31,	IPV6,	   1,	0,	sdmi
InfoRefresh	STANDARD,	32,	UNUMBER32, 1,	1,	sdmi
BCMCDomain	STANDARD,	33,	DOMAIN,	   1,	0,	sdmi
BCMCAddresses	STANDARD,	34,	IPV6,	   1,	0,	sdmi
Geoconf		STANDARD,	36,	OCTET,	   1,	3,	sdmi
RemoteID	STANDARD,	37,	OCTET,	   1,	4,	si
Subscriber	STANDARD,	38,	OCTET,	   1,	0,	sdmi
ClientFQDN	STANDARD,	39,	OCTET,	   1,	0,	sdmi

#
# DHCPv6 packet fields.  Code field is byte offset into DHCPv6 packet.
#

MsgType		FIELD,		0,	UNUMBER8,  1,	1,	id
TransId		FIELD,		1,	UNUMBER24, 1,	1,	id
HopCount	FIELD,		1,	UNUMBER8,  1,	1,	id
LinkAddr	FIELD,		2,	IPV6,	   1,	1,	id
PeerAddr	FIELD,		18,	IPV6,	   1,	1,	id
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# Internet host table
#
::1		localhost
127.0.0.1	localhost loghost
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# cmd/cmd-inet/etc/ike/Makefile
#

IKEDIR=		ike
PUBLICKEYDIR=	publickeys
CRLDIR=		crls
ETCPROG=	config.sample

include ../../../Makefile.cmd

ETCINETIKEDIR=	$(ROOTETC)/inet/$(IKEDIR)
ETCINETPUBLICKEYDIR=	$(ROOTETC)/inet/$(IKEDIR)/$(PUBLICKEYDIR)
ETCINETCRLDIR=	$(ROOTETC)/inet/$(IKEDIR)/$(CRLDIR)
ETCINETIKEPROG=	$(ETCPROG:%=$(ETCINETIKEDIR)/%)

FILEMODE=	0444

.KEEP_STATE:

all:		$(ETCPROG)

install:	all $(ETCINETIKEDIR) $(ETCINETPUBLICKEYDIR) $(ETCINETIKEPROG) \
		$(ETCINETCRLDIR)

$(ETCINETIKEDIR)/% : %
		$(INS.file)

$(ETCINETIKEDIR):
		$(INS.dir)

$(ETCINETPUBLICKEYDIR) $(ETCINETCRLDIR):
		$(INS.dir)

FRC:

clean clobber lint:
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

##
## This file should be copied into /etc/inet/ike/config to enable the
## launch of the IKE daemon, in.iked(8), at boot time.  You can also
## launch the IKE daemon after creating this file without rebooting by
## invoking /usr/lib/inet/in.iked with a root shell.
##

# Consult the ike.config(5) man page for further details.  Here is a small
# example from the man page.

### BEGINNING OF FILE

### First some global parameters...

## Optional hardware acceleration parameters...
## Use the pathname of a library that supports PKCS#11 in quotes.
## The example path is for the Sun Crypto Accelerator 1000.
# pkcs11_path "/opt/SUNWconn/lib/libpkcs11.so"

## certificate parameters...

# Root certificates.  I SHOULD use a full Distinguished Name.
# I MUST have this certificate in my local filesystem, see ikecert(8).
cert_root    "C=US, O=Sun Microsystems\\, Inc., CN=Sun CA"

# Explicitly trusted certs that need no signatures, or perhaps self-signed
# ones.  Like root certificates, use full DNs for them for now.
cert_trust    "EMAIL=root@domain.org"

# Where do I send LDAP requests?
ldap_server   "ldap1.domain.org,ldap2.domain.org:389"

# Some PKI-specific tweaks...
# If you wish to ignore CRLs, uncomment this:
#ignore_crls
# If you wish to use HTTP (with name resolution) for URLs inside certs,
# uncomment this:
#use_http
# HTTP proxy and socks URLs should also be indicated if needed...
socks "socks://socks-relay.domain.org"
#proxy "http://http-proxy.domain.org:8080"

## Phase 1 transform defaults...

p1_lifetime_secs 14400
p1_nonce_len 20

## Parameters that may also show up in rules.

p1_xform { auth_method preshared oakley_group 5 auth_alg sha encr_alg 3des }
p2_pfs 2

### Now some rules...

{
   label "simple inheritor"
   local_id_type ip
   local_addr 10.1.1.1
   remote_addr 10.1.1.2
}

{
   # an index-only rule.  If I'm a receiver, and all I 
   # have are index-only rules, what do I do about inbound IKE requests?
   # Answer:  Take them all!

   label "default rule"
   # Use whatever "host" (e.g. IP address) identity is appropriate
   local_id_type ipv4

   local_addr 0.0.0.0/0
   remote_addr 0.0.0.0/0

   p2_pfs 5

   # Now I'm going to have the p1_xforms
   p1_xform
   {auth_method preshared  oakley_group 5  auth_alg md5  encr_alg blowfish }
   p1_xform
   {auth_method preshared  oakley_group 5  auth_alg md5  encr_alg 3des }

   # After said list, another keyword (or a '}') will stop xform parsing.
}

{
   # Let's try something a little more conventional.

   label "host to .80 subnet"
   local_id_type ip
   local_id "10.1.86.51"

   remote_id ""    # Take any, use remote_addr for access control.

   local_addr 10.1.86.51
   remote_addr 10.1.80.0/24

   p1_xform 
   { auth_method rsa_sig  oakley_group 5  auth_alg md5  encr_alg 3des }
   p1_xform
   { auth_method rsa_sig  oakley_group 5  auth_alg md5  encr_alg blowfish }
   p1_xform 
   { auth_method rsa_sig  oakley_group 5  auth_alg sha1  encr_alg 3des }
   p1_xform
   { auth_method rsa_sig  oakley_group 5  auth_alg sha1  encr_alg blowfish }
}

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# Legacy configuration file for inetd(8).  See inetd.conf(5).
#
# This file is no longer directly used to configure inetd.
# The Solaris services which were formerly configured using this file
# are now configured in the Service Management Facility (see smf(7))
# using inetadm(8).
#
# Any records remaining in this file after installation or upgrade,
# or later created by installing additional software, must be converted
# to smf(7) services and imported into the smf repository using
# inetconv(8), otherwise the service will not be available.  Once
# a service has been converted using inetconv, further changes made to
# its entry here are not reflected in the service.
#
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# This is the IPv6 default address selection policy table.  See
# ipaddrsel(8) for details and examples.
#
# Prefix                Precedence      Label
::1/128                         50      Loopback
::/0                            40      Default
::ffff:0.0.0.0/96               35      IPv4
2002::/16                       30      6to4
2001::/32                        5      Teredo
fc00::/7                         3      ULA
::/96                            1      IPv4_Compatible
fec0::/10                        1      Site_Local
3ffe::/16                        1      6bone
# ident	"%Z%%M%	%I%	%E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

# Mandatory file version identifier
fmt_version 1.0

# This configuration marks video traffic for EF PHB, i.e. Expedited Forwarding.
# Mail traffic is marked for AF11, anonymous user FTP traffic for AF12 and news
# traffic for AF13 PHBs, i.e. Assured Forwarding class 1 with drop precedences
# low medium and high respectively.
# For information on AF and EF PHBs refer to the IPQoS Administration Guide or
# the RFCs 2597 and 2598 respectively.
#
# Before this configuration file can be applied the sport parameter of the
# filter videoout needs to be given a valid port number/service name of a 
# service whose traffic you wish to apply EF to and the uid parameter of the
# filter ftpout needs to be given the uid of the user ftp. The ftp user account
# is the one used by the ftp server for anonymous logins, thus filtering on
# this enables us to capture anonymous ftp user traffic.

action {
	module ipgpc
	# Name must be ipgpc.classify for ipgpc action.
	name ipgpc.classify

	class {
		name video
		next_action markEF
	}
	class {
		name mail
		next_action markAF11
	}
	class {
		name ftp
		next_action markAF12
	}
	class {
		name news
		next_action markAF13
	}

	filter {
		name videoout
		# Source port of video traffic, given by __videoport__.
		sport __videoport__
		# Locally generated outbound traffic.
		direction LOCAL_OUT
		class video
	}
	filter {
		name mailout
		sport smtp
		direction LOCAL_OUT
		class mail
	}
	# This filter catches anonymous ftp user outgoing traffic.
	filter {
		name ftpout
		direction LOCAL_OUT
		# Traffic generated by ftp user, given by __ftp-uid__.
		uid __ftp-uid__
		class ftp
	}
	filter {
		name newsout
		sport nntp
		direction LOCAL_OUT
		class news
	}
}

# Mark the DSCP with code point EF, 101110 = 46.
action {
	module dscpmk
	name markEF
	params {
		# Set all 64 entries of dscp_map to 46 decimal.
		dscp_map {0-63:46}
		next_action continue
	}
}

# Mark the DSCP with code point AF11, 001010 = 10.
action {
	module dscpmk
	name markAF11
	params {
		dscp_map {0-63:10}
		next_action continue
	}
}

# Mark the DSCP with code point AF12, 001100 = 12.
action {
	module dscpmk
	name markAF12
	params {
		dscp_map {0-63:12}
		next_action continue
	}
}

# Mark the DSCP with code point AF13, 001110 = 14.
action {
	module dscpmk
	name markAF13
	params {
		dscp_map {0-63:14}
		next_action continue
	}
}
# ident	"%Z%%M%	%I%	%E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

# Mandatory file format version identifier.
fmt_version 1.0

# Meter traffic from application (identified by source port myport) to
# somehost.somedomain, where somehost.somedomain is a valid hostname/IP address.
# Mark a packet with AF11 if it does not exceed the committed burst, AF12 if it
# exceeds committed burst, but not excess burst and AF13 if it exceeds the
# excess burst.
# For information on AF PHBs refer to the IPQoS Administration Guide or the
# RFC 2597.
#
# Before this example configuration file can be applied the sport and daddr
# parameter values in the ipgpc filter myfilter need to be given actual values.

action {
        module ipgpc
	# Name must be ipgpc.classify for ipgpc action.
	name ipgpc.classify
        
        filter {
               name myfilter
               class meter_myapp
               sport myport
	       daddr somehost.somedomain
        }
        class {
                name meter_myapp
                next_action meter5mbps
                enable_stats true
        }
        params {
                global_stats true
        }
}

# meter5mbps invokes action af11 for a packet that does not exceed the
# committed burst, af12 if it exceeds committed burst, but not excess burst
# and af13 if it exceeds excess burst.
action {
    module tokenmt
    name meter5mbps
    params {
       # Committed rate of 5 Mbps.
       committed_rate 5000000
       # Committed burst of 5 Mb.
       committed_burst 5000000
       # Excess Burst of 10 Mb.
       peak_burst 10000000
       # Action global stats enabled.
       global_stats true
       # RED action, mark DSCP with AF13.
       red_action_name af13
       # YELLOW action, mark DSCP with AF12.
       yellow_action_name af12
       # GREEN action, mark DSCP with AF13.
       green_action_name af11
       # Not color aware.
       color_aware false
    }
}

# Mark the DSCP with code point AF13, 001110 = 14.
action {
   module dscpmk
   name af13
   params {
      # Enable global stats for action.
      global_stats true
      next_action acct_classaf1
      # Set all 64 entries of dscp_map to 14 decimal.
      dscp_map {0-63:14}
   }
}

# Mark the DSCP with code point AF12, 001100 = 12.
action {
   module dscpmk
   name af12
   params {
      global_stats true
      next_action acct_classaf1
      dscp_map {0-63:12}
   }
}

# Mark the DSCP with code point AF11, 001010 = 10.
action {
   module dscpmk
   name af11
   params {
      global_stats true
      next_action acct_classaf1
      dscp_map {0-63:10}
   }
}

# Account packets for class AF1* (AF11, AF12 and AF13).
action {
   module flowacct
   name acct_classaf1
   params {
      global_stats true
      next_action continue
      # Timeout flows if packets not seen for at least 60 secs.
      timeout 60000
      # Scan the flow table every 15 secs for removing timed out flows.
      timer   15000
      # Limit number of flow records in the table to 2K.
      max_limit 2048
   }
}
# ident	"%Z%%M%	%I%	%E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

# Mandatory file version identifier
fmt_version 1.0

# This configuration marks outbound web traffic ethernet
# headers on a VLAN interface with a user priority corresponding
# with the Class of Service value 1.

# Before this configuration can be applied the daddr parameter
# of filter webout needs to be given a valid ip address/hostname.

action {
	module ipgpc
	# Name must be ipgpc.classify for ipgpc action.
	name ipgpc.classify

	class {
		name web
		next_action dlmark1
	}

	filter {
		name webout
		# Source port 80.
		sport 80
		# Outgoing locally generated traffic.
		direction LOCAL_OUT
		# w.x.y.z and the interface over which this
		# packet leaves belong to the same VLAN
		# group.
		daddr w.x.y.z
		class web
	}
}

# Mark traffic ethernet header user priority with the value
# corresponding with the CoS value 1.
action {
	module dlcosmk
	name dlmark1
	params {
		# Class of Service value.	
		cos 1
		next_action continue
	}
}
#
#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# DO NOT EDIT OR PARSE THIS FILE!
#
# Use the ipsecalgs(8) command to change the contents of this file.
# The algorithm descriptions contained in this file are synchronised to the
# kernel with ipsecalgs -s, the kernel validates the entries at this point.

# PROTO|protocol-id|protocol-name|exec-mode
##  NOTE:  Some protocol numbers are well-known and defined in <netdb.h>

PROTO|2|PROTO_IPSEC_AH|sync
PROTO|3|PROTO_IPSEC_ESP|sync

# ALG|protocol-id|alg-id|name,name,...|ef-id| \
#	{default/}{key,key..}or{key-key,inc}|block_size or MAC-size|\
#	[parameter,parameter..]|[flags]
#
## Note:   Parameters and flags only apply to certain algorithms.

ALG|2|0|none,any|-|0|0
ALG|2|2|hmac-md5,md5|CKM_MD5_HMAC_GENERAL|128|12
ALG|2|3|hmac-sha1,sha,sha1,sha-1,hmac-sha,hmac-sha-1|CKM_SHA_1_HMAC_GENERAL|160|12
ALG|2|5|hmac-sha256,sha256,sha-256,hmac-sha-256|CKM_SHA256_HMAC_GENERAL|256|16
ALG|2|6|hmac-sha384,sha384,sha-384,hmac-sha-384|CKM_SHA384_HMAC_GENERAL|384|24
ALG|2|7|hmac-sha512,sha512,sha-512,hmac-sha-512|CKM_SHA512_HMAC_GENERAL|512|32
ALG|3|0|any|-|0|0
ALG|3|2|des-cbc,des|CKM_DES_CBC|64|8
ALG|3|3|3des-cbc,3des|CKM_DES3_CBC|192|8
ALG|3|7|blowfish-cbc,blowfish|CKM_BLOWFISH_CBC|128|8
ALG|3|11|null|-|0|0
ALG|3|12|aes-cbc,aes|CKM_AES_CBC|128/128-256,64|16
ALG|3|14|aes-ccm8|CKM_AES_CCM|128/128-256,64|16|8,8,3|15
ALG|3|15|aes-ccm12|CKM_AES_CCM|128/128-256,64|16|8,12,3|15
ALG|3|16|aes-ccm,aes-ccm16|CKM_AES_CCM|128/128-256,64|16|8,16,3|15
ALG|3|18|aes-gcm8|CKM_AES_GCM|128/128-256,64|16|8,8,4|23
ALG|3|19|aes-gcm12|CKM_AES_GCM|128/128-256,64|16|8,12,4|23
ALG|3|20|aes-gcm,aes-gcm16|CKM_AES_GCM|128/128-256,64|16|8,16,4|23
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# This file should be copied to /etc/inet/ipsecinit.conf to enable IPsec
# systemwide policy (and as a side-effect, load IPsec kernel modules).
# Even if this file has no entries, IPsec will be loaded if
# /etc/inet/ipsecinit.conf exists.
#
# Add entries to protect the traffic using IPSEC. The entries in this
# file are currently configured using ipsecconf from inetinit script
# after /usr is mounted.
#
# For example,
#
#	 {rport 23} ipsec {encr_algs des encr_auth_algs md5}
#
# Or, in the older (but still usable) syntax
#
#        {dport 23} apply {encr_algs des encr_auth_algs md5 sa shared} 
#        {sport 23} permit {encr_algs des encr_auth_algs md5} 
#
# will protect the telnet traffic originating from the host with ESP using 
# DES and MD5.  Also:
#
#	 {raddr 10.5.5.0/24} ipsec {auth_algs any}
#
# Or, in the older (but still usable) syntax
#
#        {daddr 10.5.5.0/24} apply {auth_algs any sa shared} 
#        {saddr 10.5.5.0/24} permit {auth_algs any} 
#
# will protect traffic to/from the 10.5.5.0 subnet with AH using any available
# algorithm.
#
# To do basic filtering, a drop rule may be used. For example:
#
#	 {lport 23 dir in} drop {}
#	 {lport 23 dir out} drop {}
#
# will disallow any remote system from telnetting in.
#
# If you are using IPv6, it may be useful to bypass neighbor discovery
# to allow in.iked to work properly with on-link neighbors. To do that,
# add the following lines:
#
#	 {ulp ipv6-icmp type 133-137 dir both } pass { }
#
# This will allow neighbor discovery to work normally.
#
# WARNING:	This file is read before default routes are established, and
#		before any naming services have been started.  The
#		ipsecconf(8) command attempts to resolve names, but it will
#		fail unless the machine uses files, or DNS and the DNS server
#		is reachable via routing information before ipsecconf(8)
#		invocation.  (E.g. the DNS server is on-subnet, or DHCP
#		has loaded up the default router already.)
#
#		It is suggested that for this file, use hostnames only if
#		they are in /etc/hosts, or use numeric IP addresses.
#
#		If DNS gets used, the DNS server is implicitly trusted, which
#		could lead to compromise of this machine if the DNS server
#		has been compromised.
#
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2000 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"%Z%%M%	%I%	%E% SMI"

#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
# 
# 	network-number	netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 		128.32.0.0 255.255.255.0
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 1992 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.1	*/
#
# The networks file associates Internet Protocol (IP) network numbers
# with network names.  The format of this file is:
# 
# 	network-name	network-number	nicnames . . .
#

#
# The loopback network is used only for intra-machine communication
#
loopback	127

#
# Internet networks
#
arpanet		10		arpa	# Historical
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# cmd/cmd-inet/etc/ppp/Makefile
#

PPPDIR=		ppp
SUBDIRS=	peers plugins
ETCPROGROOT=	pap-secrets	chap-secrets
ETCPROG=	options.tmpl options.ttya.tmpl myisp-chat.tmpl
ETCPEERS=	myisp.tmpl

include ../../../Makefile.cmd

ETCPPPDIR=	$(ROOTETC)/$(PPPDIR)
ETCPPPSUBDIRS=	$(SUBDIRS:%=$(ETCPPPDIR)/%)
ETCPEERSDIR=	$(ETCPPPDIR)/peers
ETCPPPPROG=	$(ETCPROG:%=$(ETCPPPDIR)/%) $(ETCPEERS:%=$(ETCPEERSDIR)/%)
ETCPPPPROGROOT=	$(ETCPROGROOT:%=$(ETCPPPDIR)/%)

# This is here to allow the make command to override this value;
# setting it to 0644 simplifies packaging.
SECRETSMODE=	0600

$(ETCPPPPROG)		:	FILEMODE = 0644
$(ETCPPPPROGROOT)	:	FILEMODE = $(SECRETSMODE)

.KEEP_STATE:

all:

install:	all $(ETCPPPDIR) .WAIT $(ETCPPPSUBDIRS) .WAIT \
		$(ETCPPPPROG) $(ETCPPPPROGROOT)

$(ETCPPPDIR)/% : %
		$(INS.file)

$(ETCPPPDIR) $(ETCPPPSUBDIRS):
		$(INS.dir)

$(ETCPEERSDIR)/% : %
		$(INS.file)

clean clobber lint:
#ident	"%Z%%M%	%I%	%E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Secrets for authentication using CHAP (Challenge Handshake Authentication
# Protocol) are placed here.  Each line is a separate entry and consists of
# a list of space or tab separated tokens.
#
#	client	server	secret	[IP addresses ["--" options]]
#
# When authenticating to a peer (so-called "client mode;" as when dialing
# out to an ISP), the "client" will be matched using the local name and
# "server" will use the remote peer's name.  CHAP does specify an
# authenticator name, but some peers (such as Windows NT) do not provide
# a peer name, and the "remotename <name>" option should then be used.
# Typically, the "user <name>" option is also to specify the local name.
#
# When authenticating a peer (so-called "server mode;" as when allowing
# dial-up access to this system), the remote peer's name is the "client"
# and the local system name is the "server."  In this case, the privileged
# "name <name>" option is sometimes used to set the local name.  The "user
# <name>" option cannot be used.  The remote peer's name comes from the
# CHAP messages the peer sends.
#
# After the secret, which must always be clear text for CHAP, a list of
# valid IP addresses for the peer appears.  This must be present when
# acting as a server.  Usually, this is specified as "*" and actual IP
# addresses are given in the options.  If a given dial-in peer has an
# allocated IP address ("static IP addressing"), then this address may
# be given here.  If there's exactly one address, then this will be sent
# to the peer as a hint.
#
# The entry may also have extra options after a -- token.  These are
# interpreted as privileged pppd options, and may be used to enable
# proxyarp or other optional features.
#ident	"%Z%%M%	%I%	%E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# This is an example chat script for dialing into a typical ISP.  See
# peers/myisp.tmpl for more information.
#
# The CONNECT string from the modem will be printed to the user's
# terminal.
#
ABORT	BUSY
ABORT	'NO CARRIER'
REPORT	CONNECT
TIMEOUT	10
""	"AT&F1"
OK	"AT&C1&D2"
SAY	"Calling myisp\n"
TIMEOUT	60
OK	"ATDT1-123-555-1212"
CONNECT \c
#ident	"%Z%%M%	%I%	%E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# This is an example configuration for dialing into a typical ISP from a
# single node.  To use this example, uncomment the last line of the
# pap-secrets file and rename the template files:
#
#	mv /etc/ppp/options.tmpl /etc/ppp/options
#	mv /etc/ppp/options.ttya.tmpl /etc/ppp/options.ttya
#	mv /etc/ppp/myisp-chat.tmpl /etc/ppp/myisp-chat
#	mv /etc/ppp/peers/myisp.tmpl /etc/ppp/peers/myisp
#
# and invoke with:
#
#	pppd ttya call myisp
#
# Options in this file, /etc/ppp/options, /etc/ppp//options.<tty>,
# /etc/ppp/pap-secrets, and /etc/ppp/chap-secrets are all considered
# privileged.  Those from ~/.ppprc and the command line are privileged
# if the invoker is root, and unprivileged otherwise.
#
connect "/usr/bin/chat -f /etc/ppp/myisp-chat"	# dial into ISP
user myname		# my account name at my ISP
remotename myisp	# name of the ISP; for pap-secrets
noauth			# do not authenticate the ISP's identity (client)
noipdefault		# assume no IP address; get it from ISP
defaultroute		# install default route; ISP is Internet gateway
updetach		# log errors and CONNECT string to invoker
noccp			# ISP doesn't support free compression
#ident	"%Z%%M%	%I%	%E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Privileged system-wide pppd options may be placed here.  Typically, the
# following options are used in this file:
#
#	lock		-- enable UUCP-style device locking
#	name <name>	-- set local system name for authentication
#	domain <name>	-- append domain name to local name
#	nodefaultroute	-- prevent users from installing a default route
#	noproxyarp	-- prevent users from using proxy ARP
#
# Device-specific options, such as asyncmap, should go in the per-device
# option files named /etc/ppp/options.<tty>, where <tty> is the name of
# the device.  For example, if /dev/ttya is used, then /etc/ppp/options.ttya
# will be read (if it exists).  When IP addresses are allocated per-port
# for dial-in nodes ("dynamic IP addressing"), then the remote address
# should be placed in that file as well.
#
# Peer-specific options, such as connect scripts, IP addresses, and other
# protocol options, should be placed in /etc/ppp/peers/<name>, where <name>
# is the name of the peer.  This file is then read by using the pppd "call"
# option; usually from the command line.
#
# Options in this file, /etc/ppp/options.<tty>, /etc/ppp/peers/<name>,
# /etc/ppp/pap-secrets, and /etc/ppp/chap-secrets are all considered
# privileged.  Those from ~/.ppprc and the command line are privileged
# if the invoker is root, and unprivileged otherwise.
#
lock
nodefaultroute
noproxyarp
#ident	"%Z%%M%	%I%	%E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Privileged pppd options for a given physical device may be placed here.
# Typically, asyncmap, crtscts, baud rate, and other hardware-related
# options are placed here, along with remote IP addresses for dial-in
# nodes when using "dynamic IP addressing."
#
# Options in this file, /etc/ppp/options, /etc/ppp/peers/<name>,
# /etc/ppp/pap-secrets, and /etc/ppp/chap-secrets are all considered
# privileged.  Those from ~/.ppprc and the command line are privileged
# if the invoker is root, and unprivileged otherwise.
#
38400			# default baud rate for this port
asyncmap 0xa0000	# work around broken peers
:192.168.1.1		# allow dial-up users to get this address
#ident	"%Z%%M%	%I%	%E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Passwords for authentication using PAP (Password Authentication Protocol)
# are placed here.  Each line is a separate entry and consists of a list of
# space or tab separated tokens.
#
#	client	server	password	[IP addresses ["--" options]]
#
# When authenticating to a peer (so-called "client mode;" as when dialing
# out to an ISP), the "client" will be matched using the local name and
# "server" will use the remote peer's name.  PAP does not specify an
# authenticator name, so the "remotename <name>" option should be used.
# Typically, the "user <name>" option is also to specify the local name.
#
# When authenticating a peer (so-called "server mode;" as when allowing
# dial-up access to this system), the remote peer's name is the "client"
# and the local system name is the "server."  In this case, the privileged
# "name <name>" option is sometimes used to set the local name.  The "user
# <name>" option cannot be used.  The remote peer's name comes from the PAP
# messages the peer sends.
#
# After the password, which may be a crypt(3c) encoded password when acting
# as a server, a list of valid IP addresses for the peer appears.  This
# must be present when acting as a server.  Usually, this is specified as
# "*" and actual IP addresses are given in the options.  If a given dial-in
# peer has an allocated IP address ("static IP addressing"), then this
# address may be given here.  If there's exactly one address, then this will
# be sent to the peer as a hint.
#
# The entry may also have extra options after a -- token.  These are
# interpreted as privileged pppd options, and may be used to enable
# proxyarp or other optional features.
#
# This is provided for the "myisp" example; see peers/myisp.tmpl.
#	myname	myisp	mypassword
#ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.1	*/
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Internet (IP) protocols
#
ip		0	IP		# internet protocol, pseudo protocol number
icmp		1	ICMP		# internet control message protocol
igmp		2	IGMP		# Internet Group Management
ggp		3	GGP		# gateway-gateway protocol
ipip		4	IP-IP		# IP in IP (encapsulation)
tcp		6	TCP		# transmission control protocol
cbt		7	CBT		# Core Based Trees
egp		8	EGP		# exterior gateway protocol
igp		9	IGP		# any private interior gateway
pup		12	PUP		# PARC universal packet protocol
udp		17	UDP		# user datagram protocol
mux		18	MUX		# Multiplexing
hmp		20	HMP		# host monitoring protocol
xns-idp		22	XNS-IDP		# Xerox NS IDP
rdp		27	RDP		# "reliable datagram" protocol
idpr		35	IDPR		# Inter-Domain Policy Routing Protocol
idpr-cmtp	38	IDPR-CMTP	# IDPR Control Message Transport Protocol
sdrp		42	SDRP		# Source Demand Routing Protocol
idrp		45	IDRP		# Inter-Domain Routing Protocol
rsvp		46	RSVP		# Resource Reservation Protocol
gre		47	GRE		# Generic Routing Encapsulation
esp		50	ESP		# Encapsulating Security Payload
ah		51	AH		# Authentication Header
mobile		55	MOBILE		# IP Mobility
ospf		89	OSPFIGP		# Open Shortest Path First
pim		103	PIM		# Protocol Independent Multicast
ipcomp		108	IPComp		# IP Payload Compression Protocol
vrrp		112	VRRP		# Virtual Router Redundancy Protocol
sctp		132	SCTP		# Stream Control Transmission Protocol

#
# Internet (IPv6) extension headers
#
hopopt		0	HOPOPT		# Hop-by-hop options for IPv6
ipv6		41	IPv6		# IPv6 in IP encapsulation
ipv6-route	43	IPv6-Route	# Routing header for IPv6
ipv6-frag	44	IPv6-Frag	# Fragment header for IPv6
ipv6-icmp	58	IPv6-ICMP	# IPv6 internet control message protocol
ipv6-nonxt	59	IPv6-NoNxt	# No next header extension header for IPv6
ipv6-opts	60	IPv6-Opts	# Destination Options for IPv6
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# cmd/cmd-inet/etc/secret/Makefile
#

SECRETDIR=	secret
PRIVATEKEYDIR=	ike.privatekeys
ETCPROG=	ike.preshared ipseckeys.sample tcpkeys.sample

include ../../../Makefile.cmd

ETCINETSECRETDIR=	$(ROOTETC)/inet/$(SECRETDIR)
ETCINETPRIVATEKEYDIR=	$(ROOTETC)/inet/$(SECRETDIR)/$(PRIVATEKEYDIR)
ETCINETSECRETPROG=	$(ETCPROG:%=$(ETCINETSECRETDIR)/%)

# Be extra paranoid about /etc/inet/secret
$(ETCINETSECRETDIR):	DIRMODE=	700
$(ETCINETPRIVATEKEYDIR):	DIRMODE=	700

DIRMODE=	700
FILEMODE=	600

.KEEP_STATE:

all:		$(ETCPROG)

install:	all $(ETCINETSECRETDIR) $(ETCINETPRIVATEKEYDIR) $(ETCINETSECRETPROG)

$(ETCINETSECRETDIR)/% : %
		$(INS.file)

$(ETCINETSECRETDIR):
		$(INS.dir)

$(ETCINETPRIVATEKEYDIR):
		$(INS.dir)

FRC:

clean clobber lint:
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

# ike.preshared - Pre-shared secrets for IKE authentication.
#
# Entries are of the form:
#
# {
#	<attribute> <value>
#	...
# }
#
# Consult the man page for ike.preshared(5) for details.
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

# ipseckeys - This file takes the file format documented in ipseckey(8).
#             Note that naming services might not be available when this file
#             loads, just like ipsecinit.conf.
#
# This file should be copied into /etc/inet/secret/ipseckeys to load the
# IPsec Security Association Database (SADB).  A side-effect of this is that
# IPsec kernel modules will load.

# tcpkeys   - This file takes the file format documented in tcpkey(8).
#             Note that naming services might not be available when this file
#             loads, just like ipsecinit.conf.
#
# This file should be copied into /etc/inet/secret/tcpkeys and modified, and
# the svc:/network/tcpkey:default service enabled in order for the keys to be
# loaded into the TCP Security Association Database at boot.

# add src 192.168.1.1 dst 192.168.1.2 dport 179 authalg md5 authstring s3kr1t
# add src 192.168.1.2 dst 192.168.1.1 sport 179 authalg md5 authstring s3kr1t

#
# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
# Copyright 2015 Joyent, Inc.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Network services, Internet style
# Look at http://www.iana.org/assignments/port-numbers for more
#
tcpmux		1/tcp
echo		7/tcp
echo		7/udp
discard		9/tcp		sink null
discard		9/udp		sink null
systat		11/tcp		users
daytime		13/tcp
daytime		13/udp
netstat		15/tcp
qotd		17/tcp				# Quote of the Day
chargen		19/tcp		ttytst source
chargen		19/udp		ttytst source
ftp-data	20/tcp
ftp		21/tcp
ftp		21/sctp
ssh		22/tcp				# Secure Shell
ssh		22/sctp
telnet		23/tcp
smtp		25/tcp		mail
time		37/tcp		timserver
time		37/udp		timserver
rlp		39/tcp				# Resource Location Protocol
rlp		39/udp				# Resource Location Protocol
name		42/udp		nameserver
whois		43/tcp		nicname		# usually to sri-nic
tacacs		49/tcp
tacacs		49/udp
domain		53/udp
domain		53/tcp
tacacs-ds	65/tcp
tacacs-ds	65/udp
bootps		67/udp				# BOOTP/DHCP server
bootpc		68/udp				# BOOTP/DHCP client
http		80/tcp		www www-http
http		80/udp		www www-http
http		80/sctp
kerberos	88/udp		kdc		# Kerberos V5 KDC
kerberos	88/tcp		kdc		# Kerberos V5 KDC
hostnames	101/tcp		hostname	# usually to sri-nic
pop2		109/tcp		pop-2		# Post Office Protocol - V2
pop3		110/tcp				# Post Office Protocol - Version 3
sunrpc		111/udp		rpcbind
sunrpc		111/tcp		rpcbind
sftp		115/tcp
imap		143/tcp		imap2		# Internet Mail Access Protocol v2
bgp		179/tcp				# Border Gateway Protocol
bgp		179/udp
bgp		179/sctp
irc		194/tcp
irc		194/udp
smux		199/tcp
smux		199/udp
imap3		220/tcp
imap3		220/udp
clearcase	371/tcp
clearcase	371/udp
ldap		389/tcp				# Lightweight Directory Access Protocol
ldap		389/udp				# Lightweight Directory Access Protocol
https		443/tcp
https		443/udp
https		443/sctp
kpasswd		464/tcp
kpasswd		464/udp
dhcpv6-client	546/udp		dhcpv6c		# DHCPv6 Client (RFC 3315)
dhcpv6-client	546/tcp
dhcpv6-server	547/udp		dhcpv6s		# DHCPv6 Server (RFC 3315)
dhcpv6-server	547/tcp
rtsp		554/tcp
rtsp		554/udp
nntps		563/tcp		snntp
nntps		563/udp		snntp
submission	587/tcp				# Mail Message Submission
submission	587/udp				#    see RFC 2476
ipp		631/tcp
ipp		631/udp
ldaps		636/tcp				# LDAP protocol over TLS/SSL (was sldap)
ldaps		636/udp				# LDAP protocol over TLS/SSL (was sldap)
silc		706/tcp
silc		706/udp
iscsi		860/tcp
iscsi		860/udp
rsync		873/tcp
rsync		873/udp
ftps-data	989/tcp
ftps-data	989/udp
ftps		990/tcp
ftps		990/udp
imaps		993/tcp
imaps		993/udp
pop3s		995/tcp
pop3s		995/udp
socks		1080/tcp
socks		1080/udp
openvpn		1194/tcp
openvpn		1194/udp
icap		1344/tcp			# Internet Content Adaptation Protocol
wins		1512/tcp
wins		1512/udp
radius		1812/tcp
radius		1812/udp
radius-acct	1813/tcp
radius-acct	1813/udp
cvspserver	2401/tcp
icpv2		3130/tcp
icpv2		3130/udp
iscsi-target	3260/tcp
iscsi-target	3260/udp
mysql		3306/tcp
mysql		3306/udp
nut		3493/tcp			# Network UPS Tools
svn		3690/tcp
svn		3690/udp
epmd		4369/tcp			# Erlang Port Mapper Daemon
epmd		4369/udp
sip		5060/tcp
sip		5060/udp
sip-tls		5061/tcp
sip-tls		5061/udp
xmpp-client	5222/tcp
xmpp-server	5269/tcp
postgresql	5432/tcp	postgres
postgresql	5432/udp	postgres
http-alt	8080/tcp	webcache	# HTTP Alternate, webcache
http-alt	8080/udp
memcache	11211/tcp
memcache	11211/udp
#
# Host specific functions
#
tftp		69/udp
rje		77/tcp
finger		79/tcp
link		87/tcp		ttylink
supdup		95/tcp
iso-tsap	102/tcp
x400		103/tcp				# ISO Mail
x400-snd	104/tcp
csnet-ns	105/tcp
uucp-path	117/tcp
nntp		119/tcp		usenet		# Network News Transfer
ntp		123/tcp				# Network Time Protocol
ntp		123/udp				# Network Time Protocol
netbios-ns	137/tcp				# NETBIOS Name Service
netbios-ns	137/udp				# NETBIOS Name Service
netbios-dgm	138/tcp				# NETBIOS Datagram Service
netbios-dgm	138/udp				# NETBIOS Datagram Service
netbios-ssn	139/tcp				# NETBIOS Session Service
netbios-ssn	139/udp				# NETBIOS Session Service
NeWS		144/tcp		news		# Window System
snmpd		161/udp		snmp		# Net-SNMP snmp daemon
slp		427/tcp		slp		# Service Location Protocol, V2
slp		427/udp		slp		# Service Location Protocol, V2
mobile-ip	434/udp		mobile-ip	# Mobile-IP
cvc_hostd	442/tcp				# Network Console
microsoft-ds	445/tcp				# Microsoft Directory Services
microsoft-ds	445/udp				# Microsoft Directory Services
ike		500/udp		ike		# Internet Key Exchange
uuidgen		697/tcp				# UUID Generator
uuidgen		697/udp				# UUID Generator
#
# UNIX specific services
#
# these are NOT officially assigned
#
rdc		121/tcp				# SNDR server daemon
exec		512/tcp
login		513/tcp
shell		514/tcp		cmd		# no passwords used
printer		515/tcp		spooler		# line printer spooler
courier		530/tcp		rpc		# experimental
uucp		540/tcp		uucpd		# uucp daemon
biff		512/udp		comsat
who		513/udp		whod
syslog		514/udp
talk		517/udp
route		520/udp		router routed
ripng		521/udp
klogin		543/tcp				# Kerberos authenticated rlogin
kshell		544/tcp		cmd		# Kerberos authenticated remote shell
new-rwho	550/udp		new-who		# experimental
rmonitor	560/udp		rmonitord	# experimental
monitor		561/udp				# experimental
pcserver	600/tcp				# ECD Integrated PC board srvr
sun-dr		665/tcp				# Remote Dynamic Reconfiguration
kerberos-adm	749/tcp				# Kerberos V5 Administration
kerberos-adm	749/udp				# Kerberos V5 Administration
kerberos-iv	750/udp				# Kerberos V4 key server
krb5_prop	754/tcp				# Kerberos V5 KDC propogation
swat		901/tcp				# Samba Web Adm.Tool
ufsd		1008/tcp	ufsd		# UFS-aware server
ufsd		1008/udp	ufsd
cvc		1495/tcp			# Network Console
ingreslock	1524/tcp
www-ldap-gw	1760/tcp			# HTTP to LDAP gateway
www-ldap-gw	1760/udp			# HTTP to LDAP gateway
listen		2766/tcp			# System V listener port
nfsd		2049/udp	nfs		# NFS server daemon (clts)
nfsd		2049/tcp	nfs		# NFS server daemon (cots)
nfsd		2049/sctp	nfs
eklogin		2105/tcp			# Kerberos encrypted rlogin
lockd		4045/udp			# NFS lock daemon/manager
lockd		4045/tcp
ipsec-nat-t	4500/udp			# IPsec NAT-Traversal
vxlan		4789/udp			# Virtual eXtensible Local Area Network (VXLAN)
mdns		5353/udp			# Multicast DNS
mdns		5353/tcp
vnc-server	5900/tcp			# VNC Server
dtspc		6112/tcp			# CDE subprocess control
servicetag	6481/udp
servicetag	6481/tcp
fs		7100/tcp			# Font server
solaris-audit	16162/tcp			# Secure remote audit logging
wnn6		22273/tcp			# Wnn6 jserver
wnn6		22273/udp			# Wnn6 jserver
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
# Copyright 2022 Garrett D'Amore
#
# cmd/cmd-inet/etc/sock2path.d/Makefile
#

SOCK2PATHFILES= \
    driver%2Fnetwork%2Fbpf \
    driver%2Fnetwork%2Frds \
    driver%2Fnetwork%2Frdsv3 \
    driver%2Fnetwork%2Fsdp \
    system%2Fkernel

include ../../../Makefile.cmd

ETCSOCK2PATHDIR=	$(ROOTETC)/sock2path.d
ETCSOCK2PATHFILES=	$(SOCK2PATHFILES:%=$(ETCSOCK2PATHDIR)/%)

FILEMODE=	0644

.KEEP_STATE:

all:
install:	$(ETCSOCK2PATHDIR) $(ETCSOCK2PATHFILES)

$(ETCSOCK2PATHDIR)/%: %
		$(INS.file)

$(ETCSOCK2PATHDIR):
		$(INS.dir)
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
#
# socket configuration information
#
#     Family   Type  Protocol	Dev|Module

	32	1	0	sockpfp
	32	4	0	sockpfp
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
#
# socket configuration information
#
#     Family   Type  Protocol	Dev|Module

	30	1	0	/dev/rds
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
#
# socket configuration information
#
#     Family   Type  Protocol	Dev|Module

	30	6	0	sockrds
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
#
# socket configuration information
#
#     Family   Type  Protocol	Dev|Module

	2	2	257	socksdp
	26	2	257	socksdp
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
#
# socket configuration information
#
#     Family   Type  Protocol	Dev|Module
	2	2	0	tcp
	2	2	6	tcp

	26	2	0	tcp
	26	2	6	tcp

	2	1	0	udp
	2	1	17	udp

	26	1	0	udp
	26	1	17	udp

	1	2	0	/dev/ticotsord
	1	6	0	/dev/ticotsord
	1	1	0	/dev/ticlts

	2	4	0	icmp
	26	4	0	icmp

	2	2	132	socksctp
	26	2	132	socksctp
	2	6	132	socksctp
	26	6	132	socksctp

	24	4	0	rts

	27	4	2	/dev/keysock
	29	4	1	/dev/spdsock

	31	1	0	trill