This guide provides step-by-step installation instructions for the Tor VPN System on various platforms.
sudo apt update
sudo apt upgrade -y
sudo apt install -y python3 python3-pip python3-venv tor iptables-persistent zenity
cd ~
git clone https://github.com/AutoBotSolutions/TOR-VPN-SYSTEM.git
cd tor_vpn
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
# Automated configuration
python tor_auto_torrc_config.py
# Or manual configuration
python tor_custom_config.py
sudo systemctl start tor
sudo systemctl enable tor
sudo dnf update -y
sudo dnf install -y python3 python3-pip tor iptables zenity
cd ~
git clone https://github.com/AutoBotSolutions/TOR-VPN-SYSTEM.git
cd tor_vpn
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python tor_auto_torrc_config.py
sudo systemctl start tor
sudo systemctl enable tor
sudo pacman -Syu
sudo pacman -S python python-pip tor iptables zenity
cd ~
git clone https://github.com/AutoBotSolutions/TOR-VPN-SYSTEM.git
cd tor_vpn
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python tor_auto_torrc_config.py
sudo systemctl start tor
sudo systemctl enable tor
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install python@3.11 tor
brew install --cask zenity
cd ~/Documents
git clone https://github.com/AutoBotSolutions/TOR-VPN-SYSTEM.git
cd tor_vpn
python3.11 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python tor_auto_torrc_config.py
# Tor on macOS is typically started manually
tor -f ~/.tor/torrc
Verify installation:
:::cmd
python --version
pip --version
C:\TorC:\Tor to system PATHcd C:\Users\YourUser\Documents
git clone https://github.com/AutoBotSolutions/TOR-VPN-SYSTEM.git
cd tor_vpn
python -m venv .venv
.venv\Scripts\activate
pip install --upgrade pip
pip install -r requirements.txt
python tor_auto_torrc_config.py
tor -f %APPDATA%\tor\torrc
This provides a Linux environment on Windows, recommended for full functionality.
wsl --install
After WSL is set up, follow the Ubuntu/Debian installation instructions above.
Add to ~/.bashrc or ~/.zshrc:
export TOR_PASSWORD="your_secure_password"
export TOR_CONFIG_DIR="/home/your-user/.tor_config"
Add to System Environment Variables:
TOR_PASSWORD=your_secure_password
TOR_CONFIG_DIR=C:\Users\YourUser\.tor_config
# Allow Tor ports
sudo ufw allow 9050/tcp # SOCKS port
sudo ufw allow 9051/tcp # Control port
sudo ufw allow 9040/tcp # Transparent proxy
sudo ufw allow 5353/udp # DNS port
# Allow Tor ports
sudo iptables -A INPUT -p tcp --dport 9050 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 9051 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 9040 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 5353 -j ACCEPT
# System Preferences > Security & Privacy > Firewall > Firewall Options
# Add Tor application and allow incoming connections
# Windows Firewall > Advanced Settings > Inbound Rules
# Add rules for ports 9050, 9051, 9040, 5353
If you want to route all system traffic through Tor:
sudo python tor_route_traffic_setup.py
⚠️ Warning: This routes ALL traffic through Tor. Use with caution.
google-chrome --proxy-server="socks5://127.0.0.1:9050"
Install proxy switcher extension and configure:
tor --version
Expected output:
Tor version 0.4.x.x
# Linux
sudo systemctl status tor
# macOS
ps aux | grep tor
# Windows
tasklist | findstr tor
pip list
Check that these are installed:
python tor_network_test.py
Expected output:
INFO - Tor service is running.
INFO - Control Port 9051 is accessible.
INFO - Tor is successfully routing traffic.
INFO - Exit IP detected: [IP address]
python tor_vpn_beta.py
The GUI should open and display:
curl --socks5 127.0.0.1:9050 https://check.torproject.org
Should show "Congratulations. This browser is configured to use Tor."
# Stop Tor service
sudo systemctl stop tor
sudo systemctl disable tor
# Remove Tor
sudo apt remove tor # Ubuntu/Debian
# Remove project directory
rm -rf ~/tor_vpn
# Remove configuration (optional)
rm -rf ~/.tor_config
rm -rf /var/lib/tor
# Stop Tor
pkill tor
# Remove Tor
brew uninstall tor
# Remove project directory
rm -rf ~/Documents/tor_vpn
# Remove configuration (optional)
rm -rf ~/.tor
rm -rf ~/Library/Application\ Support/Tor
# Stop Tor
taskkill /F /IM tor.exe
# Remove Tor installation
# Delete C:\Tor directory
# Remove project directory
rmdir /S C:\Users\YourUser\Documents\tor_vpn
# Remove configuration (optional)
rmdir /S %APPDATA%\tor
Linux/macOS:
# Install Python
sudo apt install python3 # Ubuntu/Debian
brew install python@3.11 # macOS
Windows:
Linux:
# Add Tor repository (Ubuntu/Debian)
sudo apt install apt-transport-https
wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DD89F.asc | sudo apt-key add -
echo "deb https://deb.torproject.org/torproject.org $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/tor.list
sudo apt update
sudo apt install tor
macOS:
brew update
brew install tor
# Run with sudo
sudo python tor_auto_torrc_config.py
# Or fix permissions
sudo chown -R $USER:$USER ~/.tor_config
chmod 700 ~/.tor_config
chmod 600 ~/.tor_config/torrc
# Deactivate and recreate
deactivate
rm -rf .venv
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
After installation:
Last Updated: 2024-04-23
Wiki: Configuration
Wiki: Developer Guide
Wiki: FAQ
Wiki: Home
Wiki: Troubleshooting
Wiki: User Guide