-
Notifications
You must be signed in to change notification settings - Fork 0
Tor Integration
Complete guide to anonymous browsing with Tor in NaviDuck. Learn how to enable, use, and troubleshoot Tor for maximum privacy.
- What is Tor?
- Quick Start
- Installation Guide
- Basic Usage
- Advanced Features
- Troubleshooting
- Security Best Practices
- Pro Tips
Tor (The Onion Router) is a free, open-source software that enables anonymous communication by directing internet traffic through a worldwide volunteer network of relays.
- Privacy: Hide your browsing activity from ISPs and surveillance
- Access: Reach websites blocked in your region
- Security: Encrypt your traffic through multiple layers
- Research: Access information without geographical restrictions
- Testing: Check how your site appears from different locations
NaviDuck doesn't bundle Tor but connects to an existing Tor service. You can:
- Use system-wide Tor
- Use Tor Browser's Tor instance
- Let NaviDuck manage Tor automatically
- Connect to remote Tor services
# Just enable it in NaviDuck
tor start# NaviDuck will auto-detect it
tor start# Install Tor
# Linux: sudo apt install tor
# Mac: brew install tor
# Windows: Download Tor Browser
# Start Tor in NaviDuck
tor start
# Verify it's working
tor statustor start # Start Tor connection
tor stop # Stop Tor connection
tor status # Check Tor status
tor restart # Restart Tor
s <query> # Search via Tor (when enabled)
go <onion-url> # Visit .onion sitesOption A: Tor Browser (Recommended for beginners)
- Download from torproject.org
- Install normally
- NaviDuck will auto-detect it
- Run
tor startin NaviDuck
Option B: Standalone Tor
# Download tor expert bundle
# Extract to C:\tor\
# Add to PATH or set in NaviDuck settingsUsing Homebrew (Recommended)
# Install Tor
brew install tor
# Start Tor service
brew services start tor
# In NaviDuck
tor startUsing Tor Browser
# Download from torproject.org
# Install to Applications
# NaviDuck auto-detects itUbuntu/Debian
# Install Tor
sudo apt update
sudo apt install tor
# Start Tor service
sudo systemctl start tor
sudo systemctl enable tor
# Optional: Run as user (more secure)
sudo usermod -a -G debian-tor $USER
# Log out and back in
# In NaviDuck
tor startFedora/RHEL/CentOS
sudo dnf install tor
sudo systemctl start tor
sudo systemctl enable tor
tor startArch Linux
sudo pacman -S tor
sudo systemctl start tor
sudo systemctl enable tor
tor start# Should show Tor version
tor --version
# Or check service
systemctl status tor # Linux
brew services list # Mac# In terminal (not NaviDuck)
curl --socks5 127.0.0.1:9050 https://check.torproject.org/api/ip
# Should return: {"IsTor":true}# Main menu shows:
# 🧅 Tor: ON
# Or run:
tor status# Start Tor connection
tor start
# Verify
tor status
# Should show: Tor: Running on port 9050(Future feature - currently manual only)
# Tor must be running first
tor start
# Any search or visit now uses Tor
s python tutorial # Anonymous search
go wikipedia.org # Anonymous visit
open github.com # Opens in browser via Tor# Tor automatically handles .onion sites
go duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion
go facebookcorewwwi.onion# You can switch between Tor and clearnet
tor start
s sensitive query # Via Tor
tor stop
s normal query # Via clearnet- DuckDuckGo: Works perfectly with Tor
- Wikipedia: Accessible via Tor
- Brave Search: Works with Tor
- Google: May show CAPTCHA more often
# All search commands work with Tor
tor start
search ddg privacy tools
search wikipedia anonymous browsing
s latest news# Main menu shows Tor status
# Or command:
tor status
# Detailed info (planned feature)
tor info# View Tor usage stats
# (Planned feature - currently basic)If NaviDuck can't auto-detect Tor:
# Set custom path in settings
settings
# Choose option 4 (Set Tor path manually)
# Enter: /path/to/your/tor(Advanced users)
# Edit config file manually
# ~/.naviduck_config.json
{
"tor_port": 9150, # Tor Browser uses 9150
"tor_host": "127.0.0.1"
}# Configure in torrc first
# Then NaviDuck will use them automatically
# Example torrc lines:
UseBridges 1
ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy
Bridge obfs4 1.2.3.4:1234 cert=abcdef...# Get new circuit (new identity)
tor newcircuit
# View current circuit
tor circuit
# Force new identity
tor newnym# View Tor connection logs
tor logs
# Debug mode
tor debug# Adjust Tor performance
tor fast # Prefer faster relays
tor safe # Prefer safer relays
tor balance # Balanced mode# Automatic Tor for .onion sites
# Already works - no config needed
# Planned: Auto-Tor for specific domains
# tor auto facebook.com
# tor auto wikipedia.org# Isolate different activities
tor start --tag shopping
tor start --tag research
tor start --tag social# Choose exit country
tor exit us # Exit from USA
tor exit de # Exit from Germany
tor exit jp # Exit from Japan
tor exit random # Random exit# Solution 1: Install Tor
# See installation guide above
# Solution 2: Set custom path
settings -> Set Tor path manually
# Solution 3: Check PATH
echo $PATH
# Ensure Tor directory is in PATH# Solution 1: Check if Tor is already running
ps aux | grep tor
# Solution 2: Check ports
netstat -tulpn | grep :9050
# If port 9050 is used, Tor Browser uses 9150
# Solution 3: Run Tor manually first
tor &
# Then in NaviDuck: tor start# Solution 1: Wait and retry
# Tor can be slow sometimes
# Solution 2: Get new circuit
tor newcircuit
# Solution 3: Use different exit
tor exit de # Try Germany instead
# Solution 4: Disable Tor for now
tor stop# Solution 1: Use Tor-friendly sites
search ddg your_query
go duckduckgo.com
# Solution 2: Get new identity
tor newnym
# Solution 3: Wait and retry later# Solution 1: That's normal for Tor
# Expect 2-10x slower than clearnet
# Solution 2: Use faster relays
tor fast
# Solution 3: Disable Tor for large downloads
tor stop
# Download files
tor start1. Check Tor is running: `systemctl status tor`
2. Check port: Default is 9050, Tor Browser uses 9150
3. Check firewall: Allow localhost connections
# Linux: Add user to debian-tor group
sudo usermod -a -G debian-tor $USER
# Log out and back in
# Tor service not running
# Start it: sudo systemctl start tor
# Or: tor &
# Wrong port or Tor not ready
# Wait 30 seconds after starting Tor
# Verify port: netstat -tulpn | grep :9050
# Run in terminal (not NaviDuck)
tor-check
# or
curl --socks5 127.0.0.1:9050 https://check.torproject.org/# Test SOCKS port
nc -z 127.0.0.1 9050 && echo "Port open" || echo "Port closed"
# Test with curl
curl --socks5 127.0.0.1:9050 http://example.com# View Tor logs
journalctl -u tor --no-pager -n 50 # Systemd
# or
tail -f /var/log/tor/log # Linux# Tor Browser not detected
# Set path manually: C:\Users\You\Desktop\Tor Browser\Browser\TorBrowser\Tor\tor.exe
# Port 9050 in use
# Tor Browser uses 9150, set in config# Homebrew Tor not starting
brew services restart tor
# Permissions
sudo chown $USER /usr/local/var/run/tor# AppArmor/SELinux blocking
sudo aa-complain /usr/sbin/tor
# or
sudo setenforce 0 # Temporarily disable SELinux
# Firewall blocking
sudo ufw allow out 9050
sudo ufw allow out 9051# Bad: Switching rapidly
tor start
s "my personal info"
tor stop
s "my work stuff"
# Can link your identities
# Good: Separate sessions
# Session 1: Personal with Tor
# Session 2: Work without Tor
# Or use different circuits# Tor + HTTPS = Maximum privacy
go https://example.com # Good
go http://example.com # Bad (unencrypted)# NaviDuck doesn't store cookies
# But your system browser might
# Clear browser cookies after Tor sessions# Different activities = different circuits
# Planned feature: tor isolate shopping
# Planned feature: tor isolate banking# Use guard nodes for consistency
# (Configured in torrc, not NaviDuck)
EntryNodes {us} StrictNodes 1
ExitNodes {de} StrictNodes 1# Tor helps, but be aware:
# 1. Don't log into accounts
# 2. Don't use unique browser patterns
# 3. JavaScript can fingerprint
# 4. Screen size/timezone can identify- Close other browsers/apps
- Disable browser extensions
- Use private/incognito mode if using browser
- Consider VPN + Tor for extra layer
- Don't log into personal accounts
- Don't download files to default locations
- Don't enable JavaScript unnecessarily
- Don't resize window uniquely
- Clear NaviDuck history if sensitive
- Close all Tor-related applications
- Consider restarting computer for paranoids
# Recommended torrc additions
AvoidDiskWrites 1
MaxCircuitDirtiness 600
NewCircuitPeriod 600
# See: https://2019.www.torproject.org/docs/tor-manual.html# For censorship circumvention
# Install obfs4
# Configure in torrc
UseBridges 1
ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy# Using NaviDuck on Tails OS
# Tor is already running
# Just: tor start in NaviDuck
# Or it auto-detects# 1. Use Tor-friendly sites
search ddg your_query # Faster than Google via Tor
# 2. Avoid peak hours
# Tor is faster during off-hours in your region
# 3. Use faster exit nodes
tor exit us # USA nodes often faster
# 4. Disable for large files
tor stop
# Download
tor start# 1. Use text-only when possible
# NaviDuck is already text-focused
# 2. Disable images in .onion sites
# (Manual in page source)
# 3. Use compression
# Tor already compresses, but you can't control# 1. Initial research via Tor
tor start
s "sensitive topic"
# Get overview anonymously
# 2. Deep dive clearnet
tor stop
s "specific technical details"
# Faster access to resources
# 3. Documentation via Tor
tor start
go docs.onion.site
# Access restricted docs# 1. Check site accessibility
tor start
go myapp.com
# See if blocked in any regions
# 2. Test geo-restricted features
tor exit jp
go myapp.com
# Test Japanese version
# 3. Security testing
tor start
# Test your own site's Tor compatibility# Not directly in NaviDuck, but you can:
# Configure in torrc:
NumEntryGuards 3
NumDirectoryGuards 3# Test site from different countries
tor exit us && go example.com
tor exit de && go example.com
tor exit jp && go example.com
tor exit ru && go example.com# Compare load times
time curl --socks5 127.0.0.1:9050 http://example.com
time curl http://example.com
# See Tor overhead# Use with VPN for extra layer
# 1. Connect VPN
# 2. Start Tor in NaviDuck
# 3. Browse with VPN+Tor
# Use with firewall
# Block all non-Tor traffic while Tor is active# Automate Tor browsing
#!/bin/bash
tor &
sleep 10
python naviduck.py << EOF
tor start
s "automated search"
quit
EOF# Monitor Tor bandwidth
nyx # Terminal Tor monitor
arm # Another terminal monitor
# Or web: tor://127.0.0.1:9051# Explore Tor ecosystem
go duckduckgo.com # Via Tor
s "how tor works"
s "tor relay types"
s "onion services"# Demonstrate differences
tor stop && s "my ip" # Shows your IP
tor start && s "my ip" # Shows Tor exit IP# Academic research
tor start
s "privacy studies"
s "anonymity metrics"
s "tor network analysis"# View in main menu
# 🧅 Tor: ON
# Or planned: tor stats- Connection latency
- Bandwidth usage
- Circuit build time
- Success/failure rates
- IP address changes
- Geographic distribution
- Connection stability
- Auto-Tor: Automatic Tor for sensitive searches
- Circuit control: GUI for circuit management
- Performance tuning: Adaptive speed/security balance
- Multi-Tor: Multiple Tor instances simultaneously
- Integration: Built-in Tor installation/updates
- Monitoring: Real-time Tor network stats
- Isolation: Per-tab circuit isolation
- Streaming support: Tor-optimized media
- Download manager: Tor-friendly downloads
- Bridge automation: Auto-bridge configuration
- Meek integration: Censorship circumvention
- Snowflake support: Volunteer-based bridging
- Privacy & Security Guide - General privacy practices
- Troubleshooting Guide - General problem solving
- Basic Commands Reference - All Tor commands
- NyX: Tor terminal monitor
- OnionShare: File sharing over Tor
- Tails: Privacy-focused OS
- Whonix: Tor-focused workstation
- Patience is key - Tor is slower by design
- HTTPS always - Tor protects the route, HTTPS protects content
- No logging in - Don't connect Tor activity to your identity
- Regular updates - Keep Tor software current
- Community support - Run a relay if you can
"Tor is a tool, not a magic cloak. Use it wisely, understand its limits, and contribute back to the network."
Q: Is Tor legal? A: Yes, in most countries. Some restrict it, so check local laws.
Q: Does Tor make me completely anonymous? A: No Tor provides perfect anonymity. Tor is very good but has limits.
Q: Can I be tracked while using Tor? A: It's difficult but not impossible for powerful adversaries.
Q: Why is Tor so slow? A: Your traffic routes through multiple volunteers worldwide. This is by design.
Q: Should I use VPN with Tor? A: VPN+Tor adds complexity. For most, Tor alone is sufficient.
Q: Can I torrent over Tor? A: Please don't. It slows the network for everyone and isn't what Tor is for.
Q: How do I report Tor abuse? A: See: https://community.torproject.org/relay/community-resources/abuse/
Q: Can I run a Tor relay? A: Yes! Help the network: https://community.torproject.org/relay/
"Privacy is not about having something to hide. It's about having something to protect."
# Try Tor now:
tor start
s "what is my ip"
# See the differenceStay safe, browse freely! 🧅🔒
Last updated: 12/22/2025
Tor Integration Guide version: 3.1