Code: Select all
sudo apt-get install tor
2. Configuring Tor:
Edit the Tor configuration file /etc/tor/torrc by running the following command:
Code: Select all
sudo nano /etc/tor/torrc
Code: Select all
ExitPolicy reject *:25
HiddenServiceDir /var/lib/tor/hiddenservice
HiddenServicePort 80 127.0.0.1:80
3. Restarting Tor:
Code: Select all
sudo service tor restart
4. Creating a hidden service:
Code: Select all
sudo nano /var/lib/tor/hiddenservice/hosts
Code: Select all
127.0.0.1 localhost
::1 localhost
5. Starting the hidden service:
Code: Select all
sudo service tor restart
6. Connecting to the hidden service:
To connect to the hidden service, run the following command:
Code: Select all
torsocks -p 80 http://localhost
7. Randomizing IP addresses:
To randomize your IP address every 5 minutes, you can use the ipchanger tool. First, install it by running the following command:
Code: Select all
sudo apt-get install ipchanger
Code: Select all
crontab -e
Code: Select all
*/5 * * * * /usr/bin/ipchanger -d 5
8. Verifying the changes:
To verify that your IP address is being randomized every 5 minutes, you can use the following command:
Code: Select all
ip addr show