{"id":178,"date":"2008-02-21T09:52:42","date_gmt":"2008-02-21T14:52:42","guid":{"rendered":"http:\/\/bitpost.com\/news\/2008\/02\/21\/ssh-tunnel-to-freedom\/"},"modified":"2008-11-17T11:48:17","modified_gmt":"2008-11-17T16:48:17","slug":"ssh-tunnel-to-freedom","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2008\/ssh-tunnel-to-freedom\/","title":{"rendered":"ssh tunnel to freedom"},"content":{"rendered":"<p>Sometimes I feel like I know what I&#8217;m doing, other times I realize what a noob I still am.  Case in point: ssh tunnelling.  Why haven&#8217;t I fallen in love with this before?<\/p>\n<p>Tunnelling out of a heavily-firewalled network across the interwebs to a box on an internal lan through a public ssh-accessible box is absolutely trivial.  OK, that sounded complicated, but it&#8217;s just what I need!  An example is in order:<\/p>\n<pre><code># Make sure this works from a machine inside the heavily-firewalled network\r\n# Ask your IT department to open port 22 if needed, or you can go through a proxy on an open port\r\nssh me@mypublicmachine.com\r\n\r\n# Now let's redo it, but add a tunnel from a local port to a port on a machine on the LAN side of the public box\r\nssh -L 8000:box_on_lan_side:80 me@mypublicmachine.com\r\n\r\n# Now you can browse to the apache server on box_on_lan_side from within the firewalled network\r\nfirefox http:\/\/localhost:8000<\/code><\/pre>\n<p>Whee!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes I feel like I know what I&#8217;m doing, other times I realize what a noob I still am. Case in point: ssh tunnelling. Why haven&#8217;t I fallen in love with this before? Tunnelling out of a heavily-firewalled network across the interwebs to a box on an internal lan through a public ssh-accessible box is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[10,2],"tags":[],"class_list":["post-178","post","type-post","status-publish","format-standard","hentry","category-tricks-tips-tools","category-chatter"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-2S","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=178"}],"version-history":[{"count":2,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/178\/revisions"}],"predecessor-version":[{"id":674,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/178\/revisions\/674"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}