{"id":4787,"date":"2021-06-27T22:05:10","date_gmt":"2021-06-27T13:05:10","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=4787"},"modified":"2023-06-25T10:04:56","modified_gmt":"2023-06-25T01:04:56","slug":"openvpn%e3%81%a7%e5%9b%ba%e5%ae%9a%e3%81%aeip%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%82%92%e5%89%b2%e3%82%8a%e5%bd%93%e3%81%a6%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/4787","title":{"rendered":"OpenVPN\u3067\u56fa\u5b9a\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u5272\u308a\u5f53\u3066\u308b\uff01\uff08Ubuntu 20.04\uff09"},"content":{"rendered":"<p>OpenVPN\u3067\u56fa\u5b9a\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u5272\u308a\u5f53\u3066\u307e\u3059\uff01<\/p>\n<h2>OpenVPN\u30b5\u30fc\u30d0\u306eserver.conf\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\uff01<\/h2>\n<p>OpenVPN\u30b5\u30fc\u30d0\u306eserver.conf\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# vi \/etc\/openvpn\/server.conf\r\n...\r\nclient-config-dir ccd\r\n<\/pre>\n<h2>OpenVPN\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u5272\u308a\u5f53\u3066\u308bIP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\uff01<\/h2>\n<p>OpenVPN\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u5272\u308a\u5f53\u3066\u308bIP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u307e\u305a\u3001server.conf\u306b\u6307\u5b9a\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# mkdir \/etc\/openvpn\/ccd\r\n<\/pre>\n<p>VPN\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3054\u3068\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u8a3c\u660e\u66f8\u3092\u4f5c\u6210\u3057\u305f\u3068\u304d\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8b58\u5225\u540d\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u30dd\u30a4\u30f3\u30c8\u306f\u30014IP\u96e2\u3057\u306a\u304c\u3089\u5272\u308a\u5f53\u3066\u307e\u3059\u30020\u301c3\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u6b21\u306e4\u500b\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u30014\u30687\u306f\u4f7f\u7528\u3067\u304d\u305a\u30015\u304c\u30b5\u30fc\u30d0\u7528\u30676\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u7528\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u6b21\u306e8\u301c11\u3092\u4f7f\u7528\u3059\u308b\u4f8b\u306b\u306a\u308a\u307e\u3059\u300210\u304c\u30b5\u30fc\u30d0\u7528\u3067\u30019\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u7528\u3067\u3059\u3002OpenVPN\u3067\u306f\u3001\u30b5\u30fc\u30d0\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067P2P\u63a5\u7d9a\u3059\u308b\u305f\u3081\u3001\u3053\u306e\u3088\u3046\u306a\u5272\u308a\u5f53\u3066\u65b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# vi \/etc\/openvpn\/ccd\/client1\r\nifconfig-push 10.8.0.10 10.8.0.9\r\n<\/pre>\n<h2>OpenVPN\u30b5\u30fc\u30d0\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\uff01<\/h2>\n<p>OpenVPN\u30b5\u30fc\u30d0\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002\u3059\u308b\u3068\u3001\u63a5\u7d9a\u4e2d\u306eOpenVPN\u306b\u3064\u3044\u3066\u3082\u56fa\u5b9a\u3067\u5272\u308a\u5f53\u3066\u305fIP\u30a2\u30c9\u30ec\u30b9\u306b\u5909\u66f4\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# systemctl restart openvpn@server\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>OpenVPN\u3067\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eIP\u3092\u56fa\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001IP\u306e\u5272\u308a\u5f53\u3066\u65b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/6816\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011OpenVPN\u3067VPN\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2018\/06\/fia0000001-150x150.gif\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011OpenVPN\u3067VPN\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\uff01<\/div><div class=\"substr\">OpenVPN\u3067VPN\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u8a18\u4e8b\u306e\u4e00\u89a7\u3067\u3059\u3002 OpenVPN\u66f8\u7c4d\uff08Amazon\uff09 ...<\/div><\/a><\/div>\n<h2>OpenVPN\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><iframe sandbox=\"allow-popups allow-scripts allow-modals allow-forms allow-same-origin\" style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=infotecr-22&language=ja_JP&o=9&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=4899771673&linkId=81f9358628f49b3a4b9cb064ea4bc5fe\"><\/iframe><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenVPN\u3067\u56fa\u5b9a\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u5272\u308a\u5f53\u3066\u307e\u3059\uff01 OpenVPN\u30b5\u30fc\u30d0\u306eserver.conf\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\uff01 OpenVPN\u30b5\u30fc\u30d0\u306eserver.conf\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\u3002 # vi \/etc\/openvpn\/server.conf\u2026<\/p>\n","protected":false},"author":1,"featured_media":642,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[138],"tags":[609,51,610],"class_list":["post-4787","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-openvpn","tag-openvpn","tag-ubuntu","tag-vpn"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/4787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=4787"}],"version-history":[{"count":1,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/4787\/revisions"}],"predecessor-version":[{"id":12597,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/4787\/revisions\/12597"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/642"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=4787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=4787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=4787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}