{"id":1519,"date":"2014-11-08T20:57:12","date_gmt":"2014-11-08T20:57:12","guid":{"rendered":"http:\/\/nethemba.com\/sk\/?p=1519"},"modified":"2016-01-30T07:55:49","modified_gmt":"2016-01-30T07:55:49","slug":"transform-your-android-device-to-the-tor-transparent-gateway","status":"publish","type":"post","link":"https:\/\/nethemba.com\/sk\/transform-your-android-device-to-the-tor-transparent-gateway\/","title":{"rendered":"Transform your Android device to the Tor transparent gateway"},"content":{"rendered":"<p>Until now I haven&#8217;t found a suitable &#8218;how-to&#8216; to transform your phone\/tablet to the Tor transparent gateway, therefore I&#8217;ve decided to write this short manual how you can do it really fast and easily.<\/p>\n<p><strong>Goal:<\/strong><\/p>\n<p>Use your Android mobile phone (or tablet) as a Tor transparent gateway, so all wifi clients connecting to your phone (as wifi AP) are transparently routed through anonymous Tor network (with no leak).<\/p>\n<p><strong>Requirements:<\/strong><\/p>\n<ul>\n<li>USB, Bluetooth or wifi tethering<\/li>\n<li>rooted Android device<\/li>\n<li><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=org.torproject.android&amp;hl=en\">Orbot (Proxy with) Tor<\/a><\/li>\n<li><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=jackpal.androidterm&amp;hl=en\">Terminal Emulator<\/a><\/li>\n<li>optionally <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=berserker.android.apps.sshdroid&amp;hl=en\">SSHDroid<\/a> or any other SSH server for Android<\/li>\n<\/ul>\n<p><strong>Steps:<\/strong><\/p>\n<ol>\n<li>Install all above-mentioned Android applications.<\/li>\n<li>Enable USB, Bluetooth or wifi tethering (depending how you want to connect to the Internet through Tor)<\/li>\n<li>Run Terminal Emulator as root (type &#8218;su&#8216; or &#8218;sudo&#8216;) or connect to your Android device using SSH.<\/li>\n<li>Focus on the Tor configuration file <code>\/data\/data\/org.torproject.android\/shared_prefs\/org.torproject.android_preferences.xml<\/code> and check the value of <code>pref_dnsport<\/code>, <code>pref_transport<\/code>and\u00a0<code>pref_transparent_tethering <\/code>parameters:\n<p><code># egrep \"(pref_dnsport|pref_transport|pref_transparent_tethering)\"<\/code><br \/>\n<code>\/data\/data\/org.torproject.android\/shared_prefs\/org.torproject.android_preferences.xml<\/code><code>\u00a0 <\/code><br \/>\n<code>&lt;boolean name=\"pref_transparent_tethering\" value=\"false\" \/&gt;<\/code><br \/>\n<code><code>&lt;string name=\"pref_transport\"&gt;9040&lt;\/string&gt;<\/code><\/code><br \/>\n<code><code><code>&lt;string name=\"pref_dnsport\"&gt;5400&lt;\/string&gt;<\/code><\/code><\/code><\/p>\n<p>By default, the parameter <code>pref_transport<\/code> should have value <strong>9040<\/strong> and <code>pref_dnsport<\/code> <strong>5400<\/strong>.<\/li>\n<li>Change the value of <code>pref_transparent_tethering<\/code> from <code>false<\/code> to <code>true<\/code> (use vim or sed).<\/li>\n<li>As root, add the following iptables rules (to redirect all DNS requests to the secure Tor DNS server, all TCP connections to the Tor SOCKS proxy and reject all ICMP requests &#8211; in order not to reveal your true IP address):\n<p>On the local Android device, you can create the file <code>tor_tunnel.sh<\/code> with the above-mentioned 3 rules and put it to the startup scripts.<\/p>\n<ul>\n<li><code>iptables -t nat -A PREROUTING -i wlan0 -p udp --dport 53 -j REDIRECT --to-ports 5400<\/code><\/li>\n<li><code>iptables -t nat -A PREROUTING -i wlan0 -p tcp --syn -j REDIRECT --to-ports 9040<\/code><\/li>\n<li><code>iptables -A FORWARD -p udp --dport 53 -j ACCEPT<\/code><\/li>\n<li><code>iptables -A FORWARD -p udp -j DROP<\/code><\/li>\n<li><code>iptables -A FORWARD -p icmp -j REJECT\n<p><\/code><\/li>\n<\/ul>\n<\/li>\n<li>Be aware that if you want to use USB tethering (instead of wifi tethering), use &#8218;<code>usb0<\/code>&#8218; device instead of &#8218;<code>wlan0<\/code>&#8218;. Similarly if you use bluetooth tethering.<\/li>\n<li>Run the Orbot application and press the main button for at least 2 seconds &#8211; from this point all your wifi clients will be connected through your Android device (phone\/tablet) directly to the Tor network.<\/li>\n<li>Make sure your identity is NEVER REVEALED through your browser application fingerprint (use <a href=\"http:\/\/noscript.net\/\">NoScript<\/a> or completely disable javascript, change your User Agent in <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/user-agent-overrider\/\">Firefox<\/a> or <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/user-agent-switcher-for-c\/djflhoibgkdhkhhcedjiklpkjnoahfmg\">Chrome<\/a>), always check your <a href=\"https:\/\/panopticlick.eff.org\/\">current browser fingerprint here<\/a>.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Until now I haven&#8217;t found a suitable &#8218;how-to&#8216; to transform your phone\/tablet to the Tor transparent gateway, therefore I&#8217;ve decided to write this short manual how you can do it really fast and easily. Goal: Use your Android mobile phone (or tablet) as a Tor transparent gateway, so all wifi clients connecting to your phone [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-1519","post","type-post","status-publish","format-standard","hentry","category-uncategorized-sk"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Transform your Android device to the Tor transparent gateway - Nethemba<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/nethemba.com\/sk\/transform-your-android-device-to-the-tor-transparent-gateway\/\" \/>\n<meta property=\"og:locale\" content=\"sk_SK\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Transform your Android device to the Tor transparent gateway - Nethemba\" \/>\n<meta property=\"og:description\" content=\"Until now I haven&#8217;t found a suitable &#8218;how-to&#8216; to transform your phone\/tablet to the Tor transparent gateway, therefore I&#8217;ve decided to write this short manual how you can do it really fast and easily. Goal: Use your Android mobile phone (or tablet) as a Tor transparent gateway, so all wifi clients connecting to your phone [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nethemba.com\/sk\/transform-your-android-device-to-the-tor-transparent-gateway\/\" \/>\n<meta property=\"og:site_name\" content=\"Nethemba\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/nethemba\" \/>\n<meta property=\"article:published_time\" content=\"2014-11-08T20:57:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-01-30T07:55:49+00:00\" \/>\n<meta name=\"author\" content=\"Pavol Lupt\u00e1k\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@nethemba\" \/>\n<meta name=\"twitter:site\" content=\"@nethemba\" \/>\n<meta name=\"twitter:label1\" content=\"Autor\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pavol Lupt\u00e1k\" \/>\n\t<meta name=\"twitter:label2\" content=\"Predpokladan\u00fd \u010das \u010d\u00edtania\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 min\u00faty\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/nethemba.com\\\/sk\\\/transform-your-android-device-to-the-tor-transparent-gateway\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nethemba.com\\\/sk\\\/transform-your-android-device-to-the-tor-transparent-gateway\\\/\"},\"author\":{\"name\":\"Pavol Lupt\u00e1k\",\"@id\":\"https:\\\/\\\/nethemba.com\\\/de\\\/#\\\/schema\\\/person\\\/5f4ba68c8e1a2013d30e0804245b8234\"},\"headline\":\"Transform your Android device to the Tor transparent gateway\",\"datePublished\":\"2014-11-08T20:57:12+00:00\",\"dateModified\":\"2016-01-30T07:55:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nethemba.com\\\/sk\\\/transform-your-android-device-to-the-tor-transparent-gateway\\\/\"},\"wordCount\":329,\"commentCount\":0,\"articleSection\":[\"Uncategorized @sk\"],\"inLanguage\":\"sk-SK\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/nethemba.com\\\/sk\\\/transform-your-android-device-to-the-tor-transparent-gateway\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nethemba.com\\\/sk\\\/transform-your-android-device-to-the-tor-transparent-gateway\\\/\",\"url\":\"https:\\\/\\\/nethemba.com\\\/sk\\\/transform-your-android-device-to-the-tor-transparent-gateway\\\/\",\"name\":\"Transform your Android device to the Tor transparent gateway - Nethemba\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nethemba.com\\\/de\\\/#website\"},\"datePublished\":\"2014-11-08T20:57:12+00:00\",\"dateModified\":\"2016-01-30T07:55:49+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/nethemba.com\\\/de\\\/#\\\/schema\\\/person\\\/5f4ba68c8e1a2013d30e0804245b8234\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nethemba.com\\\/sk\\\/transform-your-android-device-to-the-tor-transparent-gateway\\\/#breadcrumb\"},\"inLanguage\":\"sk-SK\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/nethemba.com\\\/sk\\\/transform-your-android-device-to-the-tor-transparent-gateway\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nethemba.com\\\/sk\\\/transform-your-android-device-to-the-tor-transparent-gateway\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/nethemba.com\\\/sk\\\/domov\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Transform your Android device to the Tor transparent gateway\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/nethemba.com\\\/de\\\/#website\",\"url\":\"https:\\\/\\\/nethemba.com\\\/de\\\/\",\"name\":\"Nethemba\",\"description\":\"We care about your security\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/nethemba.com\\\/de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"sk-SK\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/nethemba.com\\\/de\\\/#\\\/schema\\\/person\\\/5f4ba68c8e1a2013d30e0804245b8234\",\"name\":\"Pavol Lupt\u00e1k\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"sk-SK\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/978b23022518d076eaa243b375d2e0272af4f00dd502ce79cc357276d9bc2495?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/978b23022518d076eaa243b375d2e0272af4f00dd502ce79cc357276d9bc2495?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/978b23022518d076eaa243b375d2e0272af4f00dd502ce79cc357276d9bc2495?s=96&d=mm&r=g\",\"caption\":\"Pavol Lupt\u00e1k\"},\"sameAs\":[\"https:\\\/\\\/www.nethemba.com\\\/\"],\"url\":\"https:\\\/\\\/nethemba.com\\\/sk\\\/author\\\/nethemba-admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Transform your Android device to the Tor transparent gateway - Nethemba","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/nethemba.com\/sk\/transform-your-android-device-to-the-tor-transparent-gateway\/","og_locale":"sk_SK","og_type":"article","og_title":"Transform your Android device to the Tor transparent gateway - Nethemba","og_description":"Until now I haven&#8217;t found a suitable &#8218;how-to&#8216; to transform your phone\/tablet to the Tor transparent gateway, therefore I&#8217;ve decided to write this short manual how you can do it really fast and easily. Goal: Use your Android mobile phone (or tablet) as a Tor transparent gateway, so all wifi clients connecting to your phone [&hellip;]","og_url":"https:\/\/nethemba.com\/sk\/transform-your-android-device-to-the-tor-transparent-gateway\/","og_site_name":"Nethemba","article_publisher":"https:\/\/www.facebook.com\/nethemba","article_published_time":"2014-11-08T20:57:12+00:00","article_modified_time":"2016-01-30T07:55:49+00:00","author":"Pavol Lupt\u00e1k","twitter_card":"summary_large_image","twitter_creator":"@nethemba","twitter_site":"@nethemba","twitter_misc":{"Autor":"Pavol Lupt\u00e1k","Predpokladan\u00fd \u010das \u010d\u00edtania":"2 min\u00faty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nethemba.com\/sk\/transform-your-android-device-to-the-tor-transparent-gateway\/#article","isPartOf":{"@id":"https:\/\/nethemba.com\/sk\/transform-your-android-device-to-the-tor-transparent-gateway\/"},"author":{"name":"Pavol Lupt\u00e1k","@id":"https:\/\/nethemba.com\/de\/#\/schema\/person\/5f4ba68c8e1a2013d30e0804245b8234"},"headline":"Transform your Android device to the Tor transparent gateway","datePublished":"2014-11-08T20:57:12+00:00","dateModified":"2016-01-30T07:55:49+00:00","mainEntityOfPage":{"@id":"https:\/\/nethemba.com\/sk\/transform-your-android-device-to-the-tor-transparent-gateway\/"},"wordCount":329,"commentCount":0,"articleSection":["Uncategorized @sk"],"inLanguage":"sk-SK","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nethemba.com\/sk\/transform-your-android-device-to-the-tor-transparent-gateway\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nethemba.com\/sk\/transform-your-android-device-to-the-tor-transparent-gateway\/","url":"https:\/\/nethemba.com\/sk\/transform-your-android-device-to-the-tor-transparent-gateway\/","name":"Transform your Android device to the Tor transparent gateway - Nethemba","isPartOf":{"@id":"https:\/\/nethemba.com\/de\/#website"},"datePublished":"2014-11-08T20:57:12+00:00","dateModified":"2016-01-30T07:55:49+00:00","author":{"@id":"https:\/\/nethemba.com\/de\/#\/schema\/person\/5f4ba68c8e1a2013d30e0804245b8234"},"breadcrumb":{"@id":"https:\/\/nethemba.com\/sk\/transform-your-android-device-to-the-tor-transparent-gateway\/#breadcrumb"},"inLanguage":"sk-SK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nethemba.com\/sk\/transform-your-android-device-to-the-tor-transparent-gateway\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/nethemba.com\/sk\/transform-your-android-device-to-the-tor-transparent-gateway\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nethemba.com\/sk\/domov\/"},{"@type":"ListItem","position":2,"name":"Transform your Android device to the Tor transparent gateway"}]},{"@type":"WebSite","@id":"https:\/\/nethemba.com\/de\/#website","url":"https:\/\/nethemba.com\/de\/","name":"Nethemba","description":"We care about your security","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nethemba.com\/de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"sk-SK"},{"@type":"Person","@id":"https:\/\/nethemba.com\/de\/#\/schema\/person\/5f4ba68c8e1a2013d30e0804245b8234","name":"Pavol Lupt\u00e1k","image":{"@type":"ImageObject","inLanguage":"sk-SK","@id":"https:\/\/secure.gravatar.com\/avatar\/978b23022518d076eaa243b375d2e0272af4f00dd502ce79cc357276d9bc2495?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/978b23022518d076eaa243b375d2e0272af4f00dd502ce79cc357276d9bc2495?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/978b23022518d076eaa243b375d2e0272af4f00dd502ce79cc357276d9bc2495?s=96&d=mm&r=g","caption":"Pavol Lupt\u00e1k"},"sameAs":["https:\/\/www.nethemba.com\/"],"url":"https:\/\/nethemba.com\/sk\/author\/nethemba-admin\/"}]}},"_links":{"self":[{"href":"https:\/\/nethemba.com\/sk\/wp-json\/wp\/v2\/posts\/1519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nethemba.com\/sk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nethemba.com\/sk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nethemba.com\/sk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nethemba.com\/sk\/wp-json\/wp\/v2\/comments?post=1519"}],"version-history":[{"count":0,"href":"https:\/\/nethemba.com\/sk\/wp-json\/wp\/v2\/posts\/1519\/revisions"}],"wp:attachment":[{"href":"https:\/\/nethemba.com\/sk\/wp-json\/wp\/v2\/media?parent=1519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nethemba.com\/sk\/wp-json\/wp\/v2\/categories?post=1519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nethemba.com\/sk\/wp-json\/wp\/v2\/tags?post=1519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}