rahra / onioncat

Official repository of OnionCat, the VPN adapter for Tor and I2P.
https://www.onioncat.org/
GNU General Public License v3.0
228 stars 29 forks source link

hostname registration/lookup via .b32.i2p/.onion #27

Closed gh338 closed 4 years ago

gh338 commented 4 years ago

Would it be possible to autocalculate a .b32.i2p/.onion dest and then upload it to an i2p or tor service (manually configured / passed to ocat ) for central lookup ? Just an idea to be able to deploy onioncat more widely. The lookup service could be hosted and used by any volunteer - should be easy to do with i2p / tor.

rahra commented 4 years ago

Well, basically yes. How exactly should that work? Do you know that there is the option -e to run an ifup script. Actually this could be used to post something to somewhere, e.g. using curl.

Although there are millions of volunteers out there to produce all these quality open source products, as to my observation there are much fewer volunteers once it becomes to reliably run a service ;)

rahra commented 4 years ago

I just pushed an update (8468ae3). The environment now contains variables for the long and short URL. Now you can run Onioncat with the option -e pointing to your if-up script in which you could do something like this:

ip address add $OCAT_ADDRESS/$OCAT_PREFIXLEN dev $OCAT_IFNAME
ip link set $OCAT_IFNAME up 
ip route add table local $OCAT_PREFIX/$OCAT_PREFIXLEN dev $OCAT_IFNAME
curl "https://<your_onion_url.webserver>/?url=$OCAT_ONION_URL&url3=$OCAT_ONION3_URL&ip6=$OCAT_ADDRESS"
gh338 commented 4 years ago

I will test and report back. Thank you so much ! :-D

rahra commented 4 years ago

Did you have any success with your tests?

rahra commented 4 years ago

I close this now. IMO it works but don't hesitate to reopen it again, just in case.