This script automates the configuration of a transparent Tor setup. It can also configure Tor as a proxy.
# Install git if it's not already installed
sudo pacman -S git
# Go to $HOME
cd ~
# Clone this repository
git clone https://github.com/vnmdcvpfug/transparent-tor.git
# Go to the repository directory
cd transparent-tor
# Run the installation script, then follow the on-screen instructions
./install.sh
The code is mainly derived from the ArchWiki Tor page.