Idea is to have older PC or Raspberry Pi or some cheap copy of it running all the time with i2pd router on it and then connect to i2p console and http/SAM tunnels with my main PC.
Question is how do I do the connection part.
There are some reddit posts on this topic titled:
Allowing access to I2P router on the local LAN _ i2p
https://old.reddit.com/r/i2p/comments/v ... ess_to_i2p
How can i access to my webconsole from m'y local network _ i2p
https://old.reddit.com/r/i2p/comments/r ... _access_to
How to access i2p console from lan_ _ i2p
https://old.reddit.com/r/i2p/comments/1 ... ess_i2p_co
1. suggestion is SSH:
I'm guessing I would just have to setup "user"(with password) on 192.168.x.x and I would have a secure/encrypted connection.ssh -L 7657:127.0.0.1:7657 user@192.168.x.x from the device you want to access the webconsole from, then just open
http://127.0.0.1:7657/ in your browser
This looks like the easiest and most secure option.
I'm also guessing I could replicate this for the HTTP/HTTPS/SAM clients(ports).
2. suggestion is nginx:
Not sure what is this, ignoring it at the moment.setup nginx to forward all traffic to port 80 to 127.0.0.1:7657
3. suggestion is this:
So on what PC do I do this router/client, I would guess router. Is 192.168.1.10 client address? I'm just not sure how clientApp.0.args line works. Could someone clarify this or direct me to the right part of documentation?I2P+ / I2P: Locate the file clients.config.d/00-net.i2p.router.web.RouterConsoleRunner-clients.config
situated in your config directory and modify the line
clientApp.0.args=7657 127.0.0.1 -s 7667 127.0.0.1 ./webapps/ with your desired LAN address. You can add
multiple addresses separated by commas, and the -s argument enables https console access on the specified port (in this case
7667). e.g.
clientApp.0.args=7657 127.0.0.1,192.168.1.10 -s 7667 127.0.0.1,192.168.1.10 ./webapps/
How do I connect to router from client?
Suggestion 4 instructs http://your.lan.ip:port, but does that mean that all traffic flowing to router is unauthorized(anyone on my LAN can use my router) and without encryption(data on my LAN could be read by third party). While I would not say it's a problem for me(I hope) this looks very bad practice in general, especially when using wireless network.
I don't know how to interpret this.i2pd: Locate your i2pd.conf file and under the [http] section modify the line address = 10.0.0.5 to suit
Docs say:
address IP address of an interface tunnel is connected to host from.
So I guess address = router.lan.ip
That is PC running router will have static address router.lan.ip and I will then put the line address = router.lan.ip on that same PC?
4. suggestion is this:
This is same as in 3. suggestion.For the console, open the
~/.i2p/clients.config.d/00-net.i2p.router.web.RouterConsoleRunner-clients.config file in a text editor and
change the 127.0.0.1 to your LAN ip and restart the router.
I will get to this part after I set up other stuff.For the http proxy, go to http://your.lan.ip:7657/i2ptunnelmgr and select "I2P HTTP Proxy". In the "Reachable by" drop-
down select your LAN ip. Then stop and start the tunnel again.
5. suggestion is this:
Setting Up an I2P Router on a Raspberry Pi : i2p
https://old.reddit.com/r/i2p/comments/z ... an_i2p_rou
Looks like suggestions 3 and 4, which I suspect to be insecure.
What does address = 0.0.0.0 mean?
https://en.wikipedia.org/wiki/0.0.0.0
So if I'm understanding this correctly, router will accept all connection and process them as localhost. That is me doing router.lan.ip:port from another PC will be same as localhost:port on that PC?When a program binds to 0.0.0.0, it accepts connections from localhost (127.0.0.1), LAN IPs (e.g., 192.168.x.x) and public IPs (if configured and firewall allows it),
But because we setup firewall[5] 7070/tcp we can only use 7070 from other PC? Still it looks like anyone can use it and I'm not sure how big of a problem this could become.
If you can please clarify/correct the information above.
As mentioned for the final solution I would like to connect to i2p console and http/SAM tunnels with my main PC in a secure way. Can i2pd running on router PC do this and what is the recommended way?
Bonus questions:
1. If I were to buy "PC" to run i2pd router(almost explicitly) like Raspberry Pi what would you recommend and why? I'm guessing it would be something cheaper and less powerfully then the Raspberry Pi but I'm not sure.
2. This newly generated LAN traffic(~200kb/s) should be mostly inconsequential to the traffic that travels to internet/ISP(internet speed will stay same, well same as if I only used one PC as router and client)? I only have ISP router but I would assume it can handle more traffic then my ISP is allowing me to send on internet.