{"id":10957,"date":"2020-06-09T11:16:20","date_gmt":"2020-06-09T02:16:20","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=10957"},"modified":"2023-05-27T18:16:35","modified_gmt":"2023-05-27T09:16:35","slug":"%e3%80%90%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%80%91%e3%80%8c%e3%83%ab%e3%83%bc%e3%83%86%e3%82%a3%e3%83%b3%e3%82%b0%e3%80%8d%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=10957","title":{"rendered":"\u3010AWS\u3011VPC\u300c\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u300d\u3084\u300c\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u300d\u3001\u300cNAT\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u300d\u306b\u3064\u3044\u3066"},"content":{"rendered":"<h2>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u306f\uff1f<\/h2>\n<p>\u30eb\u30fc\u30bf\u30fc\u304c\u884c\u3046\u901a\u4fe1\u3092\u3069\u3053\u306b\u904b\u3076\u304b\u3092\u5236\u5fa1\u3059\u308b\u6a5f\u80fd\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<h2>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u4ed5\u7d44\u307f<\/h2>\n<p>\u30eb\u30fc\u30bf\u30fc\u306f\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u3068\u3044\u3046<span style=\"color: #ff0000;\"><strong>\u300c\u5b9b\u5148IP\u30a2\u30c9\u30ec\u30b9\u300d<\/strong><\/span>\u3068<span style=\"color: #ff0000;\"><strong>\u300c\u5b9b\u5148\u30eb\u30fc\u30bf\u30fc\u540d\u300d<\/strong><\/span>\u3092\u4fdd\u6301\u3057\u3066\u3044\u308b\u30c6\u30fc\u30d6\u30eb\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb<\/h2>\n<p>AWS\u306e\u5834\u5408\u306fVPC\u3068\u5404\u30b5\u30d6\u30cd\u30c3\u30c8\u306b\u5bfe\u3057\u3066\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u305f\u3089\u5404\u30b5\u30d6\u30cd\u30c3\u30c8\u3054\u3068\u306b\u7d10\u3065\u3051\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<span style=\"color: #ff0000;\"><strong>\u30b5\u30d6\u30cd\u30c3\u30c8\u304b\u3089\u5916\u306b\u51fa\u308b\u901a\u4fe1\u3092\u3069\u3053\u306b\u3080\u3051\u3066\u767a\u4fe1\u3059\u308b\u304b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd<\/strong><\/span>\u3067\u3059\u3002\u30eb\u30fc\u30c8\u3068\u547c\u3070\u308c\u308b\u30eb\u30fc\u30eb\u3067\u69cb\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u306e\u7279\u5fb4<\/h3>\n<h4>\u6700\u3082\u660e\u78ba\u306a\u30eb\u30fc\u30eb\u304c\u512a\u5148\u3057\u3066\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/h4>\n<p>\u6700\u3082\u72ed\u3044IP\u30a2\u30c9\u30ec\u30b9\u306e\u7bc4\u56f2\u306e\u30eb\u30fc\u30eb\u304c\u512a\u5148\u3057\u3066\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u304c\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u305f\u5834\u5408\u306f\u3001\u5b9b\u5148\u304c10.0.0.0\/16\u306b\u8a72\u5f53\u3059\u308b\u30d1\u30b1\u30c3\u30c8\u306e\u5834\u5408\u306fVPC\u5185\u306b\u8ee2\u9001\u3055\u308c\u307e\u3059\u3057\u3001\u305d\u308c\u306b\u5f53\u3066\u306f\u307e\u3089\u306a\u3044\u901a\u4fe1\u306e\u5834\u5408\u306f\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u8ee2\u9001\u3055\u308c\u307e\u3059\u3002<span style=\"color: #ff0000;\"><strong>\u4e0b\u306e\u30eb\u30fc\u30eb\u306f\u5168\u3066\u306eIP\u30a2\u30c9\u30ec\u30b9\u306b\u8a72\u5f53\u3057\u307e\u3059\u304c\u3001\u4e0a\u306e\u30eb\u30fc\u30eb\u306e\u65b9\u304c\u660e\u78ba\u306a\u306e\u3067\u4e0a\u306e\u7bc4\u56f2\u306b\u8a72\u5f53\u3059\u308b\u5b9b\u5148\u30d1\u30b1\u30c3\u30c8\u306f\u4e0a\u304c\u512a\u5148\u3057\u3066\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/strong><\/span><\/p>\n<table>\n<tbody>\n<tr>\n<th>\u9001\u4fe1\u5148(\u5b9b\u5148IP)<\/th>\n<th>\u30bf\u30fc\u30b2\u30c3\u30c8<\/th>\n<\/tr>\n<tr>\n<td>10.0.0.0\/16<\/td>\n<td>local<\/td>\n<\/tr>\n<tr>\n<td>0.0.0.0\/0<\/td>\n<td>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8(\u300c\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u300d\u3084NAT\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u7b49)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u9001\u4fe1\u5148\uff08\u5b9b\u5148IP\uff09<\/h3>\n<h4>0.0.0.0\/0<\/h4>\n<p><span style=\"color: #ff0000;\"><strong>\u30c7\u30d5\u30a9\u30eb\u30c8\u30eb\u30fc\u30c8<\/strong><\/span>\u3092\u6307\u3057\u3001\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u3069\u306e\u5b9b\u5148IP\u30a2\u30c9\u30ec\u30b9\u306b\u3082\u5408\u81f4\u3057\u306a\u3044\u5834\u5408\u306e\u7d4c\u8def\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u5b9b\u5148\u30eb\u30fc\u30bf\u30fc(AWS\u3067\u8a00\u3048\u3070\u300c\u30bf\u30fc\u30b2\u30c3\u30c8\u300d)<\/h3>\n<h4>local<\/h4>\n<p><span style=\"color: #ff0000;\"><strong>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u4e00\u3064\u6c7a\u307e\u3063\u3066\u304a\u308a\u524a\u9664\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/strong><\/span>VPC\u306e\u5185\u90e8\u3092\u6307\u3057\u3066\u3044\u3066VPC\u5185\u306e\u5168\u3066\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u6307\u3057\u3066\u3044\u307e\u3059\u3002\u8981\u306f<span style=\"color: #ff0000;\"><strong>\u540c\u3058VPC\u5185\u306e\u901a\u4fe1\u3060\u3063\u305f\u3089\u81ea\u7531\u306b\u884c\u304d\u6765\u304c\u3067\u304d\u307e\u3059\u3088<\/strong><\/span>\u3068\u3044\u3046\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u300c\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u300d\u3068\u300cNAT\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u300d\u306e\u6982\u8981\u56f3<\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-12515\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-12-28-10.43.10-1024x412.png\" alt=\"\" width=\"1024\" height=\"412\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-12-28-10.43.10-1024x412.png 1024w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-12-28-10.43.10-300x121.png 300w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-12-28-10.43.10-768x309.png 768w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-12-28-10.43.10.png 1346w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h2>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4(AWS)<\/h2>\n<p>VPC\u5185\u306e\u30ea\u30bd\u30fc\u30b9\u3068\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u3092\u3064\u306a\u3052\u308b\u4eee\u60f3\u30eb\u30fc\u30bf\u30fc\u3067\u3059\u3002\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u3092\u4f5c\u6210\u3057\u305f\u3089VPC\u306b\u30a2\u30bf\u30c3\u30c1\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u30d1\u30d6\u30ea\u30c3\u30af\u30b5\u30d6\u30cd\u30c3\u30c8\u306e\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u3092\u8a2d\u5b9a\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u306e\u7279\u5fb4<\/h3>\n<p>\u30a2\u30af\u30bb\u30b9\u6570\u304c\u9ad8\u307e\u3063\u305f\u3068\u3057\u3066\u3082\u3001AWS\u304c\u81ea\u52d5\u3067\u30b9\u30b1\u30fc\u30eb\u3057\u3066\u304f\u308c\u308b\u305f\u3081\u53ef\u7528\u6027\u304c\u9ad8\u3044\u3067\u3059\u3002<\/p>\n<h2>NAT\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4<\/h2>\n<p><span style=\"color: #ff0000;\"><strong>\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30b5\u30d6\u30cd\u30c3\u30c8\u304b\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u3092\u53ef\u80fd<\/strong><\/span>\u306b\u3067\u304d\u307e\u3059\u3002\u30a2\u30a6\u30c8\u30d0\u30a6\u30f3\u30c9\u3078\u306f\u3044\u3051\u308b\u304c\u30a4\u30f3\u30d0\u30a6\u30f3\u30c9\u3078\u306e\u901a\u4fe1\u304c\u3067\u304d\u306a\u3044\u3067\u3059\u3002\u3053\u3061\u3089\u3082\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u3068\u540c\u69d8\u306b\u81ea\u52d5\u3067\u30b9\u30b1\u30fc\u30eb\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u9ad8\u3044\u53ef\u7528\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30b5\u30d6\u30cd\u30c3\u30c8\u306b\u914d\u7f6e\u3057\u3066\u3042\u308bEC2\u30b5\u30fc\u30d0\u3078\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u306b\u306f<\/h3>\n<p>\u4e00\u65e6\u3001\u30d1\u30d6\u30ea\u30c3\u30af\u30b5\u30d6\u30cd\u30c3\u30c8\u306b\u3042\u308b\u30b5\u30fc\u30d0\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304b\u3089NAT\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u3092\u4ecb\u3057\u3066\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30b5\u30d6\u30cd\u30c3\u30c8\u5185\u306b\u3042\u308b\u30b5\u30fc\u30d0\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u3044\u3046\u8e0f\u307f\u53f0\u30b5\u30fc\u30d0\u30fc\u7d4c\u7531\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u306f\uff1f \u30eb\u30fc\u30bf\u30fc\u304c\u884c\u3046\u901a\u4fe1\u3092\u3069\u3053\u306b\u904b\u3076\u304b\u3092\u5236\u5fa1\u3059\u308b\u6a5f\u80fd\u306e\u3053\u3068\u3067\u3059\u3002 \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u4ed5\u7d44\u307f \u30eb\u30fc\u30bf\u30fc\u306f\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u3068\u3044\u3046\u300c\u5b9b\u5148IP\u30a2\u30c9\u30ec\u30b9\u300d\u3068\u300c\u5b9b\u5148\u30eb\u30fc\u30bf\u30fc\u540d\u300d\u3092\u4fdd\u6301\u3057\u3066\u3044\u308b\u30c6\u30fc\u30d6\u30eb\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002 \u30eb\u30fc\u30c8\u30c6 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[80,89],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/10957"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10957"}],"version-history":[{"count":14,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/10957\/revisions"}],"predecessor-version":[{"id":20117,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/10957\/revisions\/20117"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10957"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}