{"id":4037,"date":"2017-04-17T13:02:17","date_gmt":"2017-04-17T04:02:17","guid":{"rendered":"https:\/\/www.syuheiuda.com\/?p=4037"},"modified":"2017-04-17T13:02:17","modified_gmt":"2017-04-17T04:02:17","slug":"test-azurermtraffic-%e3%82%92%e5%85%ac%e9%96%8b%e3%81%97%e3%81%be%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.syuheiuda.com\/?p=4037","title":{"rendered":"Test-AzureRmTraffic \u3092\u516c\u958b\u3057\u307e\u3057\u305f"},"content":{"rendered":"<p>Azure \u306e\u4fbf\u5229\u30c4\u30fc\u30eb\u3092\u307e\u305f\u4e00\u3064\u516c\u958b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a id=\"user-content-test-azurermtraffic\" class=\"anchor\" href=\"https:\/\/github.com\/ShuheiUda\/test-azurermtraffic#test-azurermtraffic\"><\/a>Test-AzureRmTraffic<br \/>\n<a href=\"https:\/\/github.com\/ShuheiUda\/test-azurermtraffic\">https:\/\/github.com\/ShuheiUda\/test-azurermtraffic<\/a><\/p>\n<p>NSG \u3067\u901a\u4fe1\u3092\u7d5e\u3063\u305f\u3068\u304d\u306b\u3001\u76ee\u8996\u3067\u500b\u3005\u306e\u30eb\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u8a31\u53ef\u30fb\u62d2\u5426\u5224\u65ad\u3059\u308b\u306e\u306f\u975e\u52b9\u7387\u306a\u306e\u3067\u3001EffectiveNSG \u3092\u30d9\u30fc\u30b9\u306b &#8220;NSG \u306e\u8a2d\u5b9a\u4e0a&#8221; \u3069\u3046\u5224\u65ad\u3055\u308c\u308b\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304f\u308c\u308b\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b7\u30ca\u30ea\u30aa\u306e\u8abf\u67fb\u3067\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044<\/p>\n<ul>\n<li>NSG \u3067\u901a\u4fe1\u3092\u7d5e\u3063\u305f\u7d50\u679c\u3001\u8a31\u53ef\u3057\u305f\u3064\u3082\u308a\u306e\u901a\u4fe1\u304c\u901a\u3089\u306a\u3044<\/li>\n<li>\u901a\u4fe1\u4e0d\u53ef\u306e\u539f\u56e0\u304c NSG \u306a\u306e\u304b\u3001VM \u5185\u306e\u554f\u984c\u304b\u3092\u5207\u308a\u5206\u3051\u305f\u3044<\/li>\n<\/ul>\n<h3>\u4f7f\u7528\u4f8b<\/h3>\n<pre>PS&gt; .\\Test-AzureRmTraffic.ps1 -VMName shudaVM -SourceIPv4Address 192.168.0.4 -SourcePort 80 -DestinationIPv4Address 10.0.0.5 -DestinationPort 80 -Protocol TCP -Direction Inbound\r\n\r\n(\u8a31\u53ef\u306e\u5834\u5408)\r\n<span style=\"color: #339966;\">Access : Allow<\/span>\r\n<span style=\"color: #339966;\">Priority : 65000<\/span>\r\n<span style=\"color: #339966;\">Name : defaultSecurityRules\/AllowVnetInBound<\/span>\r\n<span style=\"color: #339966;\">Protocol : All<\/span>\r\n<span style=\"color: #339966;\">SourceAddressPrefix : VirtualNetwork<\/span>\r\n<span style=\"color: #339966;\">SourcePortRange : 0-65535<\/span>\r\n<span style=\"color: #339966;\">DestinationAddressPrefix : VirtualNetwork<\/span>\r\n<span style=\"color: #339966;\">DestinationPortRange : 0-65535<\/span>\r\n<span style=\"color: #339966;\">Direction : Inbound<\/span>\r\n\r\n(\u62d2\u5426\u306e\u5834\u5408)\r\n<span style=\"color: #ff0000;\">Access : Deny<\/span>\r\n<span style=\"color: #ff0000;\">Priority : 65500<\/span>\r\n<span style=\"color: #ff0000;\">Name : defaultSecurityRules\/DenyAllInBound<\/span>\r\n<span style=\"color: #ff0000;\">Protocol : All<\/span>\r\n<span style=\"color: #ff0000;\">SourceAddressPrefix : 0.0.0.0\/0<\/span>\r\n<span style=\"color: #ff0000;\">SourcePortRange : 0-65535<\/span>\r\n<span style=\"color: #ff0000;\">DestinationAddressPrefix : 0.0.0.0\/0<\/span>\r\n<span style=\"color: #ff0000;\">DestinationPortRange : 0-65535<\/span>\r\n<span style=\"color: #ff0000;\">Direction : Inbound<\/span><\/pre>\n<p>\u306a\u304a\u3001\u5b9f\u969b\u306b\u30d1\u30b1\u30c3\u30c8\u3092\u6295\u3052\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3001NSG \u4e0a\u306f\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u306e\u306b\u5b9f\u969b\u306b\u306f\u901a\u4fe1\u304c\u3067\u304d\u306a\u3044\u3068\u3044\u3063\u305f\u5834\u5408\u306f\u3001OS \u5185\u306e Firewall \u306a\u308a\u3001\u30aa\u30f3\u30d7\u30ec\u306e Proxy, Firewall \u306a\u3069 NSG \u4ee5\u5916\u306e\u8981\u56e0\u3092\u7591\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u30d0\u30b0\u3084\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u306f\u30b3\u30e1\u30f3\u30c8\u6b04\u306b\u3069\u3046\u305e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Azure \u306e\u4fbf\u5229\u30c4\u30fc\u30eb\u3092\u307e\u305f\u4e00\u3064\u516c\u958b\u3057\u307e\u3057\u305f\u3002 Test-AzureRmTra&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.syuheiuda.com\/?p=4037\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_locale":"","_original_post":""},"categories":[39,31],"tags":[],"views":4701,"_links":{"self":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/4037"}],"collection":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4037"}],"version-history":[{"count":4,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/4037\/revisions"}],"predecessor-version":[{"id":4041,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/4037\/revisions\/4041"}],"wp:attachment":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}