Files
sam-forwarder/README.md.asc

114 lines
4.7 KiB
Plaintext
Raw Normal View History

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
2018-07-26 17:50:46 -04:00
# sam-forwarder
2018-12-03 12:13:06 -05:00
*think of it as a shell-scriptable re-implementation of i2ptunnel. That's*
*pretty much it.*
2018-08-16 13:46:22 -04:00
Forward a local port to i2p over the SAM API, or proxy a destination to a port
on the local host. This is a work-in-progress, but the basic functionality is,
2018-08-16 17:25:01 -04:00
there and it's already pretty useful. Everything TCP works, but UDP forwarding
has much less real use than TCP. Turns out UDP was less broken than I thought
though. Yay.
Since it seems to be doing UDP now, if you'd like to donate to further
development there are some wallet addresses at the bottom of this readme for
now.
## building
Just:
make deps build
and it will be in the folder ./bin/
2018-07-28 10:17:32 -04:00
[![Build Status](https://travis-ci.org/eyedeekay/sam-forwarder.svg?branch=master)](https://travis-ci.org/eyedeekay/sam-forwarder)
2018-09-13 20:01:57 -04:00
## [usage/configuration](USAGE.md)
2018-07-28 03:51:05 -04:00
2018-09-12 23:58:25 -04:00
## binaries
Two binaries are produced by this repo. The first, ephsite, is only capable
of running one tunnel at a time. The second, samcatd, is more advanced. It can
start multiple tunnels with their own settings, or be used to start tunnels on
2018-09-13 20:01:57 -04:00
the fly like ephsite by passing the -s option. Eventually I'm probably just
going to use this to configure all of my tunnels.
Current limitations:
====================
2018-09-13 20:01:57 -04:00
I need to document it better.
[Besides fixing up the comments, this should help for now.](USAGE.md). I also
need to control output verbosity better.
2018-09-12 16:52:50 -04:00
I need samcatd to accept a configuration folder identical to
/etc/i2pd/tunnels.conf.d, since part of the point of this is to be compatible
with i2pd's tunnels configuration.
2018-09-18 01:27:11 -04:00
It doesn't encrypt the .i2pkeys file by default, so if someone can steal them,
then they can use them to construct tunnels to impersonate you. Experimental
support for encrypted saves has been added. The idea is that only the person
with the key will be able to decrypt and start the tunnels. It is up to the user
to determine how to go about managing these keys.
TCP and UDP are both working now. Additional functionality might be added by
adding other kinds of protocols overtop the TCP and UDP tunnels as a primitive.
2018-12-03 12:13:06 -05:00
A very basic UDP based VPN will be added soon. Obviously these won't be i2pd
compatible. Not sure what to do about that, except maybe make a "convert" tool
that will cull samcatd-specific options.
2018-07-30 22:01:05 -04:00
I've only enabled the use of a subset of the i2cp and tunnel configuration
options, the ones I use the most and for no other real reason assume other
people use the most. They're pretty easy to add, it's just boring. *If you*
*want an i2cp or tunnel option that isn't available, bring it to my attention*
*please.* I'm pretty responsive when people actually contact me, it'll probably
be added within 24 hours. I intend to have configuration options for all
relevant i2cp and tunnel options, which I'm keeping track of
[here](config/CHECKLIST.md).
2018-08-01 22:25:13 -04:00
2018-07-30 22:01:05 -04:00
I should probably have some options that are available in other general network
2018-09-13 20:01:57 -04:00
utilities. I've started to do this with samcatd.
2018-07-30 22:01:05 -04:00
2018-08-08 16:13:09 -04:00
I want it to be able to save ini files based on the settings used for a running
forwarder. Should be easy, I just need to decide how I want to do it. Also to
focus a bit more. I've got more of a plan here now. tunconf has the loaded ini
file inside it, and variables to track the state of the config options while
running, and they can be switched to save options that might be changed via some
interface or another.
2018-08-08 16:13:09 -04:00
2018-09-12 16:52:50 -04:00
Example tools built using this are being broken off into their own repos. Use
the other repos where appropriate, so I can leave the examples un-messed with.
It would be really awesome if I could make this run on Android. So I'll make
2018-09-12 16:52:50 -04:00
that happen eventually. I started a daemon for managing multiple tunnels and I
2018-09-13 20:01:57 -04:00
figure I give it a web interface to configure stuff with. I'll probably put that
in a different repo though. This is looking a little cluttered.
2018-08-22 22:59:04 -04:00
2018-09-12 16:52:50 -04:00
TLS configuration is experimental.
2018-09-13 20:01:57 -04:00
I'm eventually going to make the manager implement net.Conn. This won't be
exposed in the default application probably though, but rather as a library.
Donate
- ------
### Monero Wallet Address
XMR:43V6cTZrUfAb9JD6Dmn3vjdT9XxLbiE27D1kaoehb359ACaHs8191mR4RsJH7hGjRTiAoSwFQAVdsCBToXXPAqTMDdP2bZB
### Bitcoin Wallet Address
BTC:159M8MEUwhTzE9RXmcZxtigKaEjgfwRbHt
-----BEGIN PGP SIGNATURE-----
2018-12-03 17:24:52 -05:00
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAlwFrTAACgkQ11wDs5te
FOGInAf+JmBR3SladLuDAnd/ADI0Dj8WfZDUDTvSZYoeQaom94upysxYWWmhtvQu
+ewNGshdLp/KI60m3L8YhcTSW+XuNyE/Ibb1jgpCIgyF6ARixD+xmOXjTHNZgeeh
juIe14SXr9LO4XzsMio8yS951JJYMWeD6tGIWmM8qYViKjmPDsfF+2v3jYAqyyqR
a+HIBHtphgSVGd7BtaJS6DS2OFGKNzmNqaxWbQRQbUQUSbf0wTFA+YmLQ2s4p+YG
saPt2bOmzS0uRivrtXHETuOF57yvI2QHMS/y1CZJ60RAhIlyqUm64CoGGfbRGhJJ
SaPEQ8tYHBjUHpHlkSTlFsadGFLooA==
=rxe6
-----END PGP SIGNATURE-----