Wrapping traffic in Whonix-Gateway.



Fixxx

Elite
Ultimate
Joined
31.10.19
Messages
205
Reaction score
404
Points
63


Now I will tell you how to combine Windows 10 and Whonix-Gateway virtual machines.


This is done in order to wrap Windows 10 traffic in Tor without any special additional system settings. Let's assume that you have a Whonix virtual machine kit installed and a Windows 10 virtual machine too. In this example I will use Windows 10 LTSC because it's better suited for use in a virtual environment, takes up less space and consumes fewer resources. The VirtualBox Guest Additions package must be installed on the Windows virtual machine. So, let's get started.

The first thing you need to do is connect Windows 10 to the Whonix internal virtual network - this is done in the virtual machine settings in the "Network" item. Select the connection type - internal network, name - whonix. Now we launch Whonix-Gateway and then Windows 10. In Windows 10 click on the network icon and select "Network & Internet settings".

1.png

In the window that opens select "Properties".

2.png
Next, look for the item "IP settings" and click "Edit".

3.png

In the window that opens select "Manual".

4.png

Next, enable IPv4 and enter the values as shown in the screenshot and click "Save".

5.png
After this (if you did everything correctly) you will see that the settings have been applied.

6.png

After this the network should work and you can verify that the traffic is going through Tor.

7.png

This completes the setup. Keep in mind that now for the Internet to work in Windows Whonix-Gateway must be enabled. Don't use Tor Browser on virtual machines connected to Whonix-Gateway to avoid Tor+Tor connection (on Whonix-Workstation Tor Browser is modified - this is taken into account).
 
Last edited:

Fixxx

Elite
Ultimate
Joined
31.10.19
Messages
205
Reaction score
404
Points
63
Now I will describe the process of connecting a Debian/Kali Linux VM's to the Whonix.


The example of a virtual machine running Debian 11 XFCE - for Kali Linux the algorithm of actions is similar. First, in the settings of the virtual machine connected to Whonix you need to change the network from NAT to the internal Whonix network. Open the settings of the virtual machine, go to the "Network" item and in the "Connection type" section select "Internal network".


After that, launch the connected virtual machine and enter the command in the terminal:

ip a
The system will show a list of network interfaces in the system. Here we need to find out the name of the main network interface - in this example it's enp0s3 (in some cases it may be eth0).

2_LI.jpg
Now you need to make changes to the /etc/resolv.conf file - to do this, enter the command:

sudo nano /etc/resolv.conf

Enter the following line into the file:

nameserver 10.152.152.10
It should look like this:

111.png

Now you need to edit the /etc/network/interfaces file - to do this, enter the command:

sudo nano /etc/network/interfaces
Insert the following lines into the file:

auto enp0s3
iface enp0s3 inet static
address 10.152.152.15
netmask 255.255.192.0
gateway 10.152.152.10

It should look like this:

3_LI.jpg

Don’t forget to change the name of the network adapter to your own if it's different for you (highlighted in turquoise). In the "address" line the number 15 indicates the static IP address of the virtual machine in the Whonix internal local network - it shouldn't be repeated in the internal network, the countdown starts from 10, the value 11 is reserved for Whonix-Workstation, accordingly here we enter a different value. After these steps, reboot the virtual machine and check that everything is working - Whonix-Gateway must be enabled. Don't use Tor Browser on virtual machines connected to Whonix-Gateway to avoid Tor+Tor connection (on Whonix-Workstation Tor Browser is modified - this is taken into account).
 
Last edited:
Top Bottom