diff options
Diffstat (limited to 'other/reverb/README')
| -rw-r--r-- | other/reverb/README | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/other/reverb/README b/other/reverb/README new file mode 100644 index 0000000..91b34d0 --- /dev/null +++ b/other/reverb/README | |||
| @@ -0,0 +1,116 @@ | |||
| 1 | |||
| 2 | reverb - connection adapter | ||
| 3 | |||
| 4 | by team teso | ||
| 5 | |||
| 6 | |||
| 7 | |||
| 8 | 1. motivation / description | ||
| 9 | |||
| 10 | ehm... imagine two cables that are both male (meaning that the pins look | ||
| 11 | out of it at the plug). imagine putting them together. | ||
| 12 | now imagine the same for both two female plugs of a cable, you will fail | ||
| 13 | also. what you need is a cable adapter with both female or male plugs. | ||
| 14 | |||
| 15 | the same is true for tcp connections (wow, what a parallelism, i'm cool, | ||
| 16 | am i ? :o)=, you can have active (male, yeah) and passive (female, :-) | ||
| 17 | ports, ehm... sockets hehe. normally a connection has one active (male) | ||
| 18 | and one passive (female) socket, and normally the male socket connects | ||
| 19 | into^H^H^H^Hto the female socket. but what if you want to create a link | ||
| 20 | between two sockets of the same type (male + male, female + female). | ||
| 21 | although this is only needed few times (irl this is more often i think ;), | ||
| 22 | it may be helpful. this is what reverb does. | ||
| 23 | |||
| 24 | |||
| 25 | |||
| 26 | 2. usage | ||
| 27 | |||
| 28 | case a) | ||
| 29 | |||
| 30 | normal tcp connection relay, from sourceport to an ip and remote port. | ||
| 31 | |||
| 32 | reverb 2929 193.32.74.203:80 | ||
| 33 | |||
| 34 | will relay one (1) connection experienced on port 2929 to the ip and | ||
| 35 | port specified. | ||
| 36 | |||
| 37 | |||
| 38 | case b) | ||
| 39 | |||
| 40 | accepting two connections relaying content. | ||
| 41 | |||
| 42 | reverb 2992 2991 | ||
| 43 | |||
| 44 | will accept one (1) connection each on the ports and relay all content | ||
| 45 | between them. it doesn't matter (tm) what port the first connection is | ||
| 46 | established on. | ||
| 47 | |||
| 48 | |||
| 49 | case c) | ||
| 50 | |||
| 51 | establishing two connections, relaying content. | ||
| 52 | |||
| 53 | reverb 193.32.74.203:80 210.167.178.38:80 | ||
| 54 | |||
| 55 | establishes two connections to each socketpair and relays the connection | ||
| 56 | data among them. | ||
| 57 | |||
| 58 | |||
| 59 | 3. what for then ehm ? | ||
| 60 | |||
| 61 | you can reverse (reverb ;) a connection establishing order this way. this | ||
| 62 | is useful for a lot of things, such as firewall tunneling for internal | ||
| 63 | connections or whatever. | ||
| 64 | also you can see quickly what is send to a port, or you can link two char- | ||
| 65 | gen ports via tcp, hey cool ehh ? | ||
| 66 | |||
| 67 | conclusion: the ideal addition to tacten err.. netcat. | ||
| 68 | |||
| 69 | 4. new options | ||
| 70 | |||
| 71 | |||
| 72 | times are given in formats like "10", "10s", "2m20s", "1d8h", ... | ||
| 73 | |||
| 74 | |||
| 75 | -c time | ||
| 76 | |||
| 77 | limits the connection timeout on every outgoing connection. once it is | ||
| 78 | reached, reverb terminates. | ||
| 79 | |||
| 80 | |||
| 81 | -l time | ||
| 82 | |||
| 83 | same for the female part, the listening socket. | ||
| 84 | |||
| 85 | |||
| 86 | -d | ||
| 87 | |||
| 88 | daemon mode, go to background. also causes quiet mode. | ||
| 89 | |||
| 90 | |||
| 91 | -q | ||
| 92 | |||
| 93 | quiet mode, don't print all that nasty infos. | ||
| 94 | |||
| 95 | |||
| 96 | -i time | ||
| 97 | |||
| 98 | for active<->active setups you can instance a new connection with it | ||
| 99 | every once a 'time'. for example you can use it to connect every five | ||
| 100 | minutes to a host outside a firewalled network to allow yourself to | ||
| 101 | ssh into the network from the outside | ||
| 102 | (./reverb -d -q -i 5m ownedhost-in-local-network:22 my-home-host:9090 | ||
| 103 | on the owned host, and | ||
| 104 | ./reverb -d -q -l 9090 2020;ssh -p 2020 root@localhost | ||
| 105 | on my-home-host). | ||
| 106 | |||
| 107 | |||
| 108 | |||
| 109 | visit us at teso.scene.at. | ||
| 110 | |||
| 111 | team teso | ||
| 112 | |||
| 113 | |||
| 114 | oh, and please send us feedback at teso@teso.scene.at. | ||
| 115 | |||
| 116 | |||
