Private Obfs4 Tor Bridge

This post gives instructions for a private obfs4 Tor bridge server running Debian 9 Stretch. For the official documentation for this and other distributions, see https://trac.torproject.org/projects/tor/wiki/doc/PluggableTransports/obfs4proxy . Before you set up your private Tor bridge, you need to decide: What port will you make the bridge to listen on? We will use port 443 in this example. What port will you use for the rest of the Tor network to communicate with the bridge? We will use 6889 in this example. Prepare Server Get your server up to date before you begin: apt update apt upgrade Open the firewall for your chosen ports and close it for all others. Assuming your local PC has IP address 11.22.33.44, you would whitelist that port and open the other ports like this: iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A INPUT -i lo -j ACCEPT iptables -A INPUT -p tcp --dport 22 -s 11.22.33.44/32 -j ACCEPT iptables -A INPUT...