Code Monkey home page Code Monkey logo

tor-node-script's Introduction

Tor Node Setup Script ๐Ÿง…

Tor Logo

Description

This script is designed to simplify the process of setting up a Tor node on your Linux system. Whether you want to run a Tor middle relay or a Tor exit relay, this script will guide you through the configuration steps.

Prerequisites

  • You should run this script as a superuser (root) to ensure proper permissions.
  • Debian or ubuntu.

Usage

  1. Clone the repository or download the script to your Linux system.
  2. Make the script executable:
    chmod +x tor.sh
  3. Execute
    ./tor.sh
    

What the script does

The script will perform the following steps:

  1. Check if the script is run as root to ensure proper permissions.
  2. Update the package list on your system.
  3. Install required dependencies, including unattended-upgrades, apt-listchanges, wget, gpg, and apt-transport-https.
  4. Configure automatic updates for your operating system based on Debian or Ubuntu.
  5. Add the Tor Project repository to your system's sources list.
  6. Download the PGP key and install Tor.
  7. Prompt you to select the type of Tor node: Tor middle relay or Tor exit relay (caution: Tor exit relay can have legal implications).
  8. Configure the selected Tor node type with a nickname, contact information, and bandwidth limits.
  9. Update the Tor configuration in the /etc/tor/torrc file.
  10. Restart the Tor service to apply the changes.

Note

For check if your node is running without issues use:

journalctl -xeu tor@default

For Tor exit relays, the script includes a restricted ExitPolicy that should reduce abuse mails by vps providers/ISPs but allows certain outgoing connections. Be aware of the legal implications and potential misuse associated with running a Tor exit relay.

Donations

If you find this script helpful, please consider making a Bitcoin donation to support the author's work at https://salviamotor.vado.li.

Disclaimer

Running a Tor exit relay can expose you to legal issues, and it's essential to understand the responsibilities and potential risks associated with operating such a relay.

Happy Tor'ing! ๐ŸŒ

tor-node-script's People

Contributors

turtlecute33 avatar alex27riva avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.