Bitcoin Forum
May 04, 2024, 03:26:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: setup a server to connect to in I2P - how?  (Read 5783 times)
eche|on (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
December 13, 2010, 11:05:21 AM
 #1

Moin!

I think about running a bitcoind in I2P space for others to connect anon to it.
I know nodes need to connect to other nodes.
Now my question:
Is one connection for bitcoin clients enough? Or do I need to setup at least 2 clients as "proxy"?
How do my node act as a proxy? Looks like my node needs to connect via usual internet and should accept connections via I2P.
Does a bitcoin client with the -noirc option not connect to usual IPs?

thank you.

eche|on
1714793208
Hero Member
*
Offline Offline

Posts: 1714793208

View Profile Personal Message (Offline)

Ignore
1714793208
Reply with quote  #2

1714793208
Report to moderator
1714793208
Hero Member
*
Offline Offline

Posts: 1714793208

View Profile Personal Message (Offline)

Ignore
1714793208
Reply with quote  #2

1714793208
Report to moderator
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714793208
Hero Member
*
Offline Offline

Posts: 1714793208

View Profile Personal Message (Offline)

Ignore
1714793208
Reply with quote  #2

1714793208
Report to moderator
1714793208
Hero Member
*
Offline Offline

Posts: 1714793208

View Profile Personal Message (Offline)

Ignore
1714793208
Reply with quote  #2

1714793208
Report to moderator
1714793208
Hero Member
*
Offline Offline

Posts: 1714793208

View Profile Personal Message (Offline)

Ignore
1714793208
Reply with quote  #2

1714793208
Report to moderator
SmokeTooMuch
Legendary
*
Offline Offline

Activity: 860
Merit: 1021


View Profile
December 13, 2010, 12:40:16 PM
 #2

Afaik one connection is enough. All the others are just redundancy.

Date Registered: 2009-12-10 | I'm using GPG, pm me for my public key. | Bitcoin on Reddit: https://www.reddit.com/r/btc
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12968


View Profile
December 13, 2010, 04:53:01 PM
 #3

Only one connection is required, though more is desired for safety.

An I2P "Bitcoin proxy" would have to somehow connect simultaneously to both I2P peers and Internet peers. Otherwise anyone connecting to you would be segmented in I2P.

You will attempt to connect to Internet peers even with -noirc. You will just use the addr/seednode bootstrap mechanism instead of the IRC one. If you want to limit outbound connections to only peers you specify, use -connect=ip or -maxconnections=x in combination with exactly x -addnode=ip switches.

To connect to Bitcoin peers on Tor hidden services, it's necessary to use Tor's MapAddress option. Does I2P's proxy have a similar option of mapping an I2P address to an IP address?

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
BitLex
Hero Member
*****
Offline Offline

Activity: 532
Merit: 505


View Profile
December 13, 2010, 06:59:09 PM
Last edit: December 13, 2010, 08:48:02 PM by BitLex
 #4

Quote
it's necessary to use Tor's MapAddress option. Does I2P's proxy have a similar option of mapping an I2P address to an IP address?

good question,
that's exactly where i'm stuck.

i set up one i2p-node, created a server-tunnel on port 8333 and just started a bitcoin-client that is connected to my main-client (and 7 others, not using a proxy).

now i'm trying to connect to that bitcoin-node through i2p,
so i set up a second i2p-node, added the host and target from first node to its addressbook,
set up a socks-tunnel, set bitcoin to use the socks.

but now what?
have to -addnode my 1st node somehow, but i'v no idea how.



update:
played around a bit more, but my bestest result so far was just a one-way connection.

set up a standard-client-tunnel pointing to first-node.i2p, using it as proxy instead of socks on the second i2p-node,
bitcoin tries to connect, but fails,
connections go from 8 to 9, back to 8 to 9 to 8 ..... on first node, second stays at 0.


here's snippets of debug.logs:

first node
Code:
...
accepted connection
sending: version (85 bytes)
MainFrameRepaint
socket closed
disconnecting node
DelayedRepaint
socket closed
disconnecting node
MainFrameRepaint
accepted connection
sending: version (85 bytes)
MainFrameRepaint
DelayedRepaint
socket closed
disconnecting node
...

second node
Code:
...
proxy connecting
ERROR: Proxy returned error -66
...

if anyone figures out, what todo to make it work, let me know and i'll set it up and leave it running.


theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12968


View Profile
December 13, 2010, 10:11:00 PM
 #5

Addnode only works with IP addresses.

Also, if you manage to get I2P's proxy to translate the IP address properly, make sure you use an address in the 192.0.2.x range. Bitcoin un-proxifies most other private ranges.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
eche|on (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
December 14, 2010, 10:48:57 AM
 #6

Moin

I2P builds up direct tunnels to a special destination.
E.g. a client in I2P needs to setup one tunnel to each destination (server) it wants to connect to. And need to connect the client to the tunnel-entry (local IP 127.0.0.1 port XXXX).

Which results in mostly only one connection possible.
Point of concern is on howto get bitcoin client forget about IPs and not to connect to the IPs.

eche|on
kwukduck
Legendary
*
Offline Offline

Activity: 1937
Merit: 1001


View Profile
December 22, 2010, 09:38:04 PM
 #7

afaik bitcoin gets more ip's from other bitcoin nodes, we have to prevent the client from fetching those IP's somehow and maybe even prevent the server-node from sending them aswell.

14b8PdeWLqK3yi3PrNHMmCvSmvDEKEBh3E
kwukduck
Legendary
*
Offline Offline

Activity: 1937
Merit: 1001


View Profile
January 10, 2011, 04:44:40 PM
Last edit: January 10, 2011, 06:16:48 PM by kwukduck
 #8

How to get connected to bitcoin main blockchain using I2P:

1. Make sure you're running I2P....

2. Create a new client tunnel in your I2P-tunnel config,
set the destination to: kjrqzx73thxebwud4qdznwjy7rd4dcuknfaewjbigb7ooccv2pdq.b32.i2p
pick a nice port you want to use, for example 8383.

3. Start your bitcoin client with argument '-connect=127.0.0.1:8383' (8383 is example, use whatever you picked in your client tunnel)

4. Enjoy your anonymity.

[edit]

it seems i can only get this to work with one pc... i don´t have a clue why others can´t connect... i´ll try to figure it out...

14b8PdeWLqK3yi3PrNHMmCvSmvDEKEBh3E
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!