{"id":2038,"date":"2018-05-21T08:30:42","date_gmt":"2018-05-20T23:30:42","guid":{"rendered":"https:\/\/pandanote.info\/?p=2038"},"modified":"2022-08-07T00:22:47","modified_gmt":"2022-08-06T15:22:47","slug":"openvpn%e8%a8%ad%e5%ae%9a%e5%a4%96%e4%bc%9d-%e8%a8%ad%e5%ae%9a%e3%81%a7%e3%83%8f%e3%83%9e%e3%81%a3%e3%81%9f%e3%81%a8%e3%81%93%e3%82%8dn%e9%81%b8","status":"publish","type":"post","link":"https:\/\/pandanote.info\/?p=2038","title":{"rendered":"OpenVPN\u8a2d\u5b9a\u5916\u4f1d: \u8a2d\u5b9a\u3067\u30cf\u30de\u3063\u305f\u3068\u3053\u308dn\u9078"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p><a href=\"https:\/\/pandanote.info\/?p=2024\">\u524d\u306e\u8a18\u4e8b<\/a>\u3067<a href=\"https:\/\/amzn.to\/2PrGWxj\">OpenVPN<\/a>\u306e\u8a2d\u5b9a\u624b\u9806\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3001\u305d\u308c\u306f\u5e73\u5766\u306a\u9053\u306e\u308a\u3067\u306f\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u3053\u306e\u8a18\u4e8b\u3067\u30cf\u30de\u3063\u305f\u3068\u3053\u308d\u3092\u3044\u304f\u3064\u304b\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002\u5f8c\u534a\u306e\u65b9\u306e\u7bc0\u306f\u524d\u306e\u8a18\u4e8b\u3067\u306f\u89e6\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u3053\u3068\u304c\u6025\u306b\u767b\u5834\u3057\u307e\u3059\u304c\u3001\u7d30\u304b\u3044\u3053\u3068\u306f\u6c17\u306b\u3057\u306a\u3044\u3067\u304a\u8aad\u307f\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002\ud83d\ude47\u200d\u2642\ufe0f<\/p>\n<h2>\u30cf\u30de\u3063\u305f\u3068\u3053\u308d\u305d\u306e1: \u305d\u3082\u305d\u3082\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u9375\u30da\u30a2\u306e\u3064\u3082\u308a\u304c\u8aa4\u3063\u3066\u30b5\u30fc\u30d0\u306e\u9375\u30da\u30a2\u3092\u4f5c\u3063\u3066\u3057\u307e\u3063\u305f\u3002<\/h2>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e<a href=\"https:\/\/openvpn.net\/\">OpenVPN<\/a>\u306e\u8a2d\u5b9a\u3092\u7d42\u3048\u3066\u3001root\u6a29\u9650\u3067\u63a5\u7d9a\u306e\u30c6\u30b9\u30c8\u306e\u3064\u3082\u308a\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u2026<\/p>\n<div class=\"code\"># systemctl start openvpn-client@client<\/div>\n<p>&nbsp;<br \/>\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e\/var\/log\/messages\u306b\u4ee5\u4e0b\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u2026<\/p>\n<div class=\"code\">May 18 07:11:59 nuc openvpn&#91;1438]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)<br \/>\nMay 18 07:11:59 nuc openvpn&#91;1438]: TLS Error: TLS handshake failed<br \/>\nMay 18 07:11:59 nuc openvpn&#91;1438]: SIGUSR1[soft,tls-error] received, process restarting<br \/>\nMay 18 07:11:59 nuc openvpn&#91;1438]: Restart pause, 5 second(s)<br \/>\nMay 18 07:12:04 nuc openvpn&#91;1438]: TCP\/UDP: Preserving recently used remote address: [AF_INET6]sss:ppp:mmm:qqq::1:1194<br \/>\nMay 18 07:12:04 nuc openvpn&#91;1438]: Socket Buffers: R=[212992->212992] S=[212992->212992]<br \/>\nMay 18 07:12:04 nuc openvpn&#91;1438]: UDP link local: (not bound)<br \/>\nMay 18 07:12:04 nuc openvpn&#91;1438]: UDP link remote: [AF_INET6]sss:ppp:mmm:qqq::1:1194<\/div>\n<p>&nbsp;<\/p>\n<p>TLS\u306e\u30cf\u30f3\u30c9\u30b7\u30a7\u30a4\u30af\u306b\u5931\u6557\u3057\u3066\u3044\u308b\u305f\u3081\u306b\u3001\u63a5\u7d9a\u306b\u5931\u6557\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002(\u00b4\u30fb\u03c9\u30fb\uff40)<\/p>\n<p>\u305d\u3053\u3067\u3001\u30b5\u30fc\u30d0\u5074\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb(\/var\/log\/openvpn.log)\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002\u3059\u308b\u3068\u2026<\/p>\n<div class=\"code\">xxx.yyy.zzz.ttt:53329 VERIFY ERROR: depth=0, error=unsupported certificate purpose: CN=client<\/div>\n<p>&nbsp;<\/p>\n<p>\u3068\u3044\u3046\u30ed\u30b0\u3092\u767a\u898b\u3057\u307e\u3057\u305f\u3002\u8a3c\u660e\u66f8\u304c\u6b63\u3057\u304f\u306a\u3044\u307f\u305f\u3044\u3067\u3059\u2026<\/p>\n<p>\u3053\u3046\u3044\u3046\u3068\u304d\u306fGoogle\u5148\u751f\u306b\u805e\u3044\u305f\u65b9\u304c\u539f\u56e0\u304c\u308f\u304b\u308b\u3053\u3068\u306e\u65b9\u304c\u591a\u3044(\u5f53\u30b5\u30a4\u30c8\u6bd4)\u306e\u3067\u3001\u805e\u3044\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u300c\u305d\u308c\u306f\u9375\u30da\u30a2\u304c\u9593\u9055\u3063\u3066\u306d?\u300d\u3068\u3044\u3046\u3088\u3046\u306a\u8a18\u4e8b\u3057\u304b\u898b\u5f53\u305f\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u6539\u3081\u3066<a href=\"https:\/\/pandanote.info\/?p=2024\">\u524d\u306e\u8a18\u4e8b<\/a>\u306e\u66f8\u304d\u304b\u3051\u3092\u3088\uff5e\u304f\u78ba\u8a8d\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u300c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u7528\u79d8\u5bc6\u9375\u53ca\u3073\u8a3c\u660e\u66f8\u306e\u4f5c\u6210\u300d\u306e\u9805\u3067<\/p>\n<div class=\"code\">&#91;panda@pandanote.info easyrsa3&#93;&#36; .\/easyrsa build-client-full client nopass<\/div>\n<p>&nbsp;<br \/>\n\u3068\u66f8\u304f\u3079\u304d\u3068\u3053\u308d\u3001<\/p>\n<div class=\"code\">&#91;panda@pandanote.info easyrsa3]&#36; .\/easyrsa build-server-full client nopass<\/div>\n<p>&nbsp;<br \/>\n\u3068\u66f8\u3044\u3066\u3001\u305d\u306e\u307e\u307e\u5b9f\u884c\u3057\u3066\u307e\u3057\u305f\u3002<\/p>\n<p>\u3069\u3046\u3082\u3001\u30b5\u30fc\u30d0\u306e\u9375\u30da\u30a2\u3092\u4f5c\u3063\u3066\u3044\u305f\u3088\u3046\u3067\u3059\u2026 (\u00b4\u30fb\u03c9\u30fb\uff40)<\/p>\n<p><strong>\u3053\u3053\u3001\u8a66\u9a13\u306b\u306f\u51fa\u307e\u305b\u3093<\/strong>\u304c\u3001\u3088\u304f\u9593\u9055\u3048\u307e\u3059\u3002<\/p>\n<p>\u3042\u308f\u3066\u308b\u3068\u826f\u304f\u306a\u3044\u3067\u3059\u306d\u2026<\/p>\n<h3>\u305d\u3053\u3067\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u79d8\u5bc6\u9375\u53ca\u3073\u8a3c\u660e\u66f8\u3092\u4f5c\u3063\u3066\u3001\u554f\u984c\u3092\u89e3\u6c7a\u3057\u307e\u3059\u3002<\/h3>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u8aa4\u3063\u3066\u4f5c\u6210\u3057\u3066\u3057\u307e\u3063\u305f(\u672c\u6765\u306f)\u30b5\u30fc\u30d0\u7528\u306e\u79d8\u5bc6\u9375\u53ca\u3073\u8a3c\u660e\u66f8\u4e26\u3073\u306b\u95a2\u9023\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u7fa4\u3092\u6d88\u53bb\u3057\u3066\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u79d8\u5bc6\u9375\u53ca\u3073\u8a3c\u660e\u66f8\u3092\u4f5c\u6210\u3057\u3001\u554f\u984c\u3092\u89e3\u6c7a\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li><a href=\"https:\/\/amzn.to\/2VpGjV2\">OpenVPN<\/a>\u30b5\u30fc\u30d0\u5074\u3067\u8aa4\u3063\u3066\u4f5c\u6210\u3057\u3066\u3057\u307e\u3063\u305f(\u672c\u6765\u306f)\u30b5\u30fc\u30d0\u7528\u306e\u79d8\u5bc6\u9375\u53ca\u3073\u8a3c\u660e\u66f8\u4e26\u3073\u306b\u95a2\u9023\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u7fa4\u3092\u6d88\u53bb\u307e\u305f\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u7a7a\u306b\u3057\u307e\u3059\u3002\n<div class=\"code\">&#91;panda@pandanote.info easyrsa3&#93;\\$ cp \/dev\/null pki\/index.txt<br \/>\n&#91;panda@pandanote.info easyrsa3&#93;\\$ rm .\/pki\/private\/client.key<br \/>\n&#91;panda@pandanote.info easyrsa3&#93;&#36; rm .\/pki\/reqs\/client.req\n<\/div>\n<p>&nbsp;<\/li>\n<li><a href=\"https:\/\/amzn.to\/2VpGjV2\">OpenVPN<\/a>\u30b5\u30fc\u30d0\u5074\u306e\u4f5c\u696d\u7528\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u79d8\u5bc6\u9375\u53ca\u3073\u8a3c\u660e\u66f8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\n<div class=\"code\">&#91;panda@pandanote.info easyrsa3]&#36; sh .\/easyrsa build-client-full client nopass<br \/>\nGenerating a 2048 bit RSA private key<br \/>\n&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..+++<br \/>\n&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..+++<br \/>\nwriting new private key to &#8216;\/home\/panda\/openvpn\/easy-rsa-3.0.5\/easyrsa3\/pki\/private\/client.key.5hnIpxYUJs&#8217;<br \/>\n&#8212;&#8211;<br \/>\nUsing configuration from .\/openssl-easyrsa.cnf<br \/>\nEnter pass phrase for \/home\/panda\/openvpn\/easy-rsa-3.0.5\/easyrsa3\/pki\/private\/ca.key:<br \/>\nCheck that the request matches the signature<br \/>\nSignature ok<br \/>\nThe Subject&#8217;s Distinguished Name is as follows<br \/>\ncommonName            :ASN.1 12:&#8217;client&#8217;<br \/>\nCertificate is to be certified until May 15 11:02:46 2028 GMT (3650 days)<\/p>\n<p>Write out database with 1 new entries<br \/>\nData Base Updated\n<\/p><\/div>\n<p>&nbsp;<\/li>\n<li>\u4e0a\u8a18\u306e\u624b\u9806\u3067\u4f5c\u6210\u3057\u305f\u79d8\u5bc6\u9375\u53ca\u3073\u8a3c\u660e\u66f8\u3092<a href=\"https:\/\/amzn.to\/2VpGjV2\">OpenVPN<\/a>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\/etc\/openvpn\/client\u306e\u4e0b\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/li>\n<li><a href=\"https:\/\/amzn.to\/2VpGjV2\">OpenVPN<\/a>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067root\u6a29\u9650\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\n<div class=\"code\">[root@nuc panda]# systemctl start openvpn-client@client<\/div>\n<p>&nbsp;<\/li>\n<\/ol>\n<p>\u3053\u3053\u3067\u3001OpenVPN\u30b5\u30fc\u30d0\u5074\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb(\/var\/log\/openvpn.log)\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u2026<\/p>\n<div class=\"code\">xxx.yyy.zzz.ttt:40899 VERIFY OK: depth=1, CN=Easy-RSA CA<br \/>\nsss.ppp.qqq.rrr:40899 VERIFY OK: depth=0, CN=client<\/div>\n<p>&nbsp;<br \/>\n\u3046\u307e\u304f\u3044\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>ping\u30b3\u30de\u30f3\u30c9\u3082\u901a\u308a\u307e\u3059\u3002(\uff40\u30fb\u03c9\u30fb\u00b4)<\/p>\n<h2>\u30cf\u30de\u3063\u305f\u3068\u3053\u308d\u305d\u306e2: \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u8a2d\u5b9a\u3067\u30cf\u30de\u308b\u3002<\/h2>\n<p>\u524d\u9805\u3067\u66f8\u3044\u305f\u554f\u984c\u304c\u89e3\u6c7a\u3059\u308b\u3068\u3001OpenVPN\u30b5\u30fc\u30d0\u3068OpenVPN\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u9593\u306f\u4e0b\u56f3(\u30aa\u30ec\u30f3\u30b8\u8272\u306e\u77e2\u5370\u3092\u9664\u304f\u3002)\u306e\u3088\u3046\u306b\u63a5\u7d9a\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u306a\u304a\u3001OpenVPN\u306b\u95a2\u9023\u3057\u306a\u3044\u6a5f\u5668\u53ca\u3073\u63a5\u7d9a\u7b49\u306e\u60c5\u5831\u306b\u3064\u3044\u3066\u306f\u56f3\u304b\u3089(\u304b\u306a\u308a\u5927\u5e45\u306b)\u7701\u7565\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/pandanote.info\/?attachment_id=2053\" rel=\"attachment wp-att-2053\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/openvpn_chart.png\" alt=\"\" width=\"599\" height=\"252\" class=\"alignnone size-full wp-image-2053\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/openvpn_chart.png 599w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/05\/openvpn_chart-300x126.png 300w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><br \/>\n\u30aa\u30ec\u30f3\u30b8\u8272\u306e\u77e2\u5370\u90e8\u5206\u306fOpenVPN\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u3067(\u81ea\u5b85\u7528)DNS\u30b5\u30fc\u30d0\u3084Web\u30b5\u30fc\u30d0\u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u306e\u3067\u8ffd\u52a0\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u306a\u3068\u3053\u308d\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001(\u81ea\u5b85\u7528)DNS\u30b5\u30fc\u30d0\u3084Web\u30b5\u30fc\u30d0\u306eIP\u30a2\u30c9\u30ec\u30b9\u3068\u3057\u3066LAN\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9(wlp58s0)\u306b\u5272\u308a\u5f53\u3066\u3066\u3044\u308b\u3082\u306e\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3001tun\u306b\u3088\u308b\u30c8\u30f3\u30cd\u30eb\u304b\u3089\u51fa\u305f\u3068\u3053\u308d\u3067\u3001\u518d\u5ea6LAN\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3078\u30a2\u30af\u30bb\u30b9\u3092\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u3088\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u3068\u3053\u308d\u304c\u3001\u3053\u306e\u8a2d\u5b9a\u304c\u3067\u304d\u305a\u306b(\u672c\u6765\u5fc5\u8981\u306a\u3044\u306f\u305a\u306e)ip\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u3044\u308d\u3044\u308d\u3068\u8a2d\u5b9a\u3092\u3057\u3066\u307f\u3066\u3001\u601d\u3044\u901a\u308a\u306e\u52d5\u304d\u306b\u306a\u3089\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u4f5c\u696d\u30921\u65e5\u534a\u304f\u3089\u3044\u7e70\u308a\u8fd4\u3059\u3053\u3068\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u9014\u4e2d\u3067\u4f55\u3068\u306a\u304f\u300ciroute\u3063\u3066\u3044\u3046\u898b\u6163\u308c\u306a\u3044\u8a2d\u5b9a\u9805\u76ee\u304c\u3042\u308b\u306a\u3041\u3002\u300d\u3068\u306f\u601d\u3063\u3066\u3044\u305f\u3093\u3067\u3059\u3051\u3069\u306d\u2026 (\u00b4\u30fb\u03c9\u30fb\uff40)<\/p>\n<p>\u305d\u308c\u3067\u3001\u6700\u7d42\u7684\u306b\u306f<a href=\"https:\/\/www.openvpn.jp\/document\/how-to\/\">\u3053\u3053<\/a>\u3092\u898b\u76f4\u3057\u3066(\u3068\u3044\u3046\u3088\u308a\u306fGoogle\u5148\u751f\u306b\u304a\u4f3a\u3044\u3057\u305f\u7d50\u679c\u305f\u3069\u308a\u7740\u3044\u305f\u3093\u3067\u3059\u304c\u2026)\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u8a2d\u5b9a\u53ca\u3073\u518d\u8d77\u52d5\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u4e0a\u56f3\u306e\u30aa\u30ec\u30f3\u30b8\u8272\u306e\u77e2\u5370\u306e\u90e8\u5206\u306e\u8a2d\u5b9a\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<ol>\n<li>OpenVPN\u30b5\u30fc\u30d0\u5074\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb(\/etc\/openvpn\/server\/server.conf)\u306b\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059(\u307e\u305f\u306f\u3001\u30b3\u30e1\u30f3\u30c8\u306b\u306a\u3063\u3066\u3044\u308b\u8a2d\u5b9a\u3092\u30a2\u30f3\u30b3\u30e1\u30f3\u30c8\u3057\u3066\u7de8\u96c6\u3057\u307e\u3059\u3002)\u3002\u306a\u304a\u3001<br \/>\n2\u884c\u76ee\u306eroute\u306e192.168.xyz.0\u306e\u90e8\u5206\u306b\u306f\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044IP\u30a2\u30c9\u30ec\u30b9\u304c\u5c5e\u3059\u308b\u30b5\u30d6\u30cd\u30c3\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\">client-config-dir \/etc\/openvpn\/server\/ccd<br \/>\nroute 192.168.xyz.0 255.255.255.0<\/div>\n<p>&nbsp;<\/li>\n<li>\u624b\u98061\u306eclient-config-dir\u3067\u6307\u5b9a\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e0b\u306b\u3042\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u7528\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb(\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u540d\u3068\u540c\u4e00\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002)\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002\u306a\u304a\u3001<br \/>\n\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u3082\u30012\u884c\u76ee\u306eiroute\u306e192.168.xyz.0\u306e\u90e8\u5206\u306b\u306f\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044IP\u30a2\u30c9\u30ec\u30b9\u304c\u5c5e\u3059\u308b\u30b5\u30d6\u30cd\u30c3\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\">ifconfig-push 192.168.aaa.bbb 192.168.aaa.ccc<br \/>\niroute 192.168.xyz.0 255.255.255.0<\/div>\n<p>&nbsp;<\/li>\n<li>\nOpenVPN\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001openvpn\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\">[root@nuc panda]# systemctl start openvpn-client@client<\/div>\n<p>&nbsp;<\/li>\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u53ca\u3073\u30b5\u30fc\u30d0\u306e\u53cc\u65b9\u304b\u3089ping\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u8fd4\u3063\u3066\u304f\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\n<\/ol>\n<p>\u7d50\u5c40\u306e\u3068\u3053\u308d\u3001iroute\u306e\u8a2d\u5b9a\u3092\u6307\u5b9a\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u304c\u539f\u56e0\u3060\u3063\u305f\u3088\u3046\u3067\u3059\u2026<\/p>\n<h2>\u30cf\u30de\u3063\u305f\u3068\u3053\u308d\u305d\u306e3: \u8a3c\u660e\u66f8\u5931\u52b9\u30ea\u30b9\u30c8(CRL)\u306e\u671f\u9650\u5207\u308c\u3067\u30cf\u30de\u308b\u3002[2018\/11\/15,2020\/06\/23\u8ffd\u8a18]<\/h2>\n<p>\u305d\u3093\u306a\u3053\u3093\u306a\u3067\u3001OpenVPN\u3092\u4f7f\u3044\u59cb\u3081\u3066\u65e9\u304f\u3082\u534a\u5e74\u304c\u7d4c\u904e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>OpenVPN\u3067\u534a\u5e74\u904b\u7528\u3068\u304f\u308c\u3070\u3001\u30d4\u30f3\u3068\u3053\u306a\u3044\u65b9\u4ee5\u5916\u306f\u30d4\u30f3\u3068\u304f\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u306e\u307e\u307e\u3067\u4f5c\u6210\u3057\u305f\u8a3c\u660e\u66f8\u5931\u52b9\u30ea\u30b9\u30c8(CRL)\u304c\u671f\u9650\u5207\u308c\u3092\u8fce\u3048\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u5358\u7d14\u306bCRL\u3092\u4f5c\u308a\u76f4\u3057\u3066\u3082\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u305d\u3046\u3059\u308b\u3068\u534a\u5e74\u5f8c\u306b\u307e\u305f\u540c\u3058\u4f5c\u696d\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u6709\u52b9\u671f\u9650\u3082\u9577\u304f\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3067CRL\u3092\u518d\u4f5c\u6210\u3057\u3001\u30b5\u30fc\u30d0\u306b\u518d\u4f5c\u6210\u3057\u305f\u65e8\u3092\u53cd\u6620\u3055\u305b\u307e\u3057\u305f\u3002<\/p>\n<ol>\n<li>easyrsa\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb(vars)\u304c\u3042\u308b\u306e\u3067\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u9069\u5f53\u306a\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u304d\u3001\n<div class=\"code\">#set_var EASYRSA_CRL_DAYS 180<\/div>\n<p>&nbsp;<br \/>\n\u3068\u306a\u3063\u3066\u3044\u308b\u90e8\u5206\u3092\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002\u5b89\u5b9a\u306e\u304a\u3088\u305d10\u5e74\u4fdd\u8a3c\u3067\u3059\u3002(\uff40\u30fb\u03c9\u30fb\u00b4)<\/p>\n<div class=\"code\">set_var EASYRSA_CRL_DAYS 3650<\/div>\n<p>&nbsp;\n<\/li>\n<li>easyrsa\u304c\u5b9f\u884c\u53ef\u80fd\u306a\u30e6\u30fc\u30b6\u6a29\u9650\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\n<div class=\"code\">$ .\/easyrsa gen-crl<\/div>\n<p>&nbsp;\n<\/li>\n<li>root\u6a29\u9650\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u624b\u98061\u3067\u4f5c\u6210\u3057\u305fcrl.pem\u3092\/etc\/openvpn\/server\u306e\u4e0b\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\n<div class=\"code\"># cp pki\/crl.pem \/etc\/openvpn\/server\/<\/div>\n<p>&nbsp;\n<\/li>\n<li>root\u6a29\u9650\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001crl.pem\u306e\u5909\u66f4\u3092\u53cd\u6620\u3055\u305b\u307e\u3059\u3002\n<div class=\"code\"># systemctl restart openvpn-server@server<\/div>\n<p>&nbsp;\n<\/li>\n<\/ol>\n<h2>\u30cf\u30de\u3063\u305f\u3068\u3053\u308d\u305d\u306e4: OpenVPN\u306e\u305f\u3081\u306eSELinux\u30dd\u30ea\u30b7\u30fc\u3092\u5909\u66f4\u3059\u308b\u969b\u306b\u30dd\u30ea\u30b7\u30fc\u540d\u3092\u201dopenvpn\u201d\u306b\u3057\u305f\u305f\u3081\u306b\u30cf\u30de\u308b\u3002[2020\/06\/23\u8ffd\u8a18]<\/h2>\n<p><a href=\"https:\/\/sidestory.pandanote.info\/selinux_policy_for_openvpn_server_on_fedora32.html\">\u3053\u3061\u3089<\/a>(panda\u5927\u5b66\u7fd2\u5e33\u5916\u4f1d)\u306b\u66f8\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u5fa1\u7528\u3068\u304a\u6025\u304e\u3067\u306a\u3044\u65b9\u306f\u3054\u89a7\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u3053\u307e\u3067\u306e\u8a2d\u5b9a\u3067\u3001OpenVPN\u306b\u3088\u308b<a href=\"https:\/\/amzn.to\/34Civ4k\">VPN<\/a>\u304c\u3088\u3046\u3084\u304f\u4f7f\u3048\u308b\u30ec\u30d9\u30eb\u306b\u9054\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u3001PPTP\u306b\u3088\u308bVPN\u306f\u3082\u3046\u4f7f\u308f\u306a\u304f\u3066\u3082\u3088\u304f\u306a\u308a\u305d\u3046\u3067\u3059\u3002\u307e\u305f\u3001CRL\u306e\u6709\u52b9\u671f\u9650\u306b\u60a9\u307e\u3055\u308c\u308b\u3053\u3068\u3082\u5f53\u9762\u306e\u9593\u306a\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u6bce\u5ea6\u300c$n$\u9078\u300d\u3068\u3044\u3044\u306a\u304c\u3089$n=3$\u3067\u3042\u308b\u3053\u3068\u304c\u591a\u3044\u3093\u3067\u3059\u3051\u3069\u3001\u3053\u306e\u8a18\u4e8b\u306f\u6700\u521d\u306f$n=2$\u3067\u59cb\u307e\u3063\u3066\u9806\u8abf\u306b\u5897\u52a0\u3057\u3001$n=4$\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>Google\u5148\u751f\u306b\u805e\u3044\u3066\u307f\u305f\u611f\u3058\u3067\u306fLinux\u304cOpenVPN\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u306a\u308b\u4f8b\u304c\u3042\u307e\u308a\u591a\u304f\u306a\u304b\u3063\u305f\u3067\u3059\u304c\u3001\u9375\u306e\u751f\u6210\u306e\u3068\u3053\u308d\u304c\u30af\u30ea\u30a2\u3067\u304d\u3066\u3057\u307e\u3048\u3070\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u56fa\u6709\u3067\u304b\u3064\u5fc5\u9808\u306e\u8a2d\u5b9a\u9805\u76ee\u306f\u591a\u304f\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3054\u53c2\u8003\u306b\u3057\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u524d\u306e\u8a18\u4e8b\u3067OpenVPN\u306e\u8a2d\u5b9a\u624b\u9806\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3057\u305f\u3002 \u305f\u3060\u3001\u305d\u308c\u306f\u5e73\u5766\u306a\u9053\u306e\u308a\u3067\u306f\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u3053\u306e\u8a18\u4e8b\u3067\u30cf\u30de\u3063\u305f\u3068\u3053\u308d\u3092\u3044\u304f\u3064\u304b\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002\u5f8c\u534a\u306e\u65b9\u306e\u7bc0\u306f\u524d\u306e\u8a18\u4e8b\u3067\u306f\u89e6\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u3053\u3068\u304c\u6025\u306b\u767b\u5834\u3057\u307e\u3059\u304c\u3001\u7d30\u304b\u3044\u3053\u3068\u306f\u6c17\u306b\u3057\u306a\u3044\u3067\u304a\u8aad\u307f\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002\ud83d\ude47\u200d\u2642\ufe0f \u30cf\u30de\u3063\u305f\u3068\u3053\u308d\u305d\u306e1: \u305d\u3082\u305d\u3082\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u9375\u30da\u30a2\u306e\u3064\u3082\u308a\u304c\u8aa4\u3063\u3066\u30b5\u30fc\u30d0\u306e\u9375\u30da\u30a2\u3092\u4f5c\u3063\u3066\u3057\u307e\u3063\u305f\u3002 \u30af\u30e9\u30a4\u30a2\u30f3\u2026 <span class=\"read-more\"><a href=\"https:\/\/pandanote.info\/?p=2038\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":6357,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,18,16,42,15],"tags":[],"class_list":["post-2038","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fedora","category-nuc","category-n","category-openvpn","category-pc"],"_links":{"self":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/2038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2038"}],"version-history":[{"count":35,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/2038\/revisions"}],"predecessor-version":[{"id":9337,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/2038\/revisions\/9337"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/media\/6357"}],"wp:attachment":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}