<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>reverse tether Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/reverse-tether/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 02 Aug 2018 08:23:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Reverse Tether from Linux to Android</title>
		<link>https://www.osradar.com/reverse-tether-from-linux-to-android/</link>
					<comments>https://www.osradar.com/reverse-tether-from-linux-to-android/#respond</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Thu, 02 Aug 2018 08:23:42 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[linux reverse tether]]></category>
		<category><![CDATA[linux reverse tethering]]></category>
		<category><![CDATA[reverse tether]]></category>
		<category><![CDATA[reverse tether linux]]></category>
		<category><![CDATA[reverse tethering]]></category>
		<category><![CDATA[reverse tethering linux]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=5092</guid>

					<description><![CDATA[<p>We all have heard the name of tethering, right? It’s the method using which an Android device can work as the source of internet connection to a system. It’s super useful for situations when your system doesn’t have a Wi-Fi adapter (rare case, of course) or for some other reasons, you need your phone’s connectivity [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/reverse-tether-from-linux-to-android/">Reverse Tether from Linux to Android</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>We all have heard the name of tethering, right? It’s the method using which an Android device can work as the source of internet connection to a system. It’s super useful for situations when your system doesn’t have a Wi-Fi adapter (rare case, of course) or for some other reasons, you need your phone’s connectivity on your desktop/laptop/notebook etc.</p>
<p>Reverse tethering, as the name suggests, is the opposite of tethering. In this scenario, the Android phone is there to enjoy the internet connectivity from the desktop/laptop. Previously, it was super difficult as we had to undergo a seriously complex procedures using iptables, bridged connections etc. Thanks to the hard work of a developer, there’s an easy tool for Linux systems to reverse tether without any of those complexities. The tool has a nice, difficult name – Gnirehtet.</p>
<p>Important – Before going further, make sure that your Android has root unlocked. This is a must or much of the tool’s functionalities won’t work. Rooting an Android device, in many cases, will cause warranty void and other possible issues like bricking the phone. Check out your phone model on XDA Developers forum for a reliable method to root.</p>
<p>Do<a href="https://www.osradar.com/android-devices-with-exposed-adb-port/">n’t forget to check out this Android threat ADB.Miner that uses the open ADB ports</a>.</p>
<h1>Preparing the system</h1>
<p>It’s time to setup Gnirehtet. First, we need the essential Android tools. Run the following command –</p>
<ul>
<li>Ubuntu</li>
</ul>
<pre class="">sudo apt install android-tools-adb android-tools-fastboot</pre>
<p><img loading="lazy" class="size-full wp-image-5098 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-1.png" alt="" width="1097" height="593" srcset="https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-1.png 1097w, https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-1-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-1-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-1-1024x554.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-1-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-1-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-1-777x420.png 777w" sizes="(max-width: 1097px) 100vw, 1097px" /></p>
<ul>
<li>Debian</li>
</ul>
<pre class="">sudo apt-get install android-tools-adb android-tools-fastboot</pre>
<ul>
<li>OpenSUSE</li>
</ul>
<pre class="">sudo zypper in android-tools-adb android-tools-fastboot</pre>
<ul>
<li>Fedora</li>
</ul>
<pre class="">sudo dnf install android-tools-adb android-tools-fastboot</pre>
<ul>
<li>Arch Linux</li>
</ul>
<pre class="">sudo pacman -S android-tools-adb android-tools-fastboot</pre>
<ul>
<li>Generic Linux instructions</li>
</ul>
<p>If your system isn’t listed above, you have to get the <a href="https://dl.google.com/android/repository/platform-tools-latest-linux.zip">compressed package</a> of the command line tools only. Then, extract the folder to a suitable place and add the path to the system’s environment variable.</p>
<p>Check out your ADB version &#8211;</p>
<pre class="">adb version</pre>
<h1><img loading="lazy" class="size-full wp-image-5099 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/08/adb-version.png" alt="" width="1095" height="144" srcset="https://www.osradar.com/wp-content/uploads/2018/08/adb-version.png 1095w, https://www.osradar.com/wp-content/uploads/2018/08/adb-version-300x39.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/adb-version-768x101.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/adb-version-1024x135.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/adb-version-696x92.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/adb-version-1068x140.png 1068w" sizes="(max-width: 1095px) 100vw, 1095px" /></h1>
<h1>Installing Gnirehtet</h1>
<p>It’s finally time to get the tool. Run the following command –</p>
<pre class="">wget https://github.com/Genymobile/gnirehtet/releases/download/v2.2.1/gnirehtet-rust-linux64-v2.2.1.zip</pre>
<p><img loading="lazy" class="size-full wp-image-5100 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-download.png" alt="" width="1098" height="588" srcset="https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-download.png 1098w, https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-download-300x161.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-download-768x411.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-download-1024x548.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-download-696x373.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-download-1068x572.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/reverse-tether-download-784x420.png 784w" sizes="(max-width: 1098px) 100vw, 1098px" /></p>
<p>Note that there’s also a Java version, but it’s not recommended. It will cause higher CPU and memory usage and may not work properly.</p>
<pre class="">wget https://github.com/Genymobile/gnirehtet/releases/download/v2.2.1/gnirehtet-java-v2.2.1.zip</pre>
<p>After downloading, extract the archive.</p>
<pre class="">unzip gnirehtet-rust-linux64-v2.2.1.zip
OR
unzip gnirehtet-java-v2.2.1.zip</pre>
<p><img loading="lazy" class="size-full wp-image-5101 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/08/unzip-tool.png" alt="" width="1092" height="201" srcset="https://www.osradar.com/wp-content/uploads/2018/08/unzip-tool.png 1092w, https://www.osradar.com/wp-content/uploads/2018/08/unzip-tool-300x55.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/unzip-tool-768x141.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/unzip-tool-1024x188.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/unzip-tool-696x128.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/unzip-tool-1068x197.png 1068w" sizes="(max-width: 1092px) 100vw, 1092px" /></p>
<p>Switch the working directory to the Gnirehtet directory.</p>
<pre class="">cd gnirehtet-rust-linux64</pre>
<h1><img loading="lazy" class="size-full wp-image-5102 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/08/change-working-dir.png" alt="" width="1091" height="106" srcset="https://www.osradar.com/wp-content/uploads/2018/08/change-working-dir.png 1091w, https://www.osradar.com/wp-content/uploads/2018/08/change-working-dir-300x29.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/change-working-dir-768x75.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/change-working-dir-1024x99.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/change-working-dir-696x68.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/change-working-dir-1068x104.png 1068w" sizes="(max-width: 1091px) 100vw, 1091px" /></h1>
<h1>Configuring Android for reverse tethering</h1>
<p>At first, from the Android device, go to Settings &gt;&gt; Developer options and enable “USB Debugging”.</p>
<p><img loading="lazy" class="size-full wp-image-5093 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/08/enable-usb-debugging.jpg" alt="" width="670" height="596" srcset="https://www.osradar.com/wp-content/uploads/2018/08/enable-usb-debugging.jpg 670w, https://www.osradar.com/wp-content/uploads/2018/08/enable-usb-debugging-300x267.jpg 300w, https://www.osradar.com/wp-content/uploads/2018/08/enable-usb-debugging-472x420.jpg 472w" sizes="(max-width: 670px) 100vw, 670px" /></p>
<p>Connect the device via USB and run the command on Linux terminal –</p>
<pre class="">su -
OR
sudo -s

adb start server</pre>
<p>Once your device is unlocked, return to the terminal and run this command &#8211;</p>
<pre class="">adb kill-server</pre>
<h1>Using Gnirehtet</h1>
<p>Start the terminal and run the following commands –</p>
<pre class="">su -
OR
sudo -s

./gnirehtet autorun</pre>
<p>You’ll get this notification in the Android phone. Allow the connection.</p>
<p><img loading="lazy" class=" wp-image-5094 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/08/connection-request-accept.jpg" alt="" width="494" height="453" srcset="https://www.osradar.com/wp-content/uploads/2018/08/connection-request-accept.jpg 400w, https://www.osradar.com/wp-content/uploads/2018/08/connection-request-accept-300x275.jpg 300w" sizes="(max-width: 494px) 100vw, 494px" /></p>
<p>You&#8217;ll notice this icon at the top.</p>
<p><img loading="lazy" class=" wp-image-5095 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/08/key-icon-top.png" alt="" width="366" height="78" /></p>
<h1>Re-connecting Android</h1>
<p>Sometimes, the USB port may disconnect without warning or you may have to disconnect it as well. In that case, reconnect the device via USB and run these commands –</p>
<pre class="">cd ~/gnirehtet
sudo ./gnirehtet restart</pre>
<h1>Stopping Gnirehtet</h1>
<p>If you want to stop the reverse tethering connection, run this command –</p>
<pre class="">cd ~/gnirehtet-*

sudo ./gnirehtet stop</pre>
<p>Sometimes, this command won’t kill the reverse tethering programs properly. You have to run the following commands for properly killing the tool –</p>
<pre class="">pidof ./gnirehtet

sudo kill -9 &lt;process_number&gt;</pre>
<p>Enjoy!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/reverse-tether-from-linux-to-android/">Reverse Tether from Linux to Android</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/reverse-tether-from-linux-to-android/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
