{"id":59,"date":"2023-02-09T00:00:00","date_gmt":"2023-02-08T15:00:00","guid":{"rendered":"https:\/\/hmhr.ath.cx\/?p=59"},"modified":"2025-09-22T04:38:28","modified_gmt":"2025-09-21T19:38:28","slug":"android%e3%81%a8vpn","status":"publish","type":"post","link":"https:\/\/hmhr.ath.cx\/?p=59","title":{"rendered":"Android\u3068VPN"},"content":{"rendered":"\n<p>Android\u3067VPN\u63a5\u7d9a\u3057\u3001\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3002<br>\u5f53\u521dPPTP\u3068\u3044\u3046\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4f7f\u7528\u3057\u305fVPN\u74b0\u5883\u6574\u5099\u304c\u697d\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u3001PPTP\u3092\u4f7f\u7528\u3057\u3066\u3044\u3053\u3046\u3068\u6301\u3063\u305f\u304c\u3001\u3053\u308c\u306f\u3069\u3046\u3082\u30af\u30e9\u30c3\u30af\u3055\u308c\u3066\u3044\u3066\u8106\u5f31\u6027\u304c\u3042\u308b\u3088\u3046\u3060\u3063\u305f\u3002<br>\u305d\u3053\u3067\u3001\u4eca\u56de\u306fIPSec\u3092\u4f7f\u7528\u3057\u305fVPN\u74b0\u5883\u306e\u69cb\u7bc9\u3092\u3057\u3066\u884c\u3053\u3046\u3068\u601d\u3046\u3002(IPSec\u306f\u4f7f\u3044\u307e\u305b\u3093\u3002\uff09<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u3057\u304b\u3057\u3001IPSec\u306b\u3064\u3044\u3066\u8abf\u3079\u308b\u3068\u3001\u4e0b\u306e\u3088\u3046\u306a\u8a18\u4e8b\u3092\u767a\u898b\u3057\u305f\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/mag.osdn.jp\/05\/10\/12\/0618209\" target=\"_blank\" rel=\"noreferrer noopener\">SSL VPN \u3068 OpenVPN\uff1a\u591a\u304f\u306e\u5618\u3068\u308f\u305a\u304b\u306a\u771f\u5b9f<\/a><\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3093\u3067\u3001\u3084\u3063\u3071\u308aIPSec\u3067\u306a\u304f\u3001OpenVPN\u3092\u4f7f\u7528\u3057\u3066\u3044\u304f\u3053\u3068\u3092\u6c7a\u65ad\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306fapt-get\u3067\u7279\u306b\u554f\u984c\u306a\u304f\u7d42\u4e86<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo apt-get update\nsudo apt-get install openvpn\n<\/pre><\/div>\n\n\n<p>OpenVPN\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001SSL\u306e\u9375\u304c\u5fc5\u8981\u306b\u306a\u308b\u306e\u3067\u4f5c\u6210\u3057\u3066\u3044\u304f\u3002<br>\u6700\u8fd1\u3067\u306f\u3001Let&#8217;s Encrypt\u3092\u4f7f\u7528\u3057\u3066SSL\u30ad\u30fc\u3092\u53d6\u5f97\u3059\u308b\u306e\u304c\u591a\u3044\u3088\u3046\u3060\u304c\u3001\u4eca\u56de\u306f\u81ea\u524d\u3067\u8a8d\u8a3c\u5c40\u3092\u7acb\u3061\u4e0a\u3052\u81ea\u524d\u3067\u7528\u610f\u3057\u3066\u307f\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8a8d\u8a3c\u5c40(CA)\u306e\u4f5c\u6210<\/h2>\n\n\n\n<p><strong>\/usr\/share\/doc\/openvpn\/examples\/easy-rsa\/2.0<\/strong><br>\u3053\u3053\u306b\u3001\u9375\u3092\u4f5c\u6210\u3059\u308b\u30b3\u30de\u30f3\u30c9\u30c4\u30fc\u30eb\u304c\u3042\u308b\u3002<br>vars\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3066\u8a2d\u5b9a\u3092\u884c\u3046\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nexport KEY_SIZE=2048\nexport KEY_COUNTRY=&quot;JP&quot;\nexport KEY_PROVINCE=&quot;\u770c&quot;\nexport KEY_CITY=&quot;\u5e02&quot;\nexport KEY_ORG=&quot;\u30db\u30b9\u30c8\u540d\u3068\u304b&quot;\nexport KEY_EMAIL=&quot;\u30e1\u30a2\u30c9&quot;\n#export KEY_EMAIL=mail@host.domain\n#export KEY_CN=changeme\n#export KEY_NAME=changeme\n#export KEY_OU=changeme\n#export PKCS11_MODULE_PATH=changeme\n#export PKCS11_PIN=1234\n<\/pre><\/div>\n\n\n<p>KEY_SIZE\u306f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5c11\u3057\u843d\u3061\u305d\u3046\u3060\u304c\u3001\u3088\u308a\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u305f\u3081\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u304b\u3089\u5909\u66f4\u3057\u30662048\u306b\u3057\u305f<br>\u4ed6\u306e\u9805\u76ee\u306f\u3001\u5730\u57df\u60c5\u5831\u3092\u3084\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\u3002\u5f8c\u534a\u306f\u3001\u307b\u3068\u3093\u3069\u3044\u3089\u306a\u3044\u306e\u3067\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsu -\nsource vars\n.\/clean-all\n.\/build-ca\n<\/pre><\/div>\n\n\n<p>build-ca\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u8272\u3005\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u308b\u304cvars\u3067\u3061\u3083\u3093\u3068\u8a2d\u5b9a\u3057\u3066\u304a\u3051\u3070\u3001\u5168\u3066Enter\u306e\u307f\u62bc\u3057\u3066\u304a\u3051\u3070OK\u3002<br>\u4eca\u5f8c\u3082Common Name\u3068\u3044\u3046\u8a2d\u5b9a\u3092\u3059\u308b\u5fc5\u8981\u304c\u51fa\u3066\u304f\u308b\u304c\u3001\u305d\u306e\u3068\u304d\u306f\u6bce\u5ea6\u9055\u3046\u540d\u524d\u3092\u6307\u5b9a\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<br>\u3053\u308c\u3067\u3001keys\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u8a8d\u8a3c\u5c40\u306e\u8a3c\u660e\u66f8\u3068\u3001\u9375\u304c\u4f5c\u6210\u3067\u304d\u305f\u3002<\/p>\n\n\n\n<p>ca.crt\uff1a\u8a8d\u8a3c\u5c40\u306e\u8a3c\u660e\u66f8<br>ca.key\uff1a\u8a8d\u8a3c\u5c40\u306e\u9375<\/p>\n\n\n\n<p>\u9577\u304f\u306a\u3063\u3066\u304d\u305f\u306e\u3067\u3001\u4eca\u56de\u306f\u3053\u308c\u3067\u7d42\u4e86\u3002<br><a href=\"https:\/\/hmhr.ath.cx\/?p=62\">\u6b21\u56de<\/a>\u306b\u3064\u3065\u304f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Android\u3067VPN\u63a5\u7d9a\u3057\u3001\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3002\u5f53\u521dPPTP\u3068\u3044\u3046\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4f7f\u7528\u3057\u305fVPN\u74b0\u5883\u6574\u5099\u304c\u697d\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u3001PPTP\u3092\u4f7f\u7528\u3057\u3066\u3044\u3053\u3046\u3068\u6301\u3063\u305f\u304c\u3001\u3053\u308c\u306f\u3069\u3046\u3082\u30af\u30e9\u30c3\u30af\u3055\u308c\u3066\u3044\u3066\u8106\u5f31\u6027\u304c\u3042\u308b\u3088\u3046\u3060\u3063 &hellip; <a href=\"https:\/\/hmhr.ath.cx\/?p=59\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Android\u3068VPN<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,4],"tags":[10],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-android","category-linux","tag-vpn"],"_links":{"self":[{"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=59"}],"version-history":[{"count":4,"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":142,"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=\/wp\/v2\/posts\/59\/revisions\/142"}],"wp:attachment":[{"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hmhr.ath.cx\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}