How to set up your own i2p-server (kinda web-server, but not on the web

Summary of what i think i did.
Might contain typos and other errors.
It is a bit too detailed, but i ran across lots of infos/how-to's which skipped important parts.
0) OverviewYou need a server with ssh-access, privoxy, tor and i2p
You sshforward i2p-router and privoxy port to access the webinterface locally
You copy the website to the server, ~/i2p/eepsite/docroot
You set up the webserver jetty in the i2prouter-console, I2PTunnel
Finally you will have to announce it to the i2p world.
1) What you need:a) a 24/7 machine
b) ssh-access to it, and the knowledge involved
c) an existing website (index.html)
d) bit of time, bit of headeaches (seriously)
2) On the server side- Code: Select all
ssh me@server
and
- Code: Select all
apt-get install privoxy tor i2p
edit
/etc/privoxy/config, and append:
- Code: Select all
forward-socks5 / 127.0.0.1:9050 .
forward-socks5 .onion 127.0.0.1:9050 .
forward .i2p localhost:4444
Restart privoxy
- Code: Select all
/etc/init.d/privoxy restart
edit
~/.i2p/clients.config and make this line:
clientApp.4.startOnLoad=true
like this:
- Code: Select all
clientApp.4.startOnLoad=false
The comment says it all: if you start i2prouter it won't try to open a web-browser
(if you don't make that change the web-browser simply won't start, it seems, but i changed it anyway)
- Code: Select all
i2prouter start
- Code: Select all
exit
the ssh to the server
You will probably want to forward the port you find at:
i2p-router-console, left panel -> I2PServices, Network
from your network router (with usual port-forwarding).
3) On the client site
If you got them installed:
- Code: Select all
/etc/init.d/privoxy stop
/etc/init.d/tor stop
i2prouter stop
- Code: Select all
ssh -L7657:127.0.0.1:7657 -L8118:127.0.0.1:8118 -L6668:127.0.0.1:6668
which are the ports for the i2p-router, for privoxy and for i2p-irc
open iceweasel/firefox, menu-bar -> Edit -> preferences -> advanced -> network
set it to make use of
127.0.0.1 and port 8118
(which is just the same as if you would be running privoxy locally. If you had that, keep as is.
I am not sure if 127.0.0.1 or localhost is of importance, i am not sure about the need to clear the cache or restart iceweasel.
That takes a bit of fiddling. Looks like it suddenly would work. Patience won't hurt).
open an arbitrary website to check if you still got internet access:
https://duckduckgo.comOnce here enter
"am i using tor?
and click on
https://check.torproject.org/If you don't use tor
a) fiddle with the settings of iceweasel. If that doesn't help:
b) exit the ssh connection and run the ssh command again
Hopefully it won't take to long to get it sorted.
4) the path for an eepsite (~/.i2p/eepsite/docroot) rsync your existing website (index.html, css directory, whatnot to the server)
I first copy it to the existing folder /home/me/Temp at the server:
- Code: Select all
rsync -ruv index.html css me@server:Temp
ssh me@server
Make a backup of the existing eepsite It contains a good docu
- Code: Select all
cd ~/.i2p/eepsite
cp -r docroot docroot_original
Copy your site in place:
- Code: Select all
cd docroot
cp -r ~/Temp/{index.html, css} .
5) go back to the web-browser at the clientopen the i2prouter
http://127.0.0.1:7657In the left panel click on
I2PTunnel
Then click on
I2P webserver
click on Auto Start(A): (Check the Box for 'YES')
Enter a name you like (all lower case, ending with .i2p) at:
Website name(W): h4xsor.i2p
and copy the __complete__ Local destination(L):
Scroll down and click on "Save"
6)
Go back to the router-consolehttp://127.0.0.1and click on Addressbook, then master
Enter the name of your eepsite
h4xsor.i2p
and the Local destination just copied from the I2PTunnel.
click on save
You should now be able to access your eepsite yourself (but the world does not know about it, yet).
As we didn't ssh-forward port 7658 with ssh, you can't access it from the link "Website" at the routepage (7657)
Either use your name "h4xsor.i2p", or go to
router-console, I2PTunnel, and click on "Preview".
7) Inform the world How to let the world know about your haxing skills eepsite, dealing with cain&abel, john the ripper and all the other loi-c-ool tools, i will add later
(mainly cause i don't know it yet. It is mentioned in said original eepsite we backed up earlier).
Edit: As far i see go here:
http://stats.i2p/i2p/addkey.htmlenter your i2p sites name and the Local destination(L), to be found at the I2ptunnel-manager.
Announce it here too:
http://forum.i2p2.de/viewforum.php?f=16 ... 04695ec4c5_after_ you read the sticky.
All as far i can tell.