SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

tor.md (1397B)


      1 # SatSale over tor
      2 Currently you can use Tor in two ways
      3 1) Connect SatSale to your Bitcoin node over a tor hidden service
      4 2) Host SatSale as a Tor onion
      5 
      6 ## Bitcoin Node RPC Hidden Service
      7 On your Bitcoin node machine install tor and in `/etc/tor/torrc`:
      8 ```
      9 HiddenServiceDir /var/lib/tor/node_rpc/
     10 HiddenServicePort 8332 127.0.0.1:8332
     11 ```
     12 then
     13 ```
     14 sudo systemctl restart tor
     15 cat /var/lib/tor/node_rpc/hostname
     16 ```
     17 to get the onion URL for your tor hidden service. Add this in `config.toml` like `tor_bitcoinrpc_host = "http://u7...bid.onion"`
     18 
     19 On your SatSale machine, install tor and in `/etc/tor/torrc` (thanks @x_y:matrix.org):
     20 ```
     21 SocksPort 127.0.0.1:9050 IsolateClientProtocol IsolateDestPort IsolateDestAddr ExtendedErrors IPv6Traffic PreferIPv6 KeepAliveIsolateSOCKSAuth
     22 SocksPolicy accept 127.0.0.1
     23 SocksPolicy reject *
     24 ```
     25 Now start the tor proxy on your SatSale machine with `sudo tor` and SatSale is now configured to connect to your node over tor.
     26 
     27 
     28 ## SatSale Tor .Onion
     29 On your SatSale machine, install tor and in `/etc/tor/torrc`:
     30 ```
     31 HiddenServiceDir /var/lib/tor/satsale/
     32 HiddenServiceVersion 3
     33 HiddenServicePort 80 127.0.0.1:8000
     34 ```
     35 then
     36 ```
     37 sudo systemctl restart tor
     38 cat /var/lib/tor/satsale/hostname
     39 ```
     40 to get your onion URL. Go visit!
     41 
     42 Note that this will only work in some Tor browsers, and often not in the official Tor Browser unless you fully enable javascript etc.