How can I create an I2P on Rasberry Pi and is it safe?

How do I create a Rasberry Pi for i2P and would it be safe?

From reddit, Reddit - The heart of the internet

Setting Up an I2P Router on a Raspberry Pi

How to set up I2Pd on a headless Raspberry Pi to act as a router for other devices on your network - I’m using an ancient Raspberry Pi 1B:

  1. Install a headless Raspberry Pi OS image on an SD Card (only needs 2GB capacity for the full install)

  2. Set up your Raspberry Pi to run in headless mode with a static IP address on your network

  3. SSH to your Pi and install I2Pd following the instructions here

  4. Make these changes to /var/lib/i2pd/i2pd.conf to make the router accessible from other devices on the network:

loglevel = none

[http]
address = 0.0.0.0
strictheaders = false

[httpproxy]
address = 0.0.0.0

[socksproxy]
address = 0.0.0.0

[upnp]
enabled = true

5. Set I2Pd to always start on boot:

$ sudo systemctl enable i2pd.service

6. Turn off the swap file to increase SD card life:

$ sudo systemctl disable dphys-swapfile.service

7. Open the firewall on the Pi:

$ sudo apt install ufw
[restart the Pi]
$ sudo ufw allow 7070/tcp

8. Browse to http://[your Pi’s IP address]:7070/ and you should get the i2pd webconsole (if you can’t connect, try running `curl http://localhost:7070/` on your Pi to confirm whether it’s an i2pd problem or a network problem)

9. Set up a browser on another device to use [your Pi’s IP address], port 4444 as an HTTP proxy (there’s a setting for this in Firefox)

This works for accessing .i2p sites. I just started running it, so I haven’t seen whether this configuration is optimal for long-term use.

Is step 4 safe? I plan to have I2P behind a VPN on other Rasberry Pi with 2 LAN ports and laptop will connect to other LAN.

I want to provide some of my bandwidth to I2P and want it randomly vary but also depend on laptop usage. If I am out, it can use all bandwidth. I am torrenting and in I want it to not use bandwidth or use less.