{"id":2130,"date":"2013-09-01T18:07:11","date_gmt":"2013-09-01T09:07:11","guid":{"rendered":"http:\/\/www.nkozawa.com\/blog\/?p=2130"},"modified":"2013-09-01T18:07:11","modified_gmt":"2013-09-01T09:07:11","slug":"l2tpipsec%e3%82%92vps%e3%81%ab%e5%b0%8e%e5%85%a5%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.nkozawa.com\/blog\/archives\/2130","title":{"rendered":"L2TP\/IPSec\u3092VPS\u306b\u5c0e\u5165\u3057\u3066\u307f\u305f"},"content":{"rendered":"<p>\u30d1\u30d6\u30ea\u30c3\u30af\u306a\u7121\u7ddaLAN\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u6642\u306b\u3061\u3087\u3063\u3068\u3060\u3051\u30bb\u30ad\u30e5\u30a2\u306a\u63a5\u7d9a\u304c\u6b32\u3057\u3044\u3002\u3042\u308b\u3044\u306f\u3001\u79c1\u306e\u3088\u3046\u306b\u7279\u6b8a\u306a\u74b0\u5883\u4e0b\u3067\u5236\u9650\u306e\u7121\u3044\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u63a5\u7d9a\u304c\u3057\u305f\u3044\u5834\u5408VPN\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4e16\u9593\u306b\u306f\u3001\u305d\u3046\u3044\u3063\u305f\u76ee\u7684\u306e\u305f\u3081\u306e\u683c\u5b89\u306aVPN\u30b5\u30fc\u30d3\u30b9\u304c\u6ca2\u5c71\u3042\u308a\u307e\u3059\u3002\u4e00\u822c\u7684\u306b\u306f\u305d\u308c\u3089\u3092\u5951\u7d04\u3057\u3066\u304a\u3051\u3070\u4e8b\u8db3\u308a\u307e\u3059\u3002\u3053\u306e\u8fba\u308a\u306e\u4e8b\u60c5\u306f<a href=\"http:\/\/xiaolongchakan.com\/archives\/cat_14449.html\">\u5c0f\u9f8d\u8336\u9928<\/a>\u304c\u8a73\u3057\u3044\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u5fa1\u89a7\u304f\u3060\u3055\u3044\u3002\u5404\u7a2e\u30b5\u30fc\u30d3\u30b9\u306e\u5272\u5f15\u3082\u53d7\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u79c1\u3082\u6709\u6599\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3059\u308b\u4e00\u65b9\u3067\u81ea\u5206\u3067\u501f\u308a\u3066\u3044\u308bVPS\u4e0a\u306b\u4e88\u5099\u3042\u308b\u3044\u306f\u74b0\u5883\u306b\u3088\u3063\u3066\u4f7f\u3044\u5206\u3051\u308b\u305f\u3081\u306bVPN\u3092\u8a2d\u5b9a\u3057\u3066\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u8a2d\u5b9a\u4e8b\u4f8b\u306f\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u6ca2\u5c71\u898b\u3064\u304b\u308a\u307e\u3059\u3002\u305d\u308c\u3089\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u3046\u307e\u304f\u884c\u3063\u305f\u4e8b\u4f8b\u3092\u7d39\u4ecb\u3044\u3057\u305f\u307e\u3059\u3002<\/p>\n<p>&#8211; L2TP\/IPSec\u3092\u4f7f\u7528\u3059\u308b(iOS\u3067\u7c21\u5358\u306b\u4f7f\u7528\u3067\u304d\u308b\u305f\u3081)<br \/>\n&#8211; IPSec\u306b\u306fipsec-tools\u3092\u4f7f\u7528\u3059\u308b\u3002(\u6700\u521dOpenswan\u3092\u4f7f\u7528\u3057\u305f\u3089Android\u3068iOS\u3067\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u3002iOS\u306f\u8a2d\u5b9a\u3067\u56de\u907f\u51fa\u6765\u305f\u3088\u3046\u3067\u306f\u3042\u308b)<br \/>\n&#8211; VPS\u4e0a\u306eOS\u306fCentOS 6.4 x86_64\u3092\u4f7f\u7528<br \/>\n&#8211; IPv4\u306e\u307f\u306b\u5bfe\u5fdc<\/p>\n<p>\u8a2d\u5b9a\u306f\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u898b\u3064\u304b\u3063\u305f\u3082\u306e\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u3060\u3051\u3067\u3059\u3002\u53c2\u8003\u306b\u3057\u305fURL\u3092\u793a\u3057\u3001\u79c1\u306e\u5909\u66f4\u70b9\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li>L2TP\/IPSec\u306e\u8a2d\u5b9a\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u5fe0\u5b9f\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/wiki.nikoforge.org\/L2TP\/IPSec_VPN_Setup_on_Centos_6_(64-bit)_for_use_with_Android_ICS_and_iOS_5_Clients\">L2TP\/IPSec VPN Setup on Centos 6 (64-bit) for use with Android ICS and iOS 5 Clients<br \/>\n<\/a>\u5909\u66f4\u3059\u308b\u306e\u306fIP Address\u3068PSK,\u30e6\u30fc\u30b6\u30fc\u95a2\u9023\u306e\u8a2d\u5b9a\u3060\u3051\u3067\u3059\u3002<br \/>\n&#8211; \/etc\/racoon\/psk.txt \u306f\u5168\u304f\u4efb\u610f\u306a\u3082\u306e\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n&#8211; \/etc\/xl2tpd\/xl2tpd.conf\u306elocal ip\u3068ip range\u306f\u7aef\u672b\u3068\u30b5\u30fc\u30d0\u30fc\u304cPPP\u63a5\u7d9a\u3055\u308c\u305f\u6642\u306b\u4f7f\u7528\u3055\u308c\u308bIP Address\u3067\u3059\u3002\u7aef\u672b\u3067\u4ed6\u306e\u30ed\u30fc\u30ab\u30ebIP Address\u3068\u91cd\u306a\u3089\u306a\u3044\u65b9\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n&#8211; \/etc\/ppp\/options.xl2tpd\u306eDNS\u306f\u30b5\u30fc\u30d0\u30fc\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u3082\u306e\u3042\u308b\u3044\u306f8.8.8.8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u3068NAT\u306e\u8a2d\u5b9a\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n<a href=\"https:\/\/gist.github.com\/CLCL\/5742738\">CentOS 6\u3067\u3068\u306b\u304b\u304fL2TP\/IPsec\u30b5\u30fc\u30d0<\/a><br \/>\n\u3053\u308c\u306e \/etc\/sysconfig\/iptables \u306e\u8a2d\u5b9a\u4f8b\u3092\u307e\u308b\u307e\u308b\u5229\u7528\u3057\u307e\u3057\u305f\u3002\u5909\u66f4\u7b87\u6240\u306f-A POSTRUTING\u3067\u6307\u5b9a\u3059\u308bIP Address\u3092l2tpd.conf\u306eip range\u306b\u5408\u308f\u305b\u308b\u3060\u3051\u3067\u3059\u3002<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u3067Mac OS X, iOS\u30c7\u30d0\u30a4\u30b9,Android\u30c7\u30d0\u30a4\u30b9\u304b\u3089VPN\u63a5\u7d9a\u53ef\u80fd\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d1\u30d6\u30ea\u30c3\u30af\u306a\u7121\u7ddaLAN\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u6642\u306b\u3061\u3087\u3063\u3068\u3060\u3051\u30bb\u30ad\u30e5\u30a2\u306a\u63a5\u7d9a\u304c\u6b32\u3057\u3044\u3002\u3042\u308b\u3044\u306f\u3001\u79c1\u306e\u3088\u3046\u306b\u7279\u6b8a\u306a\u74b0\u5883\u4e0b\u3067\u5236\u9650\u306e\u7121\u3044\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u63a5\u7d9a\u304c\u3057\u305f\u3044\u5834\u5408VPN\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4e16\u9593\u306b\u306f\u3001\u305d\u3046\u3044\u3063\u305f\u76ee\u7684\u306e\u305f\u3081\u306e\u683c\u5b89\u306aVPN\u30b5\u30fc\u30d3 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-2130","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/2130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/comments?post=2130"}],"version-history":[{"count":2,"href":"https:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/2130\/revisions"}],"predecessor-version":[{"id":2132,"href":"https:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/2130\/revisions\/2132"}],"wp:attachment":[{"href":"https:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/media?parent=2130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/categories?post=2130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/tags?post=2130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}