Hello, this alexandra.
In this post, I want to share how to make Tor acts as a Gateway, which we can call Whonix-Gateway and how to run Kali Linux through it. (I want to be clear that you can run whatever OS as a Workstation).
Kali-Workstation will be completed isolated network. Only connections through Tor will be possible.
Before we start, take a look at:
https://en.wikipedia.org/wiki/Gateway_%28telecommunications%29
https://en.wikipedia.org/wiki/Whonix
#Step one
Download VirtualBox and install it.
Learn about it here:
https://en.wikipedia.org/wiki/VirtualBox
https://www.virtualbox.org/wiki/Documentation
#Step two
Download Whonix-Gateway.
Import it into VirtualBox.
(Start Virtualbox, click on File then choose import Appliance.
#Step three
Download the Worksttation that you want.
Learn how to install it into VirtualBox.
Read about internal networking in VirtualBox. (Whonix-Gateway > internal Networking> Workstaion)
#Step four
Start Whonix-Gateway and let it running. You will have to setup it at the first time you boot it up.
(It is pretty easy. Just follow the instructions).
#Step five
Start your Workstation. (Don't turn off Whonix-Gateway)
So, Let's setup it to run trough a Tor Gateway.
* IP Address
192.168.0.20/24
* Gateway
192.168.0.10
#Step six
Setup Networking
In Linux terminal type it
* vi /etc/network/interfaces
It looks like this:
This file describes the network
interfaces available on your system
# and how to to activate them. For more
information, see interfaces (5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 10.152.152.50
netmask 255.255.255.0
network 10.152.152.0
broadcast 10.152.152.255
gateway 10.152.152.10
# dns-* options are implemented by the
resolvconf package, if installed
dns-nameservers 10.152.152.10
(save it)
#Step seven
Type it in terminal
vi /etc/resolv.conf
It looks like this:
nameserver 10.152.152.10
(save it)
Do not scorn a weak cub; he may become a brutal tiger. (Mongol Proverb)