Wownero

Guides => Tutorials => Topic started by: qvqc on Jun 20, 2021, 05:04 PM

Title: How to setup a Full Node with Tor/i2p
Post by: qvqc on Jun 20, 2021, 05:04 PM
## WHY DO THIS?

[imgMETA]http://forum.wownero.com/custom_avatar/f4f218e9d13381b753e4c65b82f1cb435dafa001.gif[/img]

  * **friends be jelly**
  * **node is available** regardless of home firewall
  * **help the network** with out revealing public ip
  * **be cheap**, no need to pay for VPS hosting



Installing Linux

For ease, this guide is based on ubuntu. To get started download and install your favorite flavor, xubuntu is easy to use.  

**If you dont have an extra machine, use virtualization to run linux on your windows PC. (https://www.youtube.com/watch?v=x5MhydijWmc)**

#### you will need
  * USB drive for install media
  * 4GB+ RAM recommended (lower can work too)
  * 10GB+ Harddrive (~2GB for Linux, ~4GB for wownero)

If you need help installing, check this (https://www.youtube.com/watch?v=-6jzpvGTCKI)

Installing Wownerod

#### Downloading Wownerod

Go to wownero.org and download the latest "Command Line" wallet for Linux 64-bit. Wait for the download to complete.

You can verify the archive by checking the sha256sum provided.

Extract the wownerod to /home/username/Downloads. Wait for the extraction to complete.

Navigate to the folder that contains wownerod and open a terminal inside this folder.

then copy the extracted contents to /usr/local/bin.

`sudo cp wownero* /usr/local/bin/.`

you can test that its installed correctly with this command (it should return yes)
`(ls /usr/local/bin/wownerod && echo yes) || echo no`  

#### Lets add our config file

Open an editor with
`sudo nano /etc/wownerod.conf`

Copy and Paste the following into /etc/wownerod.conf

    check-updates=disabled
    confirm-external-bind=1
    data-dir=/var/lib/wownero
    log-file=/var/log/wownero/wownerod.log
    log-level=0
    no-igd=1
    p2p-bind-port=34567
    p2p-use-ipv6=1
    public-node=1
    restricted-rpc=1
    rpc-bind-ip=0.0.0.0
    rpc-bind-port=34568
   

##### use CTRL+X to save/exit

#### Install the wownero service

Now lets get the wownero service setup

Open an editor with
`sudo nano /etc/systemd/system/wownerod.service`

Copy and Paste the following into /etc/systemd/system/wownerod.service

    [Unit]
    Description=Wownero Full Node
    After=network-online.target
    Wants=network-online.target

    [Service]
    User=wownero
    Group=wownero
    Environment="MONERO_RANDOMX_UMASK=1"
    StateDirectory=wownero
    LogsDirectory=wownero
    Type=simple
    ExecStart=/usr/local/bin/wownerod --config-file /etc/wownerod.conf --non-interactive
    Restart=always

    [Install]
    WantedBy=multi-user.target

##### Setup Directories and User

    sudo addgroup --system wownero
    sudo adduser --system wownero --home /var/lib/wownero
    sudo mkdir /var/log/wownero
    sudo chown wownero:wownero /var/log/wownero

##### CTRL+X to save/exit

Now lets load the service file into systemd

Reload the service files to include wownerod
`sudo systemctl daemon-reload`

To enable wownerod on every reboot
`sudo systemctl enable wownerod.service`

Start wownerod service
`sudo systemctl start wownerod.service`

To check the status of wownerod
`sudo systemctl status wownerod.service`

Wownerod should be up and syncing!


Setting up Tor/i2p

install tor and i2p
`sudo apt install i2pd tor`

#### Create Tor hidden service

creating a hidden service is easy, just add a couple lines to the torrc config file

open the editor with
`sudo nano /etc/tor/torrc`

add the following lines at the bottom

    HiddenServiceDir /var/lib/tor/wownero/
    HiddenServicePort 34568 127.0.0.1:34568
    HiddenServicePort 34566 127.0.0.1:34566

##### CTRL+X to save/exit

restart tor
`sudo /etc/init.d/tor restart`

you can find out your Onion hostname by running
`sudo cat /var/lib/tor/wownero/hostname`

you will see output that looks like (same onion for RPC and P2P, use for P2P url below)

> lrux6na6p47ulqf2owt3wknfiwwbz7iksio5bz3ebdvou47lmfjdmoid.onion

this is your onion! you can now use wowlet or wownero-wallet-cli to access wownerod over Tor


#### Create i2p http tunnel (hidden service)

Creating an i2p service is similar to tor

open the editor with
`sudo nano /etc/i2pd/tunnels.conf`

add the following lines at the bottom of the file

```
[wownero-rpc]
type = http
host = 127.0.0.1
port = 34568
keys = wownero-rpc.dat
[wownero-p2p]
type = server
host = 127.0.0.1
port = 34565
keys = wownero-p2p.dat
```

##### CTRL+X to save/exit

restart i2pd
`sudo /etc/init.d/i2pd restart`

you can find out your p2p b32.i2p hostname by running curl
`curl http://127.0.0.1:7070/?page=i2p_tunnels 2>&1 | grep -Eo "[a-zA-Z0-9./?=_%:-]*" | grep "34565"`

you will see output that looks like (add this to wownerod.conf below)
> mshhr3stejy6dyhdjclaamezae2c75av6eazhru3s3hoccimya5a.b32.i2p:34565

you can find out your rpc b32.i2p hostname by running curl
`curl http://127.0.0.1:7070/?page=i2p_tunnels 2>&1 | grep -Eo "[a-zA-Z0-9./?=_%:-]*" | grep "34568"`

you will see output that looks like (use this with a client wallet)
> lvy4crit5gcodniovffckwcwcto3gjgr3enwu4tsrki4x2ocq6ra.b32.i2p:34568

you can now use this wownero-wallet-cli to access wownerod over i2p

## Add incoming p2p to wownerod.conf
In order to let other servers on the Tor and i2p network communicate with your server on p2p you have to add a few lines to the bottom of your wownerod.conf

open your editor
`sudo nano /etc/wownerod.conf`

add the following to the bottom, replace YOUR_I2P_ADDRESS and YOUR_ONION_ADDRESS with the p2p addresses you recieved above

    tx-proxy=tor,127.0.0.1:9050,23
    tx-proxy=i2p,127.0.0.1:4447,23
    anonymous-inbound=YOUR_I2P_ADDRESS:34565,127.0.0.1:34565,64
    anonymous-inbound=YOUR_ONION_ADDRESS:34566,127.0.0.1:34566,64

restart wownero
`sudo systemctl restart wownerod.service`

## How to use the services
* RPC - clients(use with wowlet, wownero-wallet-cli) wallets connect to wownerod
* P2P - wownerod talks to other wownerod
* RPC port - 34568 (use with wowlet, wownero-wallet-cli)
* P2P port - 34567 (use with wownerod)
* Tor-RPC port - 34568 (use with wowlet, wownero-wallet-cli)
* i2p-RPC port - 34568 (use with wowlet, wownero-wallet-cli)
* Tor-P2P port - 34566 (use with wownerod)
* i2p-P2P port - 34565 (use with wownerod)

on Tor only one hiddenservice url is needed as it can handle multiple ports per service.  see this in the torrc created, multiple ports under one hiddenservicedir(one key) directory.  i2p works differently where it needs a separate tunnel for every port served.  see in the i2p tunnels.conf that we set a service for port 34565 and 34568 each with a separate key file

with anonymous-inbound and tx-proxy it sets wownerod to prefer relaying transactions over Tor-p2p and i2p-p2p.  you can use add-exclusive-node= in the wownerod in order to sync over i2p-p2p or Tor-p2p

post all three urls.  p2p urls are for system admins who want to add as a peer to wownerod. rpc urls are for clients who need to use the wallet

## Share your nodes!
Add your nodes to https://monero.fail/?crypto=wownero and post them here, thanks for helping the network!



## Setup your first node and thats not enough?  
Use the ansible playbooks which automate these steps for multiple nodes! (https://git.wownero.com/dsc/ansible-remote-node/)

## Big thanks to @wow4reedom for polishing this up!! :fire::pineapple:
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wowario on Jul 03, 2021, 07:36 AM
`iy6ry6uudpzvbd72zsipepukp6nsazjdu72n52vg3isfnxqn342flzad.onion:34568`
Title: Re: How to setup a Full Node with Tor/i2p
Post by: qvqc on Jul 05, 2021, 10:56 AM
    rmysl337zlocxrpgib372ea2ov2q2n3wdzwjj2zb5odeykkjvvna.b32.i2p:34568
    ycq4yo6nrc4gmwbyd77v7p6nuuleg22n3e4balvugpmj63hhoz5q.b32.i2p:34568
    j7wrndaonjrvx67ud7jzdytr2lvu7s2tmhm5rnoazodp6tprvhla.b32.i2p:34568
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wowario on Jul 07, 2021, 06:08 AM
```
u7xzyafhv4am27574wcla5mt34flzz5rrz3bnljfah6khb467hbok7qd.onion:34568
```
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wow4reedom on Jul 17, 2021, 02:23 PM
Quote from: "qvqc, post:1, topic:588"You can verify the archive by checking the sha256sum provided.

For Linux newbies (myself included), how do I perform a checksum check in Ubuntu?
Title: Re: How to setup a Full Node with Tor/i2p
Post by: orklemerkle on Jul 17, 2021, 03:56 PM
In a terminal, run `sha256sum path/to/file`. Under most desktop environments, you can drag a file into the terminal window to insert its path.
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wow4reedom on Jul 17, 2021, 04:28 PM
Quote from: "qvqc, post:1, topic:588"sudo systemctl status wownerod.service

I can't seem to start the wownero service. Here is the "Failed" message I get after running the above command:

    ● wownerod.service - Wownero Full Node
         Loaded: loaded (/etc/systemd/system/wownerod.service; enabled; vendor preset: enabled)
         Active: failed (Result: exit-code) since Sun 2021-07-18 03:10:29 AEST; 1min 30s ago
        Process: 2938 ExecStart=/usr/local/bin/wownerod --config-file /etc/wownerod.conf --non-interactive (code=exited, status=217/USER)
       Main PID: 2938 (code=exited, status=217/USER)

    Jul 18 03:10:29 LARK01 systemd[1]: wownerod.service: Scheduled restart job, restart counter is at 5.
    Jul 18 03:10:29 LARK01 systemd[1]: Stopped Wownero Full Node.
    Jul 18 03:10:29 LARK01 systemd[1]: wownerod.service: Start request repeated too quickly.
    Jul 18 03:10:29 LARK01 systemd[1]: wownerod.service: Failed with result 'exit-code'.
    Jul 18 03:10:29 LARK01 systemd[1]: Failed to start Wownero Full Node.

But here's what's strange, if I start the node manually from the terminal:
`./wownerod`  
followed by
`status`
the Node starts, syncs and I get the following:

`Height: 335709/335709 (100.0%) on mainnet, not mining, net hash 45.40 MH/s, v19, 11(out)+0(in) connections, uptime 0d 0h 0m 23s`


I'm a newbie to Linux and I setup a new machine running Ubuntu LTS 20.04.2 and I've followed this guide line-by-line.
 
I'm unsure if there is a step missing in the guide, but I can's seem to make sense of the above error hence my machine won't start my full node.
 
Any thoughts?
Title: Re: How to setup a Full Node with Tor/i2p
Post by: qvqc on Jul 17, 2021, 10:35 PM
thanks for catching,

try this:

    sudo addgroup --system wownero
    sudo adduser --system wownero --home /var/lib/wownero
    sudo mkdir /var/log/wownero
    sudo chown wownero:wownero /var/log/wownero
    sudo systemctl start wownerod
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wow4reedom on Jul 18, 2021, 07:29 AM
Thanks @qvqc,  that fixed it!  

    ● wownerod.service - Wownero Full Node
         Loaded: loaded (/etc/systemd/system/wownerod.service; enabled; vendor pres>
         Active: active (running) since Sun 2021-07-18 18:26:14 AEST; 22s ago
 
I shall continue with the rest of the steps.
 
Thanks for putting this step-by-step guide together, very much appreciated!
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wow4reedom on Jul 18, 2021, 08:23 AM
Quote from: "qvqc, post:1, topic:588"`sudo cat /var/lib/tor/wownero/hostname`

This is the error message I get when running this command:
`cat: /var/lib/tor/wownero/hostname: No such file or directory`

The /var/lib/tor/wownero directory doesn't exist. Here's what I see:

    $ sudo ls -la /var/lib/tor/
    total 8876
    drwx--S---  3 debian-tor debian-tor    4096 Jul 18 19:14 .
    drwxr-xr-x 69 root       root          4096 Jul 18 18:25 ..
    -rw-------  1 debian-tor debian-tor   20472 Jul 18 05:29 cached-certs
    -rw-------  1 debian-tor debian-tor 2304840 Jul 18 18:54 cached-microdesc-consensus
    -rw-------  1 debian-tor debian-tor 6531415 Jul 18 05:37 cached-microdescs
    -rw-------  1 debian-tor debian-tor  206234 Jul 18 18:55 cached-microdescs.new
    drwx--S---  2 debian-tor debian-tor    4096 Jul 18 05:29 keys
    -rw-------  1 debian-tor debian-tor       0 Jul 18 19:10 lock
    -rw-------  1 debian-tor debian-tor    5540 Jul 18 19:14 state


Any ideas?  Thanks in advance.
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wowario on Jul 18, 2021, 09:59 AM
Quote from: "qvqc, post:1, topic:588"#### Create Tor hidden service

creating a hidden service is easy, just add a couple lines to the torrc config file

open the editor with
`sudo nano /etc/torrc`

add the following lines at the bottom

```
HiddenServiceDir /var/lib/tor/wownero/
HiddenServicePort 34568 127.0.0.1:34568
HiddenServicePort 34566 127.0.0.1:34566
```

restart tor
`sudo /etc/init.d/tor restart`

did you do this^
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wow4reedom on Jul 18, 2021, 12:40 PM
Quote from: "qvqc, post:1, topic:588"`sudo cat /var/lib/tor/wownero/hostname`

Yep I did that step and here is a snippet of my terminal ...

    $ sudo /etc/init.d/tor restart
    Restarting tor (via systemctl): tor.service.

    $ sudo systemctl status tor.service
    ● tor.service - Anonymizing overlay network for TCP (multi-instance-master)
         Loaded: loaded (/lib/systemd/system/tor.service; enabled; vendor preset: e>
         Active: active (exited) since Sun 2021-07-18 23:26:28 AEST; 9s ago
        Process: 2363 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
       Main PID: 2363 (code=exited, status=0/SUCCESS)

    Jul 18 23:26:28 L01 systemd[1]: Starting Anonymizing overlay network for TCP>
    Jul 18 23:26:28 L01 systemd[1]: Finished Anonymizing overlay network for TCP>

    $ sudo cat /var/lib/tor/wownero/hostname
    cat: /var/lib/tor/wownero/hostname: No such file or directory

The /wownero directory under /lib/tor/  does not exist.

Also, please note that when I carried out the step below:

Quote from: "qvqc, post:1, topic:588"open the editor with
`sudo nano /etc/torrc`

It creates an empty file, then pasted in the 3 lines and saved the file, hence the file /etc/torrc  did not exist in my /etc/ directory.  

However, after a little bit of digging around using the File Manager, I noticed there is a torrc file located under /etc/tor/ , should this be the file that needs the 3 lines added at the end?
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wowario on Jul 18, 2021, 01:14 PM
yes, edit that torrc file. You should change the "HiddenServiceDir" location to `/etc/tor/wownero`, restart, and then do: `sudo cat /etc/tor/wownero/hostname`
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wow4reedom on Jul 18, 2021, 05:16 PM
Thanks for all your help thus far @wowario and @qvqc. Unfortunately, I'm still having an issue with starting up my full node.

My node seems doesn't seem to startup via the systemctl. I can start it manually from the  /usr/local/bin/   directory. It runs and syncs, but when I check the status I get the following error:

    larkbox@LARK01:/usr/bin$ sudo systemctl status wownerod.service
    ● wownerod.service - Wownero Full Node
         Loaded: loaded (/etc/systemd/system/wownerod.service; enabled; vendor preset: enabled)
         Active: failed (Result: exit-code) since Mon 2021-07-19 04:05:16 AEST; 26s ago
        Process: 2647 ExecStart=/usr/local/bin/wownerod --config-file /etc/wownerod.conf --non-interactive (code=exited, status=1/FAILURE)
       Main PID: 2647 (code=exited, status=1/FAILURE)

    Jul 19 04:05:16 LARK01 systemd[1]: wownerod.service: Scheduled restart job, restart counter is at 5.
    Jul 19 04:05:16 LARK01 systemd[1]: Stopped Wownero Full Node.
    Jul 19 04:05:16 LARK01 systemd[1]: wownerod.service: Start request repeated too quickly.
    Jul 19 04:05:16 LARK01 systemd[1]: wownerod.service: Failed with result 'exit-code'.
    Jul 19 04:05:16 LARK01 systemd[1]: Failed to start Wownero Full Node.
 
When I reboot the PC, the node fails to start via the systemctl.
 
Sorry, I wish I was more technical, but I just can't seem to figure out what's going wrong. Any ideas?  

Thanks in advance.
Title: Re: How to setup a Full Node with Tor/i2p
Post by: qvqc on Jul 18, 2021, 06:05 PM
try posting the log

get the last hundred lines with:

    tail -n 100 /var/log/wownero/wownerod.log

no stress, u are close to having it all online.  thanks for testing
Title: Re: How to setup a Full Node with Tor/i2p
Post by: qvqc on Jul 18, 2021, 06:30 PM
Quote from: "wow4reedom, post:12, topic:588"Also, please note that when I carried out the step below:

Quote from: "qvqc, post:1, topic:588"open the editor with
> `sudo nano /etc/torrc`

It creates an empty file, then pasted in the 3 lines and saved the file, hence the file /etc/torrc did not exist in my /etc/ directory.

nice find..

this:

    sudo nano /etc/torrc    

should be this:

    sudo nano /etc/tor/torrc

add
```
HiddenServiceDir /var/lib/tor/wownero/
HiddenServicePort 34568 127.0.0.1:34568
HiddenServicePort 34566 127.0.0.1:34566
```
and restart tor

    /etc/init.d/tor restart

this wont solve wownerod not starting, post the log tail for that
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wow4reedom on Jul 19, 2021, 03:06 PM
Hi @qvqc, thanks for the tip on how to view the log file.  
After spending some time looking through it, it seems to be in a loop (meaning the same lines repeat over and over).
I couldn't attached a Text file, so here's the copy-n-paste from the wownerod.log file output of a repeating section of the log...

    2021-07-19 15:41:09.420       7f51ed2e4780   INFO   global   src/daemon/protocol.h:79   Cryptonote protocol stopped successfully
    2021-07-19 15:41:09.421       7f51ed2e4780   ERROR   daemon   src/daemon/main.cpp:362   Exception in main! Failed to initialize p2p server.
    2021-07-19 15:41:10.794       7f8d0d22e780   INFO   logging   contrib/epee/src/mlog.cpp:273   New log categories: *:WARNING,net:FATAL,net.http:FATAL,net.ssl:FATAL,net.p2p:FATAL,net.cn:FATAL,daemon.rpc:FATAL,global:INFO,verify:FATAL,serialization:FATAL,daemon.rpc.payment:ERROR,stacktrace:INFO,logging:INFO,msgwriter:INFO
    2021-07-19 15:41:10.795       7f8d0d22e780   INFO   logging   contrib/epee/src/mlog.cpp:273   New log categories: *:WARNING,net:FATAL,net.http:FATAL,net.ssl:FATAL,net.p2p:FATAL,net.cn:FATAL,daemon.rpc:FATAL,global:INFO,verify:FATAL,serialization:FATAL,daemon.rpc.payment:ERROR,stacktrace:INFO,logging:INFO,msgwriter:INFO
    2021-07-19 15:41:10.795       7f8d0d22e780   INFO   global   src/daemon/main.cpp:294   Wownero 'Junkie Jeff' (v0.10.0.3-2bdd70d65)
    2021-07-19 15:41:10.795       7f8d0d22e780   INFO   global   src/daemon/protocol.h:53   Initializing cryptonote protocol...
    2021-07-19 15:41:10.795       7f8d0d22e780   INFO   global   src/daemon/protocol.h:58   Cryptonote protocol initialized OK
    2021-07-19 15:41:10.796       7f8d0d22e780   INFO   global   src/daemon/core.h:63   Initializing core...
    2021-07-19 15:41:10.796       7f8d0d22e780   INFO   global   src/cryptonote_core/cryptonote_core.cpp:517   Loading blockchain from folder /var/lib/wownero/lmdb ...
    2021-07-19 15:41:10.847       7f8d0d22e780   INFO   global   src/cryptonote_core/cryptonote_core.cpp:692   Loading checkpoints
    2021-07-19 15:41:10.847       7f8d0d22e780   INFO   global   src/daemon/core.h:73   Core initialized OK
    2021-07-19 15:41:10.847       7f8d0d22e780   INFO   global   src/daemon/p2p.h:63   Initializing p2p server...
    2021-07-19 15:41:10.848       7f8d0d22e780   INFO   global   src/daemon/core.h:94   Deinitializing core...
    2021-07-19 15:41:10.892       7f8d0d22e780   INFO   global   src/daemon/protocol.h:75   Stopping cryptonote protocol...
    2021-07-19 15:41:10.892       7f8d0d22e780   INFO   global   src/daemon/protocol.h:79   Cryptonote protocol stopped successfully

This is all jiberish to me (I'm a linux newbie) so I hope someone can make sense of it and let me know what I need to do to fix the issue so I can get my Wownero Full Node with Tor/i2p up and running.  Thanks in advance.
Title: Re: How to setup a Full Node with Tor/i2p
Post by: qvqc on Jul 19, 2021, 08:36 PM
sounds like config issue, can u post wownerd.conf here?

`cat /etc/wownerod.conf`
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wow4reedom on Jul 22, 2021, 05:17 PM
Hi @qvqc, here's my wownerod.conf file ...

cat /etc/wownerod.conf

    check-updates=disabled
    confirm-external-bind=1
    data-dir=/var/lib/wownero
    log-file=/var/log/wownero/wownerod.log
    log-level=0
    no-igd=1
    p2p-bind-port=34567
    p2p-use-ipv6=1
    public-node=1
    restricted-rpc=1
    rpc-bind-ip=0.0.0.0
    rpc-bind-port=34568
    anonymous-inbound=lvy4crit5gcodniovffckwcwcto3gjgr3enwu4tsrki4x2ocq6ra.b32.i2p:34565,127.0.0.1:34565,64
    anonymous-inbound=vq5bn3dhzorkpc6g6xi4vruylpdvfw6nrdf7ylyxudunsa4rzm4hduid.onion:34566,127.0.0.1:34566,64
Title: Re: How to setup a Full Node with Tor/i2p
Post by: qvqc on Jul 22, 2021, 07:44 PM
a few fixes to make, had  old configs and screwed things up a little bit. thanks for helping me polish this :sweat_smile:

edit i2p config

`sudo nano /etc/i2pd/tunnels.conf`

make the config look like this

```
[wownero-rpc]
type = http
host = 127.0.0.1
port = 34568
keys = wownero-rpc.dat
[wownero-p2p]
type = server
host = 127.0.0.1
port = 34565
keys = wownero-p2p.dat
```
restart i2p  
`/etc/init.d/i2pd restart`
check here for p2p url ending in 34565 (http://127.0.0.1:7070/?page=i2p_tunnels) or install curl
`sudo apt install curl`
grab the p2p url
`curl http://127.0.0.1:7070/?page=i2p_tunnels 2>&1 | grep -Eo "[a-zA-Z0-9./?=_%:-]*" | grep "34565"`


edit wownerod config
`sudo nano /etc/wownerod.conf`

 take the i2p p2p url received with curl and replace the current b32.i2p in wownerod.conf

`anonymous-inbound=UPDATETHISLINE:34565,127.0.0.1:34565,64`

and add these two lines to wownerod.conf:
```
tx-proxy=tor,127.0.0.1:9050,23
tx-proxy=i2p,127.0.0.1:4447,23
```
##### CTRL+X to save/exit

`sudo systemctl restart wownerod.service`

if wownerod fails again try editing wownerod.conf (sudo nano /etc/wownerod.conf) and setting debug from 0 to 1. restart wownerod (sudo systemctl restart wownerod.service) and paste the log (tail -n 100 /var/log/wownero/wownerod.log)
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wow4reedom on Jul 23, 2021, 03:36 PM
Quote from: "qvqc, post:20, topic:588"anonymous-inbound=UPDATETHISLINE:34565,127.0.0.1:34565,64

Hey @qvqc, thanks for the clear instructions on what I need to update.

For the change requested above to the wownerod.conf , I want to confirm something as I have 2 lines starting with:  anonymous-inbound=...  
The 1st string value containing  .b32.i20:34565... and,
The 2nd string value containing  .onion:34566...

You only need me to update the 1st line and replace it with the new i2p p2p url received with curl.  

Do I leave the 2nd string intact with no changes needed?
Title: Re: How to setup a Full Node with Tor/i2p
Post by: qvqc on Jul 23, 2021, 10:11 PM
yes, you should have two anonymous-inbound= lines.

it should look similar to
```
anonymous-inbound=lvy4crit5gcodniovffckwcwcto3gjgr3enwu4tsrki4x2ocq6ra.b32.i2p:34565,127.0.0.1:34565,64
anonymous-inbound=vq5bn3dhzorkpc6g6xi4vruylpdvfw6nrdf7ylyxudunsa4rzm4hduid.onion:34566,127.0.0.1:34566,64
```
replace i2p url with the new p2p i2p url that you grabbed with curl, the line with onion is unchanged
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wow4reedom on Jul 24, 2021, 05:30 AM
Hey @qvqc  I've successfully launched my Full Node with Tor/i2p :smile:  
Thanks again for putting together this Step-by-Step guide.  

Here's my Onion address:
 http://vq5bn3dhzorkpc6g6xi4vruylpdvfw6nrdf7ylyxudunsa4rzm4hduid.onion:34568

I've added it to - https://monero.fail/?crypto=wownero
Title: Re: How to setup a Full Node with Tor/i2p
Post by: qvqc on Jul 24, 2021, 06:00 AM
ahhyee :metal:

can also run this command (its looking for 34568 instead of 34565)
`curl http://127.0.0.1:7070/?page=i2p_tunnels 2>&1 | grep -Eo "[a-zA-Z0-9./?=_%:-]*" | grep "34568"`

and get the i2p RPC url

u cant post i2p addresses on monero.fail but please share i2p p2p url and i2p rpc url here so we improve this network :+1:
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wow4reedom on Jul 24, 2021, 02:26 PM
Quote from: "qvqc, post:24, topic:588"curl http://127.0.0.1:7070/?page=i2p_tunnels 2>&1 | grep -Eo "[a-zA-Z0-9./?=_%:-]*" | grep "34568"

Hey @qvqc, After going over your Step-by-Step guide several times I've noticed there are 3 different addressed that are generated.

Can you please demystify for us newbies (like myself) what is the significance of the following addresses with the different port numbers...

**A) Address ending with .onion** - it looks something like:
`vq5bn3dhzorkpc6g6xi4vruylpdvfw6nrdf7ylyxudunsa4rzm4hduid.onion`
It is used in the wownerod.conf file with port 34566 tacked on the end.

**B) Address ending with port number 34565** - looks something like:
`oscqc6nia6ledut7ufpffej2kkjeuoonibwxudajg3su2w7p32xa.b32.i2p:34565`

**C) Address ending with port number 34568** - looks something like:
`axrmv5ucdghi5b4fklx4kjta2c3cwygxs6ctme4tunbvmpmbnm7q.b32.i2p:34568`


**QUESTIONS**




   
Thanks.
Title: Re: How to setup a Full Node with Tor/i2p
Post by: qvqc on Jul 24, 2021, 06:39 PM
* RPC - clients(use with wowlet, wownero-wallet-cli) wallets connect to wownerod
* P2P - wownerod talks to other wownerod
* RPC port - 34568 (use with wowlet, wownero-wallet-cli)
* P2P port - 34567 (use with wownerod)
* Tor-RPC port - 34568 (use with wowlet, wownero-wallet-cli)
* i2p-RPC port - 34568 (use with wowlet, wownero-wallet-cli)
* Tor-P2P port - 34566 (use with wownerod)
* i2p-P2P port - 34565 (use with wownerod)

on Tor only one hiddenservice url is needed as it can handle multiple ports per service.  see this in the torrc created, multiple ports under one hiddenservicedir(one key) directory.  i2p works differently where it needs a separate tunnel for every port served.  see in the i2p tunnels.conf that we set a service for port 34565 and 34568 each with a separate key file

with anonymous-inbound and tx-proxy it sets wownerod to prefer relaying transactions over Tor-p2p and i2p-p2p.  you can use add-exclusive-node= in the wownerod in order to sync over i2p-p2p or Tor-p2p.

post all three urls.  p2p urls are for system admins who want to add as a peer to wownerod. rpc urls are for clients who need to use the wallet
Title: Re: How to setup a Full Node with Tor/i2p
Post by: cryptoriche on Jul 25, 2021, 09:51 AM
and.... I have exactly the same problem, but these steps did NOT fix it
It is currently syncing, but like Wow4freedom, I ran wownerod from the cli in the /var/lib/wownero folder i.e. ./wownerod....
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wow4reedom on Jul 25, 2021, 09:59 PM
Thanks for all your help @qvqc and @wowario.
I believe I've resolved the errors and I have check that both the Wownerod and Tor services running.

As request here are my 3 URLs:
 
`http://vq5bn3dhzorkpc6g6xi4vruylpdvfw6nrdf7ylyxudunsa4rzm4hduid.onion:34566`

`http://oscqc6nia6ledut7ufpffej2kkjeuoonibwxudajg3su2w7p32xa.b32.i2p:34565`

`http://axrmv5ucdghi5b4fklx4kjta2c3cwygxs6ctme4tunbvmpmbnm7q.b32.i2p:34568`
 
Can someone please confirm that these URLs are in the correctly named?  Thanks
Title: Re: How to setup a Full Node with Tor/i2p
Post by: qvqc on Jul 25, 2021, 11:38 PM
Quote from: "cryptoriche, post:27, topic:588, full:true"and... I have exactly the same problem, but these steps did NOT fix it
It is currently syncing, but like Wow4freedom, I ran wownerod from the cli in the /var/lib/wownero folder i.e. ./wownerod...

set the log level to 1 from 0
```
sudo nano /etc/wownerod.conf
```
edit the line that says
```
log-level=0
```
to
```
log-level=1
```
**ctrl+x to exit/save**

post the log when running wownerod service

```
sudo systemctl start wownerod.service
tail -n 100 /var/log/wownero/wownerod.log
```

post a copy of your wownerod.conf
```
cat /etc/wownerod.conf
```
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wow4reedom on Jul 26, 2021, 11:13 PM
Hey @qvqc / @wowario (or anyone else...),
I'm not sure if I'm using the wrong address in Wowlet, but no data is being transferred and hence the wallet is not syncing with my full node (see screenshot below)

(http://forum.wownero.com/custom_avatar/26a38e2f841f24d29ae609863b14bbf0ada1259c.png)

Any troubleshooting tips?
Title: Re: How to setup a Full Node with Tor/i2p
Post by: qvqc on Jul 27, 2021, 12:46 AM
use cli wallet with i2pd on same machine, you proxy the wallet through i2p

`./wownero-wallet-cli --proxy 127.0.0.1:4447 --daemon-address axrmv5ucdghi5b4fklx4kjta2c3cwygxs6ctme4tunbvmpmbnm7q.b32.i2p:34568`

keep in mind i2p is smaller network than Tor and it takes some time for your node to become well routed. docs say connections can be slow/spotty up to a week after leaving the node up 24/7
Title: Re: How to setup a Full Node with Tor/i2p
Post by: wow4reedom on Aug 07, 2021, 06:09 PM
Hey @qvqc , QQ now that I've got a Full Node running as a service, what command do I type in the Terminal to check to if my node is still synchronized with the blockchain?
Title: Re: How to setup a Full Node with Tor/i2p
Post by: heady_wook on Aug 08, 2021, 01:36 AM
How can I do this on Manjaro, an Arch distro? I am running wownero-x86_64-linux-gnu-2bdd70d65 which is located at /home/manjaro/Downloads/
I want it through Tor. I am mining and wish to connect my node to my wallet.
Title: Re: How to setup a Full Node with Tor/i2p
Post by: orklemerkle on Aug 08, 2021, 06:01 AM
Assuming it's on the same machine, try `wownerod status`, or `curl http://localhost:34568/get_info`. Compare the reported height against other nodes, e.g. block explorers.

From another machine, you can use the curl command above, replacing `localhost:34568` with your node's RPC address:port combination. It also works with remote nodes! (But if it's a Tor or I2P address, you'll need to tell curl to use the right proxy.)

Note that current blockchain height is one more than the latest block's height.
Title: Re: How to setup a Full Node with Tor/i2p
Post by: orklemerkle on Aug 08, 2021, 06:49 AM
***Brief disclaimer***: I haven't personally tested these commands. I might have missed something obvious. Your system might not work exactly the way I imagined it. And be very careful whenever you have `sudo` and `rm -rf` together!

## Setup steps

It's mostly the same as Ubuntu in the OP, as you're still dealing with `systemd`. There are a couple of Debian-isms that you'll need to change, though:

### Setup Directories and User

Instead of:

    sudo addgroup --system wownero
    sudo adduser --system wownero --home /var/lib/wownero

Do:

    sudo groupadd --system wownero
    sudo useradd --system --gid wownero --shell /usr/bin/nologin --home-dir /var/lib/wownero --create-home

### Setting up Tor/i2p

Instead of:

    sudo apt install i2pd tor

Do:

    sudo pacman -S tor i2pd

You might want to refer to the Arch wiki: Tor](https://wiki.archlinux.org/title/Tor), [I2P (https://wiki.archlinux.org/title/I2P).

## Optional: Moving your blockchain across

Since it sounds like you've been running `wownerod` under your user ID, you can copy or move the blockchain across instead of having to wait for it to sync again from scratch. (If I got it wrong, and you *don't* have the blockchain downloaded already, skip this section.)

Do this *after* creating the user and directories, but *before* you start `wownerod.service`. *Make sure* that there are no running instances of `wownerod`, either as your user or as a service.

    ps auwx | grep wownero

Make sure this shows nothing running, except maybe grep itself.

    sudo mkdir -p /var/lib/wownero/.wownero/
    sudo rm -rf /var/lib/wownero/.wownero/lmdb # delete DB if it already exists
    sudo cp -a ~/.wownero/lmdb /var/lib/wownero/.wownero/
    sudo chown -R wownero:wownero /var/lib/wownero/.wownero

Substitute `mv` for `cp -a` if you'd prefer to move the blockchain instead of copying it.

Now you can start `wownerod.service` and continue from there.
Title: Re: How to setup a Full Node with Tor/i2p
Post by: bimmer on Aug 28, 2021, 04:55 AM
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
Title: Re: How to setup a Full Node with Tor/i2p
Post by: h0dl3r on Sep 01, 2021, 04:44 AM
y734rmk4na6eab4outppg5sdwkwquw3k7d65fsl7p4lsr4ccntwa.b32.i2p:34565
xbynn7n7434bysjwhdz3cjtjuii3wfc7bex7zdjv6ucsx4vnd2xa.b32.i2p:34568
kuswfmv5eudmkwpwsre2mvubluliqkz6mxpl35yy2utt2fqacdwueaad.onion:34566/34568
Title: Re: How to setup a Full Node with Tor/i2p
Post by: cyberblade on Aug 13, 2022, 02:08 PM
Here is my new node adr... CyberLife Node online...

YOUR I2P P2P ADDRESS
4b23ht57c43ehzkwsvvpeojhq3kei74upfi7pmusxj4ayqh74aea.b32.i2p:34565
YOUR I2P RPC ADDRESS
mmwqzzhen2ko5gkjpl5f3gmifwjwqnmr6mwb27m5gsvfkrj24ygq.b32.i2p:34568
YOUR TOR P2P/RPC ADDRESS ( :34566 / :34568 )
w4lx3lfcm5j7sq37jb3afk7iamolfmowumgjuvt577c7b3bbkvuuw7id.onion
Title: Re: How to setup a Full Node with Tor/i2p
Post by: cyberblade on Aug 16, 2022, 08:14 PM
YOUR I2P P2P ADDRESS
zdorb7kna4qc753ne3ryehvrdyxxm4i62nmogg57oz56mmfhvxpa.b32.i2p:34565
YOUR I2P RPC ADDRESS
erfhsamaheehr4rteikojeu6kei4z5kmdyp3gyo37ggceivnroeq.b32.i2p:34568
YOUR TOR P2P/RPC ADDRESS ( :34566 / :34568 )
c4stcqg3ndfrof5yfnhw7lbmhpbpdrhewn6nsilfsesnkryfsam3otyd.onion
Title: Re: How to setup a Full Node with Tor/i2p
Post by: purplewow on Nov 14, 2022, 08:31 PM
@qvqc, I followed these instructions on Ubuntu 22.04.1 LTS Server edition and can't get i2pd to work, with the following errors:

$ sudo systemctl status i2pd.service
× i2pd.service - I2P Router written in C++
     Loaded: loaded (/lib/systemd/system/i2pd.service; enabled; vendor preset: enabled)
     Active: failed (Result: core-dump) since Mon 2022-11-14 14:17:28 UTC; 6min ago
       Docs: man:i2pd(1)
             https://i2pd.readthedocs.io/en/latest/
    Process: 1070 ExecStart=/usr/sbin/i2pd $DAEMON_OPTS (code=exited, status=0/SUCCESS)
   Main PID: 1136 (code=dumped, signal=SEGV)
        CPU: 35ms

Nov 14 14:17:23 ubuntu systemd[1]: Starting I2P Router written in C++...
Nov 14 14:17:24 ubuntu systemd[1]: Started I2P Router written in C++.
Nov 14 14:17:28 ubuntu systemd[1]: i2pd.service: Main process exited, code=dumped, status=11/SEGV
Nov 14 14:17:28 ubuntu systemd[1]: i2pd.service: Failed with result 'core-dump'.

---and---

$ sudo tail -f /var/log/i2pd/i2pd.log
[sudo] password for signoi:
18:32:31@280/none - i2pd v2.39.0 starting
18:32:32@280/error - RouterInfo: Can't open file
18:32:32@280/warn - NetIface: interface with yggdrasil network address not found
18:35:08@973/none - i2pd v2.39.0 starting
18:35:08@973/error - RouterInfo: Can't open file
18:35:08@973/warn - NetIface: interface with yggdrasil network address not found

Can't find any useful references online regarding "error - RouterInfo: Can't open file". Any idea how to resolve this issue?
Title: Re: How to setup a Full Node with Tor/i2p
Post by: houndvoyager on Nov 24, 2022, 10:09 AM
I set up a remote node on a VPS and made it accessible through Tor.
Checking the status page works and connecting to the node is possible.

On the other hand, I get this whenever I connect to it in WOWlet:
(http://forum.wownero.com/custom_avatar/45c0bd649acf0deab0632d4390fdec1585a5af5e.png)

As you can see, the wallet isn't syncing :frowning:
Any clue how to fix this?

(I'm running Debian 11 for the server, if that makes any difference)

Thanks!
Title: Re: How to setup a Full Node with Tor/i2p
Post by: elscorcho on Jan 01, 2023, 06:43 AM
2yc3xc7qr4v7b47llbezex7drkk66pc2xiqq4rrgb2osk32lrzkau5qd.onion:34566
Title: Re: How to setup a Full Node with Tor/i2p
Post by: traumfab on May 08, 2024, 03:32 PM
I was going crazy because I was trying to enter the address inside wowlet and it didn't work...
Then someone told me that on wowlet tor addresses currently don't work (unless you use wowlet with tails)
So I add my own...
jhy4hqymdkfj2u7bdi7m2vr5qheom7gjyg7fraktnlyksalhmpbemiqd.onion:34568