{"id":1021,"date":"2019-09-08T08:31:57","date_gmt":"2019-09-08T14:31:57","guid":{"rendered":"https:\/\/wmbuck.net\/blog\/?p=1021"},"modified":"2019-09-08T08:31:57","modified_gmt":"2019-09-08T14:31:57","slug":"gateway-pi","status":"publish","type":"post","link":"https:\/\/wmbuck.net\/blog\/?p=1021","title":{"rendered":"Gateway pi"},"content":{"rendered":"\n<p>I realized as I was writing a new post that I had never documented the gateway pi undertaking. <\/p>\n\n\n\n<p>This started when a friend in the mountains got a new internet service where the ISP would not allow him (and therefore me) access to his router. As a result I could no longer use ssh to connect to his systems. <\/p>\n\n\n\n<p>I solved this problem by setting his systems up to use a tool called autossh, with which I could have his system start, monitor, and keep running an ssh daemon with reverse tunnels open to my system. I could then reach him by attaching through the reverse tunnels. <\/p>\n\n\n\n<!--more-->\n\n\n\n<p>I liked this idea very much, and I subsequently refined it. I began to build &#8220;gateway pis&#8221; on Raspberry Pi zero systems, which I can get, on sale, for $5. Well, that is a little bit of an exaggeration: I have to buy a case, and a micro-SD card, and a usb power brick. But the whole thing is less than $15. <\/p>\n\n\n\n<p>I wrote a couple of setup scripts so I can initialize one of these for anybody&#8217;s house given only their SSID and password. Then I can send it to them in the mail, they plug it into the wall, and voila. <\/p>\n\n\n\n<p>So now I have these on the networks of 6 friends and family for whom I can now provide technical assistance, backup services, and occasional other things like transferring files. Of course these have to be pretty good friends, because they are putting a lot of trust in me &#8211; they are giving me access to their networks and their files. But generally it has been the case that I am the one they call on for help anyway.  <\/p>\n\n\n\n<p>Each of them is set up with a fairly large micro-SD card (32GB, 64GB, one is 256GB) so they can house a local backup of a limited amount of stuff. So their PC or their Mac is set up to do a nightly backup onto the pi. Every night that local backup is rsynced to me. Thus they have at least two levels of backup, one outside their house. The pi has a postfix setup to enable it to send me mail if there is any problem. <\/p>\n\n\n\n<p>And should they run into some kind of techical problem, and want help the pi is also set up to enable me to open a vnc connection to their PC or Mac, so I can share their screen.  <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I realized as I was writing a new post that I had never documented the gateway pi undertaking. This started when a friend in the mountains got a new internet service where the ISP would not allow him (and therefore me) access to his router. As a result I could no longer use ssh to &hellip; <a href=\"https:\/\/wmbuck.net\/blog\/?p=1021\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Gateway pi<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,4,41,34,33,9],"tags":[],"class_list":["post-1021","post","type-post","status-publish","format-standard","hentry","category-backup","category-linux","category-networking","category-postfix","category-security","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1021"}],"collection":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1021"}],"version-history":[{"count":1,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1021\/revisions"}],"predecessor-version":[{"id":1022,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1021\/revisions\/1022"}],"wp:attachment":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}