3D
Run I2P as a service
Windows:
Configure it at install time
or use
install_i2p_service_winnt.bat
net start i2p
and
uninstall_i2p_service_winnt.bat
from the installed I2P directory.
Linux (Ubuntu):
See
https://help.ubuntu.com/community/I2P
if you did a normal install.
If you did the APT method above:
1. Edit the default I2P files
gedit /etc/default/i2p
2. Set RUN_DAEMON to "true"
RUN_DAEMON="true"
3. Start the I2P service
service i2p start
4. Make sure /etc/rc5.d/ has a I2P symbolic link in it.
4 Tor Tweaks
4A
Tor IRC
1. Set Tools->Preferences-Proxy
Type: SOCKS 5/Host:127.0.0.1/Port 9050
2. Accounts->Manage accounts->add
3. set server without protocol prefix
4. set proxy to use global
4B
Specify an Exit Node in Tor
1. View network.
2. Right click on a node and copy it’s Finger Print.
3. Add this to your torrc and restart Vidalia
ExitNodes $253DFF1838A2B7782BE7735F74E50090D46CA1BC
StrictExitNodes 1
Note: You are also suppose to be able to use hostname.exitnode.exit, but I’ve not gotten this to work.
More info at https://www.torproject.org/docs/faq#ChooseEntryExit
4C
Make Tor accessible to your network
1. Edit your torrc.
2. Add line “SocksListenAddress some-ip-address”.
3. If using Polipo, edit the Polipo.conf file and edit the “proxyAddress” and the “allowedClients” settings.
4D
Run Tor as service in Windows
Windows:
1. Run:
cd "c:\Program Files\Vidalia Bundle\Tor"
2. Then:
tor -install
3. Other commands for stoping, starting and removing later:
tor -service start
tor -service stop
tor -remove
4E
To make Vidalia work again in Window after making Tor a service
1. CD into c:\Program Files\Vidalia Bundle\Tor and run:
tor --hash-password somepassword
Note: This output contains the hash you will use.
2: Add this to the torrc you will locate in C:\
ControlPort 9051
HashedControlPassword 16:B0AB72FC4E3A30D560A3524C79E7F26CF350A8504E73210426CCBE2373
3. If the service is already installed, run:
tor -remove
4. Not run this to set up your config:
tor -install -options -f C:\torrc ControlPort 9051
5. Now when you start, Vidalia will ask for the password to connect.
4F
Run Tor as service in Linux (Ubuntu)
1. Install Vidalia and dependencies.
2. edit /etc/default/tor.vidalia and set:
RUN_DAEMON="yes”
3. Make sure /etc/rc5.d/ has a Tor symbolic link in it.
4. May have to use
sudo /etc/init.d/tor start
to get it going, but it should start on the next reboot also.
4G
To make Vidalia work again in Linux after making Tor a service
1. Edit torrc
nano /etc/tor/torrc
and add
ControlPort 9051
HashedControlPassword 16:B0AB72FC4E3A30D560A3524C79E7F26CF350A8504E73210426CCBE2373
2. then restart the daemon:
/etc/init.d/tor restart
4H
Torify vs Torsock (hint:use Torsocks) in Linux
1. Run the following in order:
sudo tcpdump port 53
and in another terminal:
torify firefox
2. Web browse someplace, notice DNS traffic.
3. Run the following in order:
sudo apt-get install torsocks
sudo tcpdump port 53
and in another terminal:
torsocks firefox
4. Web browse someplace, notice NO DNS traffic.
5 Setting up a Tor Hidden Service
5A
Just a simple Tor Hidden Service
1. In Vidalia go to Settings->Services
2. Click the plus symbol and configure Virtual Port, Target and Directory Path. For example:
Virtual Port: 80
Target: 127.0.0.1:80 or just 127.0.0.1
Directory Path: c:\torhs or /home/username/torhs
3. Click ok, then go back into Services to copy out your .onion address.
5B
Backing up Tor Hidden Server Key
1. In Vidalia go to Settings->Services, and note the location set in “Directory Path:“.
2. In this path you should find two file to backup, hostname and private_key.
3. To restore on a new Tor install you can just copy these files to a new path, and create a Hidden Service that points to the directory they are placed in.
6 Working with I2P Tunnels
6A
Using the built in web server (Jetty) I2P Tunnel
1. Find the eepsite\docrootfolder under your I2P profile (location varies depending on how you installed I2P, see notes at end).
2. Edit the HTML files to your liking.
3. Go into I2P Tunnel
http://127.0.0.1:7657/i2ptunnel/
and start the built in I2P Webserver.
4. When it is up, click the Preview button to see your site and its Base32 address.
5. You may want to enable the “Auto Start(A):” check box.
6B
Make SSH Server and SOCKS Tunnel
1. Make a Standard server tunnel, set target and port.
2. Create client tunnel of type SOCKS 4/4a/5, take defaults other than setting port (I use 5555).
3. In Putty, under connection, set the proxy to 127.0.0.1 on port 5555 and set “Do DNS name lookup at proxy” to yes.
6C
Backing up I2P Tunnel Key
1. Under a server tunnels settings, note its “Private key file(k)” setting.
2. This is the path, or path relative to the active I2P profile, to the file you need to backup.
3. To restore on a new I2P install you can just copy it to the new install’s profile and make sure the new tunnel’s settings are mapped to it.
6D
Naming and announcing your eepSite
1. Check that you name is not already in use.
http://127.0.0.1:7657/susidns/addressbook.jsp
2. Set a website name under server tunnel settings.
http://127.0.0.1:7657/i2ptunnel/edit.jsp?tunnel=3
3. Copy “Local destination(L):” key.
4. Add it to you master address book list.
http://127.0.0.1:7657/susidns/addressbook.jsp?book=master
5. Register yout name with a subscription service if you like, stats.i2p for example.
http://stats.i2p/i2p/addkey.html
6. Announce in the forums if you wish, in the form:
6E
Encrypted Lease Set
1. Copy local destination or Base32 address:
bvpuvudy3hqxhspfgt7mb3ahsjawwcnqkkfdkhviaxpa4zb6qnia.b32.i2p
or
fTahDS7dipsSyqMQJVVKOOVL9mwkW03xNOC7TOTolGXjPYV9utMrac0TtJNVXHcTnuhvJ
mB4E85EzFd-mBDyU1VXpa5X070D0qNSuym3mEa2Esv7DqUa8lFhjSxf0u-Gc19ogv1woLUIy
fmPPecW96JNnkBB-9cGC2CWYu3Lgcu-0whRtz-Vy2NsxY6FdFkyDjtl-uTclmOwLnVrcgTzlNyq
UaiuSh154-R342Y3-BJiIL4gqWYL8A7TP9~rChgtoXwOquiHnrtbwpJejYEWcJWvtl43mOww4i0
Lw418WLGQZSxo~G1RU1tM51LKuCyAcnKtTXHfflh61TE1Oe2p4ZSzCSqjxcZRP4kt2xzj4z69
96U5K1I6PeI7PM5GZZi0LO4wDsdXfCTKXII6Z17fCXhqAHu4-OjAiDjrZ2felisAsTvd4uPiBmizLR
BIaYKUtMQEapWYndJcStnPXL1lhG1aiSfT4virorDfCTLBgGS-EZY9XyQFj~zHkakAnbYiAAAA
and key
8gQGEw7bLpHIhW8lgcdqWT8UrmZQrGbHTTaSZf2~Jfk=
2. Go to I2P internals->Keyring and add the value.
3. You should now be able to use that server tunnel.
Other Notes:
default i2p hops: 2 for exploratory, 3 for Client
Profile locations as a service:
C:\Windows\system32\config\systemprofile\AppData\Roaming\I2P\
C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming\I2P
/usr/share/i2p/
C:\Users\username\AppData\Roaming\i2p
Web servers for testing:
Linux: apt-get install apache2
Windows:
http://rejetto.com/hfs/
Proxy Selector Plugin
https://addons.mozilla.org/en-US/firefox/addon/proxy-selector/
Widecap Download
(seems to proxify some apps, but not all, in Windows 7 32 and 64bit. Has some DNS leak issues):
http://widecap.com/
Telnet server to test Widecap and Torsocks with:
telehack.com
Add this to your torrc to run a local DNS server:
DNSPort 53
AutomapHostsOnResolve
1
base32calc.py
| |
#!/usr/bin/env python #Based on Duck's script from http://forum.i2p2.de/viewtopic.php?t=4367 import base64, hashlib, sys
if len(sys.argv) != 2: print 'Usage: convertkey.py <base64key>' sys.exit(1)
key = sys.argv[1] raw_key = base64.b64decode(key, '-~') hash = hashlib.sha256(raw_key) base32_hash = base64.b32encode(hash.digest()) print base32_hash.lower().replace('=', '')+'.b32.i2p'
|
My spot in CipherSpace
http://irongeeks.i2p/
or
http://ecduxoion5uc5hnvzjxff6iiwhdwph6gse3dknyvlo7e6gaeho7a.b32.i2p/