Jump to content

How to Setup Multiple Fortunastakes Using TOR


buzzkillb
 Share

Recommended Posts

On the VPS side you can use an onion address to run multiple D FortunaStakes on a single machine. All you really need is enough ram and hard drive space to run each daemon wallet (denariusd).

install TOR (ubuntu, raspbian, etc)

sudo apt-get install tor

or install from source list https://2019.www.torproject.org/docs/debian.html.en (ubuntu 16.04 xenial example below)

You need to add the following entries to /etc/apt/sources.list or a new file in /etc/apt/sources.list.d/:

deb https://deb.torproject.org/torproject.org xenial main
deb-src https://deb.torproject.org/torproject.org xenial main
Then add the gpg key used to sign the packages by running the following commands at your command prompt:

# curl https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --import
# gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
We provide a Debian package to help you keep our signing key current. It is recommended you use it. Install it with the following commands:

# apt update
# apt install tor deb.torproject.org-keyring

edit to start adding onion addresses

sudo nano /etc/tor/torrc
HiddenServiceDir /var/lib/tor/hidden_service01/
HiddenServiceVersion 2
HiddenServicePort 33369 127.0.0.1:33301
HiddenServicePort 9999 127.0.0.1:33301
HiddenServiceDir /var/lib/tor/hidden_service02/
HiddenServiceVersion 2
HiddenServicePort 33369 127.0.0.1:33302
HiddenServicePort 9999 127.0.0.1:33302

restart service to pick the changes up

sudo service tor restart

show onion address

sudo cat /var/lib/tor/hidden_service01/hostname
sudo cat /var/lib/tor/hidden_service02/hostname

Basically you can create multiple ~./denarius folders to store chaindata like this for 2 FS's on a single VPS.

mkdir ~/D
mkdir ~/D/FS01
mkdir ~/D/FS02

denariusd -datadir=/home/username/D/FS01
denariusd -datadir=/home/username/D/FS02

Sample denarius.conf

rpcuser=denariusrpc
rpcpassword=somestrongpassword
rpcallowip=127.0.0.1
daemon=1
port=9999
fortunastake=1
listen=1
externalip=youronionaddress.onion
fortunastakeaddr=youronionaddress.onion:9999
fortunastakeprivkey=yourfortunastakegenkey
tor=127.0.0.1:9050
bind=127.0.0.1:33301
rpcport=32301

for each FS you add change the last number of bind and rpcport, so 1 could become 2 and so and so on. Separate denarius.conf in each ~/D/FS01 ~/D/FS02 etc. folder

on your QT, fortunastake.conf will have youronionaddress.onion:9999 as the IP address

hint: you can also connect into the TOR onion addresses as addnodes

pos.watch is running on addnode=denariussfmrd7kh.onion

  • Thanks 1
Link to comment
Share on other sites

  • 10 months later...
  • 6 months later...

If you want to go a little more anonymous using tor, change

tor=127.0.0.1:9050

to

proxy=127.0.0.1:9050

Probably change discover=1 to discover=0

Then, if you only want to connect to onion hidden service addresses add

onlynet=tor

Example below showing everything going anonymous. IP comes from TOR and is not my local connection or VPN. For reference I still see it trying to make clearnet connections, but they don't stick and only pull in onion addresses. The ping time isn't too bad once the wallet settles down after initially starting up.

image.thumb.png.0a0cfdba1e4eb72e8106a4c729f83f37.png

image.png.b4deb6652d72d0e79bbf60be18a15cfb.png

image.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...