Click on the top button to “open code in new window” to see it in a nice format
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 |
OPENVPN - 1 - ROUTED VPNS - CLIENT 2 CLIENT ############################################# ############################################# I do not claim ownership to the manpage of openvpn and also the vars file ( i did some edits ) and also the client/server settings before the errors section, I just used them as experts to help you in your reading. Note here I cover how to make a very simple openvpn with static keys (but its not very secure) and then one with more security using ssl/tls pki certs. ################ ################ ################ ################ OPENVPN - Routed ################ ################ ################ ################ TABLE OF CONTENTS: 1. Quick Intro to Routed OpenVPN (Covers installation) 2. Routed Simple Config: Static Keys --- Server config --- Client config --- Recap --- Speed tests with iperf 3. Routed Hardest Config: PKI security with SSL/TLS Certs --- Server config --- Client config --- Recap --- Speed tests with iperf --- Vars: the config file for the certificate building process 4. SERVER AND CLIENT CONFIGS WITH EXPLANATIONS FROM SITE: http://openvpn.net/index.php/open-source/documentation/howto.html 5. EXAMPLE OF LOGS 6. MANPAGE of openvpn.conf (LONGEST) http://linux.die.net/man/8/openvpn Citation for this Article: http://linux.die.net/man/8/openvpn http://openvpn.net/index.php/open-source/documentation/howto.html ############################## ############################## Quick Intro to Routed OpenVPN ############################## ############################## BEFORE CONTINUING LETS INSTALL EVERYTHING: ON SERVER: apt-get update apt-get install openvpn apt-get install openssl apt-get install iperf ON CLIENT: apt-get update apt-get install openvpn apt-get install openssl apt-get install iperf OPENSSL is optional on client, and IPERF is optional on both. We are doing routed vpn here for simplicity meaning the client will only be able to have a direct connection to the server and nothing beyond that unless there were routes in place on the servers network telling pcs on that network that to reach the client they have to go through the server. IF you want a vpn where the client has access to the whole network instead of setup like that with routes, its simpler to implement the other type of vpn, a bridged vpn, but thats another article/topic. ######################### ######################### Routed Static Key OpenVPN ######################### ######################### SIMPLEST VPN REQUIREING A PRESHARED KEY (A FILE, NOT A PASSPHRASE) There is actually a simpler VPN then this which requires no key, but noone should do a tunnel without some sort of encryption. Then after that simplicity comes this setup where you just need 1 file on both client and server. then after that comes strongest PKI using SSL/TLS keys. So thats the 3 levels 1) no key 2) preshared key 3) PKI with SSL/TLS Below I will post some good links on this. After that notice that on the server we give ourselfs an ip of 10.99.99.1 and a gateway of 10.99.99.2 (Which will be the client) and vice versa on the client. Just make sure to be root. THE ONLY PREREQUISTE FROM A NETWORKING POINT OF VIEW: * Allow outbound all out on server network * Allow outbound all out on client network (IMPORTANT SIDE NOTE - applies to this point and the point below about portforwarding:specifically port 50006 UDP in this case, by default - and on most sites - you see port 1194, I use UDP as its best to use UDP for VPNS, there are plenty of articles of why TCP is a terrible choice, one being when you have a TCP stream going thru a TCP vpn you get TCP over TCP phenomenon where nothing aligns, each TCP requires its own AWK blah hack... you know what im talking about its a mess, thus UDP is best) * Portforward from your router 1 UDP or TCP port (Like I said we are using UDP as its best and im not using the default 1194 so im using 50006 from the router[www.server.com] to the openvpn server[which is inside the www.server.com routers network of course]... Note for those interested in how this setup would look like if I port-translated with my portforward, for example I said port 50006 from www.server.com router goes to port 2000 on the openvpn server, well the server config would have to say "port 2000" & "proto udp" and the client would have to say "remote www.server.com" & "port 50006" & "proto udp" ) ============= SERVER CONFIG ============= GEN KEY: cd /etc/openvpn openvpn --genkey --secret static.key vi openvpn.conf OPENVPN.CONF: proto udp port 50006 dev tun ifconfig 10.99.99.1 10.99.99.2 secret static.key START THE VPN ON THE SERVER (AND HOPEFULLY YOU GET OKS INSTEAD OF FAILS) service openvpn start OR /etc/init.d/openvpn start TRANSFER KEY TO CLIENT FROM SERVER cd /etc/openvpn cat static.key | ssh -p 50005 www.client.com "cat - > /etc/openvpn/static.key" ============= CLIENT CONFIG ============= We need to get the key here, looks like we did that above :-) Next comes the config cd /etc/openvpn vi openvpn.conf OPENVPN.CONF: remote www.server.com proto udp port 50006 dev tun ifconfig 10.99.99.2 10.99.99.1 secret static.key START THE VPN ON THE CLIENT (AND HOPEFULLY YOU GET OKS INSTEAD OF FAILS) service openvpn start OR /etc/init.d/openvpn start ===GOOD READING:=== http://openmaniak.com/openvpn_tutorial.php Read all the sublinks with this as well as they give good information. THE END! THE END! THE END! ==================== RECAP FOR STATIC KEY ==================== GENERATE KEY WITH: openvpn --genkey --secret static.key SERVER FILES: /etc/openvpn/static.key /etc/openvpn/openvpn.conf SERVER OPENVPN.CONF - /etc/openvpn/openvpn.conf: proto udp port 50006 dev tun ifconfig 10.99.99.1 10.99.99.2 secret static.key CLIENT FILES: /etc/openvpn/static.key /etc/openvpn/openvpn.conf SERVER OPENVPN.CONF - /etc/openvpn/openvpn.con: remote www.server.com proto udp port 50006 dev tun ifconfig 10.99.99.2 10.99.99.1 secret static.key ========================================= SOME SPEED TESTS ON THE SIMPLE STATIC VPN ========================================= JUST FOR FUN I TESTED THE SPEED ON THE CONNECTION AND I GOT 11 MBPS :-) ON SERVER 10.99.99.2: iperf -s -p 50505 ON CLIENT 10.99.99.1 - FOR THIS TEST I ACTUALLY MADE THE OPENVPN SERVER THE CLIENT FOR THE IPERF: * First I run a iperf speed test that measures client to server then server to client, Then on the together test it measures both simulatenously :-) echo "SEPERATE"; iperf -p 50505 -c 10.99.99.2 -r -t20 -i2; echo "TOTHER"; iperf -p 50505 -c 10.99.99.2 -d -t20 -i2; I could of just run this which is simpler, and I did and I got 11MBPS, thats why i had to run a more complicated test to see if I was seeing truth. SIMPLER: ON SERVER: iperf -s ON CLINET: iperf -c 10.99.99.2 RESULTS: 10 to 11 MBPS ################################ ################################ Routed PKI SSL/TLS Certs OpenVPN ################################ ################################ NOTE SERVER NEEDS: # CERTIFICATES AND PRIVATE KEY # Authority certificate (CA public key) ca ca.key # Server certificate (server public key) cert server.crt # Server private key key server.key NOTE CLIENT NEEDS: # CERTIFICATES AND PRIVATE KEY # Authority certificate (CA public key) ca ca.key # Client certificate (client public key) cert client.crt # Client private key key client.key ============= SERVER CONFIG ============= GENERATE KEYS cd /etc/openvpn cp /usr/share/doc/openvpn/examples/easy-rsa/2.0/ . -R cd /etc/openvpn/2.0 :>vars COPY vars FROM BELOW AND EDIT THE BOTTOM PART source vars ./clean-all *** IMPORTANT *** NOTE WHEN GENERATING THESE KEYS MOST OF THE ANSWERS SUFFICE A SIMPLE enter KEY PRESS, PUT THE LAST 2 QUESTIONS REQUIRE A y OR n FOR yes OR no: MAKE SURE TO PUT y FOR yes NOTE WHEN GENERATING THESE KEYS MOST OF THE ANSWERS SUFFICE A SIMPLE enter KEY PRESS, PUT THE LAST 2 QUESTIONS REQUIRE A y OR n FOR yes OR no: MAKE SURE TO PUT y FOR yes THE QUESTIONS ARE: Sign the certificate? [y/n]:y 1 out of 1 certificate requests certified, commit? [y/n]y *** END OF IMPORTANT *** ./build-ca ./build-key-server server ./build-key client ./build-dh COPY SERVER RELATED KEYS FROM /etc/openvpn/2.0/keys (a new directory with plenty of keys now) TO /etc/openvpn: cd /etc/openvpn/2.0/keys cp ca.key ca.crt server.crt server.key dh2048.pem ../../ NOTE: IF your config decided to do 1024 bit encryption then your dh2048.pem will be dh1024.pem instead, so change the steps accordingly. IF you followed this to the T then it shouldnt be different SO NOW YOU SHOULD HAVE ca.key ca.crt server.crt server.key dh2048.pem AT /etc/openvpn ls -lisah /etc/openvpn CONFIRM YOU HAVE THOSE 5 FILES THERE vi openvpn.conf OPENVPN.CONF: proto udp port 50006 dev tun server 10.99.99.0 255.255.255.0 ca ca.crt cert server.crt key server.key dh dh2048.pem cipher AES-128-CBC auth MD5 verb 3 IN PREVIOUS PRESHARED KEY EXAMPLE WE MANUALLY SET IP, HERE WE ARE DOING A DHCP SERVER, WE ARE TELLING THE SERVER TO HANDOUT IPS IN THE 10.99.99.0/24 NETWORK WITH THE server COMMAND AND ON THE CLIENT WE ARE USING A pull TO GET AN IP NOTE TO GET CIPHER - THEY ARE OPTIONAL: openvpn --show-cipher NOTE TO GET AN AUTH/DIGEST - THEY ARE OPTIONAL: openvpn --show-digests NOTE ON VERBOSITY LEVELS (THE LOGS SAVE TO SYSLOG BY THE WAY) 0 -- quiet except for fatal errors. 1 -- mostly quiet, but displays non-fatal network errors. 3 -- medium output, good for normal operation. 9 -- verbose, good for troubleshooting ITS TIME TO TRANSFER KEYS TO CLIENT FROM SERVER: cd /etc/openvpn/2.0/keys cat ca.crt | ssh -p 50005 www.client.com "cat - > /etc/openvpn/ca.crt" cat client.crt | ssh -p 50005 www.client.com "cat - > /etc/openvpn/client.crt" cat client.key | ssh -p 50005 www.client.com "cat - > /etc/openvpn/client.key" NOTICE THE CLIENT DOESNT NEED TO KNOW ABOUT THE dh FILE SO WE DONT TRANSFER IT OVER START THE VPN ON THE SERVER (AND HOPEFULLY YOU GET OKS INSTEAD OF FAILS) service openvpn start OR /etc/init.d/openvpn start ============= CLIENT CONFIG ============= We need to get the key here, looks like we did that above :-) Next comes the config cd /etc/openvpn vi openvpn.conf OPENVPN.CONF: client remote www.server.com proto udp port 50006 dev tun resolv-retry infinite persist-key persist-tun pull ca ca.crt cert client.crt key client.key cipher AES-128-CBC auth MD5 verb 3 START THE VPN ON THE CLIENT (AND HOPEFULLY YOU GET OKS INSTEAD OF FAILS) service openvpn start OR /etc/init.d/openvpn start THE END! THE END! THE END! ==================== RECAP FOR ROUTED SSL ==================== ===RECAP ON SERVER=== GENERATE ALL KEYS: I delete the regular vars with :>vars because the one I was give was not good and had errors and double entries so I felt it was off. So I found one off line: ON SERVER FILES: /etc/openvpn/ca.crt /etc/openvpn/ca.key /etc/openvpn/server.crt /etc/openvpn/server.key /etc/openvpn/dh2048.pem /etc/openvpn/openvpn.conf ON SERVER CONFIG - /etc/openvpn/openvpn.conf: proto udp #<--- notice above I didnt put tls-server but you can if you want to, it assumes tls-server without it either way port 50006 dev tun # <--- tunnel adapter meaning this is a routed vpn, use tap for vridge server 10.99.99.0 255.255.255.0 # <--- dhcp server ca ca.crt # <-- doesnt need to know where ca.key is? maybe it assumes its next to ca.crt cert server.crt key server.key dh dh2048.pem cipher AES-128-CBC auth MD5 verb 7 SAME SERVER CONFIG JUST CLEANER (I ADDED tls-server FOR FUN, IT MAKES NO DIFFERENCE AS ITS ON BY DEFAULT IN THIS TYPE OF CONNECTION)- /etc/openvpn/openvpn.conf: tls-server proto udp port 50006 dev tun server 10.99.99.0 255.255.255.0 ca ca.crt cert server.crt key server.key dh dh2048.pem cipher AES-128-CBC auth MD5 verb 7 ===RECAP ON CLIENT=== ON CLIENT FILES: /etc/openvpn/ca.crt /etc/openvpn/client.crt /etc/openvpn/client.key /etc/openvpn/openvpn.conf ON CLIENT CONFIG - /etc/openvpn/openvpn.conf: client #<--- have to specify this is the client, note didnt need this on static key example... CAN ALSO INSTEAD PUT tls-client remote www.server.com proto udp # <--- tunnel adapter meaning this is a routed vpn, use tap for vridge port 50006 dev tun resolv-retry infinite nobind # <-- doesnt tie client to port persist-key # <-- persists reboot persist-tun # <-- persists reboot pull # <-- pulls dhcp address ca ca.crt # <--- client doesnt need the key (only the key signing machine which is the server here) cert client.crt key client.key cipher AES-128-CBC # <-- for encryption auth MD5 # <-- for encryption verb 3 SAME CLIENT CONFIG JUST CLEANER WITHOUT COMMENTS - /etc/openvpn/openvpn.conf: client remote www.server.com proto udp port 50006 dev tun nobind resolv-retry infinite persist-key persist-tun pull ca ca.crt cert client.crt key client.key cipher AES-128-CBC auth MD5 verb 3 ANOTHER WORKING CLIENT CONFIG - /etc/openvpn/openvpn.conf: tls-client remote www.server.com proto udp port 50006 dev tun pull ca ca.crt cert client.crt key client.key cipher AES-128-CBC auth MD5 verb 3 ================================ SOME SPEED TESTS ON THIS SSL VPN ================================ JUST FOR FUN I TESTED THE SPEED ON THE CONNECTION AND I GOT 11 MBPS :-) ON SERVER 10.99.99.1: iperf -s -p 50505 ON CLIENT 10.99.99.6 - FOR THIS TEST I ACTUALLY MADE THE OPENVPN SERVER THE CLIENT FOR THE IPERF: * First I run a iperf speed test that measures client to server then server to client, Then on the together test it measures both simulatenously :-) echo "SEPERATE"; iperf -p 50505 -c 10.99.99.6 -r -t20 -i2; echo "TOTHER"; iperf -p 50505 -c 10.99.99.6 -d -t20 -i2; I could of just run this which is simpler, and I did and I got 11MBPS, thats why i had to run a more complicated test to see if I was seeing truth. SIMPLER: ON SERVER: iperf -s ON CLINET: iperf -c 10.99.99.2 RESULTS: 10 to 12.0 MBPS ==== VARS ==== # MODIFIED FROM:https://github.com/OpenVPN/easy-rsa/blob/master/easy-rsa/2.0/vars # easy-rsa parameter settings # NOTE: If you installed from an RPM, # don't edit this file in place in # /usr/share/openvpn/easy-rsa -- # instead, you should copy the whole # easy-rsa directory to another location # (such as /etc/openvpn) so that your # edits will not be wiped out by a future # OpenVPN package upgrade. # This variable should point to # the top level of the easy-rsa # tree. export EASY_RSA="/etc/openvpn/2.0" # # This variable should point to # the requested executables # export OPENSSL="openssl" export PKCS11TOOL="pkcs11-tool" export GREP="grep" # This variable should point to # the openssl.cnf file included # with easy-rsa. export KEY_CONFIG=`$EASY_RSA/whichopensslcnf $EASY_RSA` # Edit this variable to point to # your soon-to-be-created key # directory. # # WARNING: clean-all will do # a rm -rf on this directory # so make sure you define # it correctly! export KEY_DIR="$EASY_RSA/keys" # Issue rm -rf warning echo NOTE: If you run ./clean-all, I will be doing a rm -rf on $KEY_DIR # PKCS11 fixes export PKCS11_MODULE_PATH="dummy" export PKCS11_PIN="dummy" # Increase this to 2048 if you # are paranoid. This will slow # down TLS negotiation performance # as well as the one-time DH parms # generation process. export KEY_SIZE=2048 # In how many days should the root CA key expire? export CA_EXPIRE=3650 # In how many days should certificates expire? export KEY_EXPIRE=3650 # These are the default values for fields # which will be placed in the certificate. # Don't leave any of these fields blank. # # ****** CHANGE FROM HERE DOWN ****** # export KEY_COUNTRY="US" export KEY_PROVINCE="CA" export KEY_CITY="SanJose" export KEY_ORG="SERVAWE" export KEY_EMAIL="thisawesome@gmail.com" export KEY_OU="SERVAWELAB" # X509 Subject Field export KEY_NAME="SERVAWE" # # ****** CHANGE FROM HERE UP ****** # # PKCS11 Smart Card # export PKCS11_MODULE_PATH="/usr/lib/changeme.so" # export PKCS11_PIN=1234 # If you'd like to sign all keys with the same Common Name, uncomment the KEY_CN export below # You will also need to make sure your OpenVPN server config has the duplicate-cn option set # export KEY_CN="CommonName" ################################################################# ################################################################# SERVER AND CLIENT CONFIGS WITH EXPLANATIONS FROM SITE: http://openvpn.net/index.php/open-source/documentation/howto.html ################################################################# ################################################################# Sample OpenVPN 2.0 configuration files sample-config-files/server.conf ################################################# # Sample OpenVPN 2.0 config file for # # multi-client server. # # # # This file is for the server side # # of a many-clients one-server # # OpenVPN configuration. # # # # OpenVPN also supports # # single-machine single-machine # # configurations (See the Examples page # # on the web site for more info). # # # # This config should work on Windows # # or Linux/BSD systems. Remember on # # Windows to quote pathnames and use # # double backslashes, e.g.: # # "C:\\Program Files\\OpenVPN\\config\\foo.key" # # # # Comments are preceded with '#' or ';' # ################################################# # Which local IP address should OpenVPN # listen on? (optional) ;local a.b.c.d # Which TCP/UDP port should OpenVPN listen on? # If you want to run multiple OpenVPN instances # on the same machine, use a different port # number for each one. You will need to # open up this port on your firewall. port 1194 # TCP or UDP server? ;proto tcp proto udp # "dev tun" will create a routed IP tunnel, # "dev tap" will create an ethernet tunnel. # Use "dev tap0" if you are ethernet bridging # and have precreated a tap0 virtual interface # and bridged it with your ethernet interface. # If you want to control access policies # over the VPN, you must create firewall # rules for the the TUN/TAP interface. # On non-Windows systems, you can give # an explicit unit number, such as tun0. # On Windows, use "dev-node" for this. # On most systems, the VPN will not function # unless you partially or fully disable # the firewall for the TUN/TAP interface. ;dev tap dev tun # Windows needs the TAP-Windows adapter name # from the Network Connections panel if you # have more than one. On XP SP2 or higher, # you may need to selectively disable the # Windows firewall for the TAP adapter. # Non-Windows systems usually don't need this. ;dev-node MyTap # SSL/TLS root certificate (ca), certificate # (cert), and private key (key). Each client # and the server must have their own cert and # key file. The server and all clients will # use the same ca file. # # See the "easy-rsa" directory for a series # of scripts for generating RSA certificates # and private keys. Remember to use # a unique Common Name for the server # and each of the client certificates. # # Any X509 key management system can be used. # OpenVPN can also use a PKCS #12 formatted key file # (see "pkcs12" directive in man page). ca ca.crt cert server.crt key server.key # This file should be kept secret # Diffie hellman parameters. # Generate your own with: # openssl dhparam -out dh1024.pem 1024 # Substitute 2048 for 1024 if you are using # 2048 bit keys. dh dh1024.pem # Configure server mode and supply a VPN subnet # for OpenVPN to draw client addresses from. # The server will take 10.8.0.1 for itself, # the rest will be made available to clients. # Each client will be able to reach the server # on 10.8.0.1. Comment this line out if you are # ethernet bridging. See the man page for more info. server 10.8.0.0 255.255.255.0 # Maintain a record of client virtual IP address # associations in this file. If OpenVPN goes down or # is restarted, reconnecting clients can be assigned # the same virtual IP address from the pool that was # previously assigned. ifconfig-pool-persist ipp.txt # Configure server mode for ethernet bridging. # You must first use your OS's bridging capability # to bridge the TAP interface with the ethernet # NIC interface. Then you must manually set the # IP/netmask on the bridge interface, here we # assume 10.8.0.4/255.255.255.0. Finally we # must set aside an IP range in this subnet # (start=10.8.0.50 end=10.8.0.100) to allocate # to connecting clients. Leave this line commented # out unless you are ethernet bridging. ;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100 # Push routes to the client to allow it # to reach other private subnets behind # the server. Remember that these # private subnets will also need # to know to route the OpenVPN client # address pool (10.8.0.0/255.255.255.0) # back to the OpenVPN server. ;push "route 192.168.10.0 255.255.255.0" ;push "route 192.168.20.0 255.255.255.0" # To assign specific IP addresses to specific # clients or if a connecting client has a private # subnet behind it that should also have VPN access, # use the subdirectory "ccd" for client-specific # configuration files (see man page for more info). # EXAMPLE: Suppose the client # having the certificate common name "Thelonious" # also has a small subnet behind his connecting # machine, such as 192.168.40.128/255.255.255.248. # First, uncomment out these lines: ;client-config-dir ccd ;route 192.168.40.128 255.255.255.248 # Then create a file ccd/Thelonious with this line: # iroute 192.168.40.128 255.255.255.248 # This will allow Thelonious' private subnet to # access the VPN. This example will only work # if you are routing, not bridging, i.e. you are # using "dev tun" and "server" directives. # EXAMPLE: Suppose you want to give # Thelonious a fixed VPN IP address of 10.9.0.1. # First uncomment out these lines: ;client-config-dir ccd ;route 10.9.0.0 255.255.255.252 # Then add this line to ccd/Thelonious: # ifconfig-push 10.9.0.1 10.9.0.2 # Suppose that you want to enable different # firewall access policies for different groups # of clients. There are two methods: # (1) Run multiple OpenVPN daemons, one for each # group, and firewall the TUN/TAP interface # for each group/daemon appropriately. # (2) (Advanced) Create a script to dynamically # modify the firewall in response to access # from different clients. See man # page for more info on learn-address script. ;learn-address ./script # If enabled, this directive will configure # all clients to redirect their default # network gateway through the VPN, causing # all IP traffic such as web browsing and # and DNS lookups to go through the VPN # (The OpenVPN server machine may need to NAT # the TUN/TAP interface to the internet in # order for this to work properly). # CAVEAT: May break client's network config if # client's local DHCP server packets get routed # through the tunnel. Solution: make sure # client's local DHCP server is reachable via # a more specific route than the default route # of 0.0.0.0/0.0.0.0. ;push "redirect-gateway" # Certain Windows-specific network settings # can be pushed to clients, such as DNS # or WINS server addresses. CAVEAT: # http://openvpn.net/faq.html#dhcpcaveats ;push "dhcp-option DNS 10.8.0.1" ;push "dhcp-option WINS 10.8.0.1" # Uncomment this directive to allow different # clients to be able to "see" each other. # By default, clients will only see the server. # To force clients to only see the server, you # will also need to appropriately firewall the # server's TUN/TAP interface. ;client-to-client # Uncomment this directive if multiple clients # might connect with the same certificate/key # files or common names. This is recommended # only for testing purposes. For production use, # each client should have its own certificate/key # pair. # # IF YOU HAVE NOT GENERATED INDIVIDUAL # CERTIFICATE/KEY PAIRS FOR EACH CLIENT, # EACH HAVING ITS OWN UNIQUE "COMMON NAME", # UNCOMMENT THIS LINE OUT. ;duplicate-cn # The keepalive directive causes ping-like # messages to be sent back and forth over # the link so that each side knows when # the other side has gone down. # Ping every 10 seconds, assume that remote # peer is down if no ping received during # a 120 second time period. keepalive 10 120 # For extra security beyond that provided # by SSL/TLS, create an "HMAC firewall" # to help block DoS attacks and UDP port flooding. # # Generate with: # openvpn --genkey --secret ta.key # # The server and each client must have # a copy of this key. # The second parameter should be '0' # on the server and '1' on the clients. ;tls-auth ta.key 0 # This file is secret # Select a cryptographic cipher. # This config item must be copied to # the client config file as well. ;cipher BF-CBC # Blowfish (default) ;cipher AES-128-CBC # AES ;cipher DES-EDE3-CBC # Triple-DES # Enable compression on the VPN link. # If you enable it here, you must also # enable it in the client config file. comp-lzo # The maximum number of concurrently connected # clients we want to allow. ;max-clients 100 # It's a good idea to reduce the OpenVPN # daemon's privileges after initialization. # # You can uncomment this out on # non-Windows systems. ;user nobody ;group nobody # The persist options will try to avoid # accessing certain resources on restart # that may no longer be accessible because # of the privilege downgrade. persist-key persist-tun # Output a short status file showing # current connections, truncated # and rewritten every minute. status openvpn-status.log # By default, log messages will go to the syslog (or # on Windows, if running as a service, they will go to # the "\Program Files\OpenVPN\log" directory). # Use log or log-append to override this default. # "log" will truncate the log file on OpenVPN startup, # while "log-append" will append to it. Use one # or the other (but not both). ;log openvpn.log ;log-append openvpn.log # Set the appropriate level of log # file verbosity. # # 0 is silent, except for fatal errors # 4 is reasonable for general usage # 5 and 6 can help to debug connection problems # 9 is extremely verbose verb 3 # Silence repeating messages. At most 20 # sequential messages of the same message # category will be output to the log. ;mute 20 sample-config-files/client.conf ############################################## # Sample client-side OpenVPN 2.0 config file # # for connecting to multi-client server. # # # # This configuration can be used by multiple # # clients, however each client should have # # its own cert and key files. # # # # On Windows, you might want to rename this # # file so it has a .ovpn extension # ############################################## # Specify that we are a client and that we # will be pulling certain config file directives # from the server. client # Use the same setting as you are using on # the server. # On most systems, the VPN will not function # unless you partially or fully disable # the firewall for the TUN/TAP interface. ;dev tap dev tun # Windows needs the TAP-Windows adapter name # from the Network Connections panel # if you have more than one. On XP SP2, # you may need to disable the firewall # for the TAP adapter. ;dev-node MyTap # Are we connecting to a TCP or # UDP server? Use the same setting as # on the server. ;proto tcp proto udp # The hostname/IP and port of the server. # You can have multiple remote entries # to load balance between the servers. remote my-server-1 1194 ;remote my-server-2 1194 # Choose a random host from the remote # list for load-balancing. Otherwise # try hosts in the order specified. ;remote-random # Keep trying indefinitely to resolve the # host name of the OpenVPN server. Very useful # on machines which are not permanently connected # to the internet such as laptops. resolv-retry infinite # Most clients don't need to bind to # a specific local port number. nobind # Downgrade privileges after initialization (non-Windows only) ;user nobody ;group nobody # Try to preserve some state across restarts. persist-key persist-tun # If you are connecting through an # HTTP proxy to reach the actual OpenVPN # server, put the proxy server/IP and # port number here. See the man page # if your proxy server requires # authentication. ;http-proxy-retry # retry on connection failures ;http-proxy [proxy server] [proxy port #] # Wireless networks often produce a lot # of duplicate packets. Set this flag # to silence duplicate packet warnings. ;mute-replay-warnings # SSL/TLS parms. # See the server config file for more # description. It's best to use # a separate .crt/.key file pair # for each client. A single ca # file can be used for all clients. ca ca.crt cert client.crt key client.key # Verify server certificate by checking # that the certicate has the nsCertType # field set to "server". This is an # important precaution to protect against # a potential attack discussed here: # http://openvpn.net/howto.html#mitm # # To use this feature, you will need to generate # your server certificates with the nsCertType # field set to "server". The build-key-server # script in the easy-rsa folder will do this. ;ns-cert-type server # If a tls-auth key is used on the server # then every client must also have the key. ;tls-auth ta.key 1 # Select a cryptographic cipher. # If the cipher option is used on the server # then you must also specify it here. ;cipher x # Enable compression on the VPN link. # Don't enable this unless it is also # enabled in the server config file. comp-lzo # Set log file verbosity. verb 3 # Silence repeating messages ;mute 20 ############### ############### EXAMPLE OF LOGS ############### ############### Logs save to /var/log/syslog The verb of the config determines how much you see verb 3 is a simple summary verb 7 is every setting I was encountering errors when I was settings this up (of course I didnt include those errors in the article), but it was because I was point my ca ca.crt at ca ca.key instead (Thats what the website says to do, someone should let them know :-) ) ###################################################### VERB 3 at top VERB 7 at bottom GOES TO /var/log/syslog ###################################################### ======CLEAR======= ======CLEAR======= ======CLEAR======= Jun 10 02:47:52 debikos7 ovpn-openvpn[8056]: OpenVPN 2.2.1 x86_64-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Mar 23 2012 Jun 10 02:47:52 debikos7 ovpn-openvpn[8056]: WARNING: --keepalive option is missing from server config Jun 10 02:47:52 debikos7 ovpn-openvpn[8056]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 10 02:47:53 debikos7 ovpn-openvpn[8056]: Diffie-Hellman initialized with 2048 bit key Jun 10 02:47:53 debikos7 ovpn-openvpn[8056]: Cannot load CA certificate file /etc/openvpn/2.0/keys/ca.key path (null) (SSL_CTX_load_verify_locations) (OpenSSL) Jun 10 02:47:53 debikos7 ovpn-openvpn[8056]: Exiting ======CLEAR======= ======CLEAR======= ======CLEAR======= Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: Current Parameter Settings: Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: config = '/etc/openvpn/openvpn.conf' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: mode = 1 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: persist_config = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: persist_mode = 1 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: show_ciphers = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: show_digests = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: show_engines = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: genkey = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: key_pass_file = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: show_tls_ciphers = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: Connection profiles [default]: Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: proto = udp Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: local = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: local_port = 50006 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_port = 50006 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_float = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: bind_defined = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: bind_local = ENABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: connect_retry_seconds = 5 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: connect_timeout = 10 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: connect_retry_max = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: socks_proxy_server = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: socks_proxy_port = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: socks_proxy_retry = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: Connection profiles END Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_random = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ipchange = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: dev = 'tun' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: dev_type = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: dev_node = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: lladdr = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: topology = 1 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: tun_ipv6 = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ifconfig_local = '10.99.99.1' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ifconfig_remote_netmask = '10.99.99.2' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ifconfig_noexec = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ifconfig_nowarn = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ifconfig_ipv6_local = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ifconfig_ipv6_netbits = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ifconfig_ipv6_remote = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: shaper = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: tun_mtu = 1500 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: tun_mtu_defined = ENABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: link_mtu = 1500 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: link_mtu_defined = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: tun_mtu_extra = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: tun_mtu_extra_defined = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: fragment = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: mtu_discover_type = -1 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: mtu_test = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: mlock = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: keepalive_ping = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: keepalive_timeout = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: inactivity_timeout = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ping_send_timeout = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ping_rec_timeout = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ping_rec_timeout_action = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ping_timer_remote = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remap_sigusr1 = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: explicit_exit_notification = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: persist_tun = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: persist_local_ip = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: persist_remote_ip = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: persist_key = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: mssfix = 1450 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: passtos = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: resolve_retry_seconds = 1000000000 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: username = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: groupname = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: chroot_dir = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: cd_dir = '/etc/openvpn' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: writepid = '/var/run/openvpn.openvpn.pid' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: up_script = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: down_script = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: down_pre = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: up_restart = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: up_delay = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: daemon = ENABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: inetd = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: log = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: suppress_timestamps = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: nice = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: verbosity = 7 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: mute = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: gremlin = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: status_file = '/var/run/openvpn.openvpn.status' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: status_file_version = 1 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: status_file_update_freq = 10 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: occ = ENABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: rcvbuf = 65536 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: sndbuf = 65536 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: sockflags = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: fast_io = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: lzo = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: route_script = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: route_default_gateway = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: route_default_metric = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: route_noexec = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: route_delay = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: route_delay_window = 30 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: route_delay_defined = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: route_nopull = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: route_gateway_via_dhcp = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: max_routes = 100 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: allow_pull_fqdn = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: route 10.99.99.0/255.255.255.0/nil/nil Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: management_addr = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: management_port = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: management_user_pass = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: management_log_history_cache = 250 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: management_echo_buffer_size = 100 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: management_write_peer_info_file = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: management_client_user = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: management_client_group = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: management_flags = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: shared_secret_file = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: key_direction = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ciphername_defined = ENABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ciphername = 'BF-CBC' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: authname_defined = ENABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: authname = 'SHA1' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: prng_hash = 'SHA1' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: prng_nonce_secret_len = 16 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: keysize = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: engine = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: replay = ENABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: mute_replay_warnings = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: replay_window = 64 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: replay_time = 15 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: packet_id_file = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: use_iv = ENABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: test_crypto = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: tls_server = ENABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: tls_client = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: key_method = 2 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ca_file = '/etc/openvpn/2.0/keys/ca.key' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ca_path = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: dh_file = '/etc/openvpn/2.0/keys/dh2048.pem' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: cert_file = '/etc/openvpn/2.0/keys/server.crt' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: priv_key_file = '/etc/openvpn/2.0/keys/server.key' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs12_file = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: cipher_list = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: tls_verify = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: tls_export_cert = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: tls_remote = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: crl_file = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: ns_cert_type = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_ku[i] = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: remote_cert_eku = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: tls_timeout = 2 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: renegotiate_bytes = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: renegotiate_packets = 0 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: renegotiate_seconds = 3600 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: handshake_window = 60 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: transition_window = 3600 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: single_session = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: push_peer_info = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: tls_exit = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: tls_auth_file = '[UNDEF]' Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_protected_authentication = DISABLED Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_private_mode = 00000000 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_private_mode = 00000000 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_private_mode = 00000000 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_private_mode = 00000000 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_private_mode = 00000000 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_private_mode = 00000000 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_private_mode = 00000000 Jun 10 02:48:29 debikos7 ovpn-openvpn[8101]: pkcs11_private_mode = 00000000 Jun 10 02:48:29 debikos7 rsyslogd-2177: imuxsock begins to drop messages from pid 8101 due to rate-limiting ======CLEAR======= ======CLEAR======= ======CLEAR======= ########################### GOOD LOGS EVERYTHING WORKS ########################### At first I will show you without ciphers and authentication digest, and then with both... All of which work and load up the server. # cat /var/log/syslog ======CLEAR-no-cipher-&-auth-3-works======= ======CLEAR-no-cipher-&-auth-3-works======= ======CLEAR-no-cipher-&-auth-3-works======= ======CLEAR-no-cipher-&-auth-3-works-STOP======= ======CLEAR-no-cipher-&-auth-3-works-STOP======= ======CLEAR-no-cipher-&-auth-3-works-STOP======= Jun 10 03:06:20 debikos7 ovpn-openvpn[8672]: event_wait : Interrupted system call (code=4) Jun 10 03:06:20 debikos7 ovpn-openvpn[8672]: TCP/UDP: Closing socket Jun 10 03:06:20 debikos7 ovpn-openvpn[8672]: /sbin/route del -net 10.99.99.0 netmask 255.255.255.0 Jun 10 03:06:20 debikos7 ovpn-openvpn[8672]: Closing TUN/TAP interface Jun 10 03:06:20 debikos7 ovpn-openvpn[8672]: /sbin/ifconfig tun0 0.0.0.0 Jun 10 03:06:20 debikos7 avahi-daemon[2692]: Withdrawing workstation service for tun0. Jun 10 03:06:20 debikos7 NetworkManager[2746]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/tun0, iface: tun0) Jun 10 03:06:20 debikos7 ovpn-openvpn[8672]: SIGTERM[hard,] received, process exiting ======CLEAR-both-cipher-&-auth-7-works-START======= ======CLEAR-both-cipher-&-auth-7-works-START======= ======CLEAR-both-cipher-&-auth-7-works-START======= Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: Current Parameter Settings: Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: config = '/etc/openvpn/openvpn.conf' Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: mode = 1 Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: persist_config = DISABLED Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: persist_mode = 1 Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: show_ciphers = DISABLED Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: show_digests = DISABLED Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: show_engines = DISABLED Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: genkey = DISABLED Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: key_pass_file = '[UNDEF]' Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: show_tls_ciphers = DISABLED Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: Connection profiles [default]: Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: proto = udp Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: local = '[UNDEF]' Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: local_port = 50006 Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: remote = '[UNDEF]' Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: remote_port = 50006 Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: remote_float = DISABLED Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: bind_defined = DISABLED Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: bind_local = ENABLED Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: connect_retry_seconds = 5 Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: connect_timeout = 10 Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: connect_retry_max = 0 Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: socks_proxy_server = '[UNDEF]' Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: socks_proxy_port = 0 Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: socks_proxy_retry = DISABLED Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: Connection profiles END Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: remote_random = DISABLED Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: ipchange = '[UNDEF]' Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: dev = 'tun' Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: dev_type = '[UNDEF]' Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: dev_node = '[UNDEF]' Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: lladdr = '[UNDEF]' Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: topology = 1 Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: tun_ipv6 = DISABLED Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: ifconfig_local = '10.99.99.1' Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: ifconfig_remote_netmask = '10.99.99.2' Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: ifconfig_noexec = DISABLED Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: ifconfig_nowarn = DISABLED Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: ifconfig_ipv6_local = '[UNDEF]' Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: ifconfig_ipv6_netbits = 0 Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: ifconfig_ipv6_remote = '[UNDEF]' Jun 10 03:07:34 debikos7 ovpn-openvpn[8935]: shaper = 0 Jun 10 03:07:34 |