{"id":2079,"date":"2022-12-14T06:06:05","date_gmt":"2022-12-14T06:06:05","guid":{"rendered":"https:\/\/www.qworqs.com\/?p=2079"},"modified":"2025-02-17T15:30:06","modified_gmt":"2025-02-17T15:30:06","slug":"tunneling-firefox-traffic-through-ssh-putty","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2022\/12\/14\/tunneling-firefox-traffic-through-ssh-putty\/","title":{"rendered":"Tunneling Firefox traffic through SSH &#8211; Putty"},"content":{"rendered":"\n<p>I will here assume you already have a remote Linux machine that you can SSH into with putty, the instructions are simple from this point on<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Putty Setup<\/h2>\n\n\n\n<p>1- Basic putty settings, assuming you have already downloaded putty from chiark.greenend.org.uk, now open putty, enter the IP of the server you wish to tunnel through, and save it with a name, the steps are&#8230;<br>&#8211; Open putty, <br>&#8211; enter the IP of your remote machine<br>&#8211; give it a name of your choice<br>&#8211; save (You don&#8217;t need to save now, you will save again in a bit, but you can do it anyway)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.qworqs.com\/wp-content\/uploads\/2022\/12\/Screenshot-20.png\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"680\" src=\"https:\/\/www.qworqs.com\/wp-content\/uploads\/2022\/12\/Screenshot-20.png\" alt=\"\" class=\"wp-image-2083\" srcset=\"https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-20.png 680w, https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-20-300x300.png 300w, https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-20-150x150.png 150w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/figure>\n\n\n\n<p>2- Go to <strong>Connection<\/strong> and expand it, then expand <strong>SSH<\/strong>, then select <strong>Tunnels<\/strong>, this will show a dialogue such as the below, fill in the data as follows<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A <strong>Source port<\/strong> between 1025-65536 (of your choice), i chose 8081 but you can chose any other in that range<\/li>\n\n\n\n<li>Check <strong>Dynamic<\/strong> and <strong>Auto<\/strong>, the click <strong>Add<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.qworqs.com\/wp-content\/uploads\/2022\/12\/Screenshot-21.png\"><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"679\" src=\"https:\/\/www.qworqs.com\/wp-content\/uploads\/2022\/12\/Screenshot-21.png\" alt=\"\" class=\"wp-image-2084\" srcset=\"https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-21.png 683w, https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-21-300x298.png 300w, https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-21-150x150.png 150w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/a><\/figure>\n\n\n\n<p>3- From the menu on the left, go back to <strong>Session<\/strong>, and click the <strong>save button<\/strong> again (So that the new tunnel settings are saved for next time)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.qworqs.com\/wp-content\/uploads\/2022\/12\/Screenshot-22.png\"><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"684\" src=\"https:\/\/www.qworqs.com\/wp-content\/uploads\/2022\/12\/Screenshot-22.png\" alt=\"\" class=\"wp-image-2085\" srcset=\"https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-22.png 683w, https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-22-300x300.png 300w, https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-22-150x150.png 150w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/a><\/figure>\n\n\n\n<p>4- You are almost done, Now double click the saved session name or select it and hit open, the remote machine should now prompt you to enter a username and a password, once you enter those, you have a tunnel ready on your localhost (127.0.0.1) on port 8081, next we will setup Firefox to use that tunnel<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Firefox setup<\/h2>\n\n\n\n<p>1- Go to firefox settings (Click the accordion menu to the right, and chose settings), once open, scroll down under <strong>general<\/strong>, until you find the <strong>Network Settings <\/strong>section, click the <strong>settings <\/strong>button in that section<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.qworqs.com\/wp-content\/uploads\/2022\/12\/Screenshot-23.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"206\" src=\"https:\/\/www.qworqs.com\/wp-content\/uploads\/2022\/12\/Screenshot-23-1024x206.png\" alt=\"\" class=\"wp-image-2086\" srcset=\"https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-23-1024x206.png 1024w, https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-23-300x60.png 300w, https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-23-768x154.png 768w, https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-23.png 1044w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Clicking settings above will show the following popup dialogue, setup your system as follows<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Manual Proxy Configuration<\/li>\n\n\n\n<li>SOCKS Host enter 127.0.0.1 and in the port area of that the port we chose in putty (In my case, 8081)<\/li>\n\n\n\n<li>Optional &#8211; Add the IP address ranges of the IPs that you do not want to have tunneled through the remote machine<\/li>\n\n\n\n<li>For more privacy, and sometimes functionality (When access is blocked from abroad), make sure you tunnel your DNS queries as well (See checkbox below)<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.qworqs.com\/wp-content\/uploads\/2022\/12\/Screenshot-27.png\"><img loading=\"lazy\" decoding=\"async\" width=\"871\" height=\"1024\" src=\"https:\/\/www.qworqs.com\/wp-content\/uploads\/2022\/12\/Screenshot-27-871x1024.png\" alt=\"\" class=\"wp-image-2087\" srcset=\"https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-27-871x1024.png 871w, https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-27-255x300.png 255w, https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-27-768x903.png 768w, https:\/\/www.voodoo.business\/blog\/wp-content\/uploads\/2022\/12\/Screenshot-27.png 1161w\" sizes=\"auto, (max-width: 871px) 100vw, 871px\" \/><\/a><\/figure>\n\n\n\n<p>Now, to verify that you are conencted to the remote machine, google the following<\/p>\n\n\n\n<p>what is my ip<\/p>\n\n\n\n<p>and google should tell you what your IP address is, at this stage, it should be the same as the remote machine&#8217;s IP (Not yours)<\/p>\n\n\n\n<p>Linux<\/p>\n\n\n\n<p>To do this in Linux, it is much easier, simply start the session with the remote machine with the following line<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh -D 8081 qworqs@your_hostname_or_ip<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I will here assume you already have a remote Linux machine that you can SSH into with putty, the instructions are simple from this point on Putty Setup 1- Basic putty settings, assuming you have already downloaded putty from chiark.greenend.org.uk, now open putty, enter the IP of the server you wish to tunnel through, and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[164,14],"tags":[],"class_list":["post-2079","post","type-post","status-publish","format-standard","hentry","category-proxy","category-ssh"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/2079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=2079"}],"version-history":[{"count":4,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/2079\/revisions"}],"predecessor-version":[{"id":5008,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/2079\/revisions\/5008"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=2079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=2079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=2079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}