{"id":169,"date":"2010-07-14T10:58:30","date_gmt":"2010-07-14T16:58:30","guid":{"rendered":"http:\/\/benincosa.com\/blog\/?p=169"},"modified":"2014-11-19T11:26:26","modified_gmt":"2014-11-19T17:26:26","slug":"opening-vnc-from-behind-a-firewall","status":"publish","type":"post","link":"https:\/\/benincosa.com\/?p=169","title":{"rendered":"opening VNC from behind a firewall"},"content":{"rendered":"<p>Here is the cast of characters:<br \/>\n1.  blopr:  A server that is behind a company firewall that I want to view its vnc session<br \/>\n2.  netnet:  A server that is on the internet that I have access to.<br \/>\n3.  Me:  The humble system admin who wants to view the VNC session on blopr.<\/p>\n<p>Here is how I do it:<\/p>\n<p>on Blopr:<\/p>\n<pre>vncserver :99 -depth 24 # and whatever other arguments you want to have.\r\nssh -R 5999:localhost:5999 root@netnet.example.com<\/pre>\n<p>On NetNet:<\/p>\n<pre>redir --lport=5989 --cport=5999 --caddr=127.0.0.1<\/pre>\n<p>On yours-truleys humble macbook pro:<\/p>\n<pre>vncviewer netnet.example.com:89  # enter the password for blopr's vnc session<\/pre>\n<p>Presto!  You are in there my friend!<\/p>\n<p>Bonus for you to try:\u00a0 Suppose only SSH is allowed out from blopr?\u00a0 This is left as an exercise to the reader.\u00a0 But the trick is its very similar.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is the cast of characters: 1. blopr: A server that is behind a company firewall that I want to view its vnc session 2. netnet: A server that is on the internet that I have access to. 3. Me: The humble system admin who wants to view the VNC session on blopr. Here is&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[920,66],"tags":[64,65],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/169"}],"collection":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=169"}],"version-history":[{"count":1,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":170,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions\/170"}],"wp:attachment":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}