{"id":1732,"date":"2017-12-08T08:16:13","date_gmt":"2017-12-07T23:16:13","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=1732"},"modified":"2017-12-08T08:17:44","modified_gmt":"2017-12-07T23:17:44","slug":"i-attempted-to-try-pitunnel-a-service-publishing-service-for-raspberrypi","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2017\/12\/08\/i-attempted-to-try-pitunnel-a-service-publishing-service-for-raspberrypi\/","title":{"rendered":"RaspberryPi\u5411\u3051\u306e\u30b5\u30fc\u30d3\u30b9\u516c\u958b\u30b5\u30fc\u30d3\u30b9PiTunnel\u3092\u8a66\u305d\u3046\u3068\u3057\u305f"},"content":{"rendered":"<p>PiTunnel\u3092\u3061\u3087\u3063\u3068\u8a66\u305d\u3046\u3068\u3059\u308b\uff0e<br \/>\nRaspberry Pi\u5411\u3051\u306engrok\u7684\u306a\u3082\u306e\u306e\u3088\u3046\uff0e\u5bb6\u5ead\u5185\u306eLAN\u5185\u306eRaspberry Pi\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u5916\u90e8\u306b\u516c\u958b\u3057\u3088\u3046\u3068\u601d\u3046\u3068\u30eb\u30fc\u30bf\u30fc\u306e\u30dd\u30fc\u30c8\u3092\u958b\u3051\u305f\u308aDDNS\u8a2d\u5b9a\u3057\u305f\u308a\u3068\u3061\u3087\u3063\u3068\u9762\u5012\uff0e\u3053\u308c\u3092\u304a\u624b\u8efd\u306b\u516c\u958b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u30b5\u30fc\u30d3\u30b9\uff0e<\/p>\n<ul>\n<li><a href=\"https:\/\/pitunnel.com\/\" title=\"PiTunnel - Access your Raspberry Pi projects from anywhere\">PiTunnel &#8211; Access your Raspberry Pi projects from anywhere<\/a><\/li>\n<\/ul>\n<p>PiTunnel\u3067\u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332\u3092\u3059\u308b\u3068\uff0cDevice\u7ba1\u7406\u753b\u9762\u306b\u9077\u79fb\u3059\u308b\u306e\u3067\u3053\u3053\u3067<code>Add Devides<\/code> \u30dc\u30bf\u30f3\u3067install script\u306e\u30b3\u30de\u30f3\u30c9\u304c\u8868\u793a\u3055\u308c\u308b\uff0e<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3060\u3051\u3069 <code>XXXXXXXX<\/code> \u90e8\u5206\u306ftoken\u306e\u3088\u3046\u306a\u306e\u3067\u6ce8\u610f\uff0e<\/p>\n<pre><code>curl https:\/\/pitunnel.com\/install\/XXXXXXXX | sudo python\r\n<\/code><\/pre>\n<p>\u3068\u308a\u3042\u3048\u305a\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u4e2d\u898b\u3066\u304b\u3089\u5b9f\u884c\uff0e<\/p>\n<pre><code>$ wget https:\/\/pitunnel.com\/install\/XXXXXXXXXX\r\n$ lv XXXXXXXXXX\r\n$ sudo python XXXXXXXXXX\r\n   :\r\nConfiguring Startup   \r\nRegister the device   \r\nOK\r\nStarting PiTunnel\r\n\r\n\r\n## All done!! ##\r\nPlease visit www.pitunnel.com to access your device!\r\n<\/code><\/pre>\n<p>www.pitunnel.com\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u306d\u3063\u3066\u898b\u306b\u884c\u304f\u3068\uff0c<\/p>\n<pre><code>STATUS: Due to unprecedented high demand, we're currently having connection issues. Please sit tight and we'll have this resolved within the next 24 hours.\r\n<\/code><\/pre>\n<p>\u3068\u304b\u306a\u3063\u3066\u3044\u308b\uff0e\u4eca\u4f7f\u3048\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u5c11\u3057\u53e9\u3044\u3066\u307f\u307e\u3059\uff0e<\/p>\n<pre><code>$ pitunnel -h\r\nusage: pitunnel [-h] [--port PORT] [--host HOST] [--name NAME] [--token TOKEN]\r\n                [--http] [--register] [--type TYPE] [--private]\r\n                [--http-auth HTTP_AUTH] [--quiet]\r\n\r\noptional arguments:\r\n  -h, --help            show this help message and exit\r\n  --port PORT           Port Number\r\n  --host HOST           Hostname or IP Address (default: localhost)\r\n  --name NAME           Display name, for reference and subdomain creation.\r\n  --token TOKEN         Optinal user tunnel token. Not required if installed\r\n                        from website.\r\n  --http                Indicates that a tunnel is for a HTTP service. Will\r\n                        create http links on tunnels list and subdomains for\r\n                        named tunnels.\r\n  --register            Register a new device. Only needs to be called on\r\n                        first use by install script.\r\n  --type TYPE           Used to identify system tunnels like device_monitor.\r\n  --private             Specifies that the tunnel wont except external\r\n                        connections. It can only receive connections from\r\n                        localhost. E.g. for device_monitor.\r\n  --http-auth HTTP_AUTH\r\n                        Add HTTP authorization to external access for this\r\n                        tunnel: 'user:pass'\r\n  --quiet               Quite Mode. Doesn't output messages to standard out.\r\n<\/code><\/pre>\n<pre><code>$ pitunnel --register\r\nOK\r\n<\/code><\/pre>\n<pre><code>$ pitunnel --port 22\r\nTrying to connect to pitunnel.com\r\nTrying to connect to pitunnel.com\r\nTrying to connect to pitunnel.com\r\nTrying to connect to pitunnel.com\r\nTrying to connect to pitunnel.com\r\n^CTraceback (most recent call last):\r\n  File &quot;tunnelling\/python\/tunnel_client.py&quot;, line 139, in &lt;module&gt;\r\nKeyboardInterrupt\r\n[9305] Failed to execute script tunnel_client\r\n<\/code><\/pre>\n<p>\u3066\u611f\u3058\u3067\u3084\u3063\u3071\u52d5\u304b\u306a\u3044\u3088\u3046\u3067\u3059\u306d\uff0e1,2\u65e5\u5f85\u3061\u307e\u3057\u3087\u3046\uff0e<\/p>\n<p>\u4eca\u306e\u3068\u3053\u308dRaspbian\u6700\u65b0\u7528\u3060\u3051\u3069\uff0cUbuntu 16.04 TLS aarch64\u306b\u3082\u5165\u3063\u305f\uff0e<br \/>\n\u307e\u3060PiTunnel\u306f\u4f7f\u3048\u3066\u307e\u305b\u3093\u304c\uff0c\u7121\u6599\u30671\u30dd\u30fc\u30c8\u3060\u3051\u3060\u3068\u30d0\u30a4\u30ca\u30ea\u4e00\u500b\u3067ok\u3060\u3057ngrok\u306e\u65b9\u304c\u3044\u3044\u304b\u306a\u3066\u611f\u3058\u304c\u3057\u307e\u3059\uff0e<br \/>\n\u3067\u3082\u5c11\u306a\u304f\u3068\u3082\u6a5f\u80fd\u306e\u591a\u3055\u306f\u3053\u3063\u3061\u304c\u4e0a\u305d\u3046\uff0e<\/p>\n<ul>\n<li><a href=\"http:\/\/list.kagolug.org\/pipermail\/users\/2017-May\/000486.html\" title=\"[KagoLUG:486] Re: \u30ed\u30fc\u30ab\u30eb\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u304a\u624b\u8efd\u306b\u5916\u90e8\u516c\u958b\u3067\u304d\u308bngrok\u3092\u8a66\u3057\u3066\u307f\u305f\">[KagoLUG:486] Re: \u30ed\u30fc\u30ab\u30eb\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u304a\u624b\u8efd\u306b\u5916\u90e8\u516c\u958b\u3067\u304d\u308bngrok\u3092\u8a66\u3057\u3066\u307f\u305f<\/a><\/li>\n<\/ul>\n<div>\n<p>\n<iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=as_ss_li_til&#038;asins=B01MR4SQV5&#038;linkId=4782339ed2d90aacfe2e8e91a9c61a36\"><\/iframe><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=as_ss_li_til&#038;asins=B06XSV23T1&#038;linkId=820e0dcea78a82d70b05d3ebcc4a2977\"><\/iframe><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=as_ss_li_til&#038;asins=B077FF54QP&#038;linkId=82dd71a4211479a38f09ea7966ffe733\"><\/iframe>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>PiTunnel\u3092\u3061\u3087\u3063\u3068\u8a66\u305d\u3046\u3068\u3059\u308b\uff0e Raspberry Pi\u5411\u3051\u306engrok\u7684\u306a\u3082\u306e\u306e\u3088\u3046\uff0e\u5bb6\u5ead\u5185\u306eLAN\u5185\u306eRaspberry Pi\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u5916\u90e8\u306b\u516c\u958b\u3057\u3088\u3046\u3068\u601d\u3046\u3068\u30eb\u30fc\u30bf\u30fc\u306e\u30dd\u30fc\u30c8\u3092\u958b\u3051\u305f\u308aDDNS\u8a2d\u5b9a\u3057\u305f\u308a [&hellip;]<\/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,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[6,91],"tags":[266,267,44],"class_list":["post-1732","post","type-post","status-publish","format-standard","hentry","category-linux","category-raspberry-pi","tag-ngrok","tag-pitunnel","tag-raspberrypi"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/1732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=1732"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/1732\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=1732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=1732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=1732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}