{"id":731,"date":"2007-04-14T01:00:00","date_gmt":"2007-04-13T16:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2007-04-14-1.html"},"modified":"2007-04-14T01:00:00","modified_gmt":"2007-04-13T16:00:00","slug":"2007-04-14-1","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2007-04-14-1.html","title":{"rendered":"UDP Hole Punching \u306e\u5b9f\u9a13"},"content":{"rendered":"<p>\n\u4ee5\u524d\u304b\u3089\u6c17\u306b\u306a\u3063\u3066\u3044\u305f\u3001NAT \u3054\u3057\u306b UDP \u901a\u4fe1\u3092\u884c\u3046, UDP Hole Punching \u306e\u5b9f\u9a13\u3092 <a href=\"http:\/\/netcat.sourceforge.net\/\">NetCat<\/a>(ports: net\/netcat) \u3092\u4f7f\u3063\u3066\u884c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n&nbsp;<br \/>\n1. (A)\u30db\u30b9\u30c8\u5074\u7aef\u672b(Firewall \u306a\u3057), WAN IP \u30a2\u30c9\u30ec\u30b9: 10.0.1.2\n<\/p>\n<blockquote><p>nc -lup 1234 -v   # UDP \u306e 1234 \u756a\u3067 LISTEN\n<\/p><\/blockquote>\n<p>&nbsp;<br \/>\n2. (B)\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u7aef\u672b(\u30eb\u30fc\u30bf\u3042\u308a), \u7aef\u672b\u306e IP \u30a2\u30c9\u30ec\u30b9: 192.168.1.100, \u30eb\u30fc\u30bf\u306e WAN IP \u30a2\u30c9\u30ec\u30b9: 10.0.5.6\n<\/p>\n<blockquote><p>nc -u -p 5678 10.0.1.2 1234  # 10.0.1.2 \u306e UDP 1234 \u306b\u63a5\u7d9a\n<\/p><\/blockquote>\n<p>&nbsp;<br \/>\n3. (B) \u3067 Hello \u3092\u5165\u529b<br \/>\n&nbsp;<br \/>\n4. (A) \u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ed\u30b0\u304c\u51fa\u308b\n<\/p>\n<blockquote><p>connect to [10.0.1.2] from ********* [10.0.5.6] 50000<br \/>\nHello\n<\/p><\/blockquote>\n<p>(\u3053\u306e\u4f8b\u3067\u306f 10.0.5.6 \u306e UDP50000\u30dd\u30fc\u30c8\u304b\u3089\u306e\u9001\u4fe1\u304c\u3042\u3063\u305f\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074 NAT \u3067\u9001\u4fe1\u5143\u30dd\u30fc\u30c8\u304c\u66f8\u304d\u304b\u308f\u3063\u3066\u3044\u308b\u4e8b\u306b\u6ce8\u610f)<br \/>\n&nbsp;<br \/>\n5. (A), (B) \u4e21\u65b9\u3067 netcat \u3092\u4e00\u5ea6\u7d42\u4e86\u3055\u305b\u308b<br \/>\n&nbsp;<br \/>\n6. (B) \u3067, \u5148\u7a0b\u9001\u4fe1\u5143\u306b\u3057\u305f\u30dd\u30fc\u30c8\u306b\u5bfe\u3057\u3066 UDP \u53d7\u4fe1\u3092\u958b\u59cb\u3059\u308b(src port, dst port \u306e\u5165\u308c\u63db\u3048)\n<\/p>\n<blockquote><p>nc -lup 5678 -v\n<\/p><\/blockquote>\n<p>&nbsp;<br \/>\n7. (A) \u3067, \u5148\u7a0b LISTEN \u3057\u3066\u3044\u305f\u30dd\u30fc\u30c8\u304b\u3089\u3001(4) \u3067\u9001\u4fe1\u5143\u306b\u306a\u3063\u3066\u3044\u305f IP \u30a2\u30c9\u30ec\u30b9\u3001\u30dd\u30fc\u30c8\u306b\u5bfe\u3057\u3066\u63a5\u7d9a\u3092\u958b\u59cb\u3059\u308b\n<\/p>\n<blockquote><p>nc -u -p 1234 10.0.5.6 50000\n<\/p><\/blockquote>\n<p>&nbsp;<br \/>\n8. (A) \u304b\u3089 Hello over NAT \u3092\u9001\u4fe1<br \/>\n&nbsp;<br \/>\n9. (B) \u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u308b\n<\/p>\n<blockquote><p>connect to [192.168.1.100] from ********* [10.0.1.2] 1234<br \/>\nHello over NAT\n<\/p><\/blockquote>\n<p>&nbsp;<br \/>\n\u4e21\u65b9\u304c NAT \u5185\u306b\u3044\u308b\u5834\u5408\u3001\u53cc\u65b9\u306b\u3064\u3044\u3066 source port \u304c\u66f8\u304d\u304b\u308f\u308b\u305f\u3081\u3001(A),(B) \u304c\u901a\u4fe1\u3059\u308b\u3053\u3068\u304c\u4e0d\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306e\u5834\u5408\u3001\u53cc\u65b9\u306e source port \u3092\u8a18\u9332\u3059\u308b\u305f\u3081\u306e\u975e NAT \u5185\u30db\u30b9\u30c8\u7aef\u672b (C) \u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u305f\u3060\u3057\u3001\u53cc\u65b9\u304c Symmetric NAT \u5185\u306b\u3044\u308b\u5834\u5408\u306f\u3001\u5b9b\u5148\u306e\u30dd\u30fc\u30c8\u756a\u53f7\u306b\u5bfe\u3057\u3066\u9001\u4fe1\u5143\u306e IP \u30a2\u30c9\u30ec\u30b9\u3001\u30dd\u30fc\u30c8\u756a\u53f7\u304c\u56fa\u5b9a\u3055\u308c\u308b\u305f\u3081\u3053\u306e\u65b9\u6cd5\u3092\u7528\u3044\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n&nbsp;<br \/>\n\u53c2\u8003:<br \/>\n&#8211; <a href=\"http:\/\/homepage3.nifty.com\/toremoro\/p2p\/firewall.html\">P2P\u3068\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb<\/a><br \/>\n&#8211; <a href=\"http:\/\/goroneko.boo.jp\/tec\/archives\/000042.html\">\u3054\u308d\u732b\u30d6\u30ed\u30b0<\/a><br \/>\n&#8211; <a href=\"http:\/\/blog.mikage.to\/mika\/2004\/06\/udp_hole_punchi.html\">\u307f\u304b\u30ed\u30b0<\/a><br \/>\n&#8211; <a href=\"http:\/\/www.itmedia.co.jp\/enterprise\/articles\/0505\/30\/news070_3.html\">IT media \u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba:PART2 Skype, \u305d\u306e\u901a\u4fe1\u306e\u4ed5\u7d44\u307f<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u304b\u3089\u6c17\u306b\u306a\u3063\u3066\u3044\u305f\u3001NAT \u3054\u3057\u306b UDP \u901a\u4fe1\u3092\u884c\u3046, UDP Hole Punching \u306e\u5b9f\u9a13\u3092 NetCat(ports: net\/netcat) \u3092\u4f7f\u3063\u3066\u884c\u3063\u3066\u307f\u307e\u3057\u305f\u3002 &nbsp; 1. (A)\u30db\u30b9\u30c8\u5074 &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/2007-04-14-1.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">UDP Hole Punching \u306e\u5b9f\u9a13<\/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":[],"tags":[36],"class_list":["post-731","post","type-post","status-publish","format-standard","hentry","tag-network"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=731"}],"version-history":[{"count":0,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/731\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}