aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorClément Zrounba <6691770+clement-z@users.noreply.github.com>2023-11-21 13:47:35 +0100
committerClément Zrounba <6691770+clement-z@users.noreply.github.com>2023-11-21 13:47:35 +0100
commitd89003fee31325dcc0f7d115d9e2b10109e25491 (patch)
tree26fdf53baf4b4071490a46dfac7363715b271c6a /README.md
parent46341722d29132b83619b95b3c6427b10b96fe1a (diff)
downloadproxy-tcp-ssh-master.tar.gz
proxy-tcp-ssh-master.zip
Diffstat (limited to 'README.md')
-rw-r--r--README.md43
1 files changed, 43 insertions, 0 deletions
diff --git a/README.md b/README.md
index e69de29..e6b11b7 100644
--- a/README.md
+++ b/README.md
@@ -0,0 +1,43 @@
+# Establish persistent ssh tunnels
+
+Establish a persistent TCP tunnel between a local endpoint and a remote server.
+If the connection drops, reconnection attempts are made every 10 seconds.
+
+```
+SYNOPSYS
+ ./proxy-tcp-ssh.sh (-S|--ssh-host) SSHHOST (-t|--tunnel) TUNNELSPEC [OPTIONS]
+DESCRIPTION
+ Spawn TCP tunnels between your computer and a remote SSH server. If the
+ connection fail for some reason, the script will try to re-create the
+ tunnels automatically every TIMEOUT seconds.
+OPTIONS
+ -S,--ssh-host SSHHOST
+ Set the ssh host. SSHHOST can be either the full hostname as you would
+ specify it on the ssh command-line (e.g. [user@]myserver.com or hostname
+ if it is set up in your ssh config).
+
+ -t,--tunnel TUNNELSPEC
+ Specify the ports to tunnel as a comma-separated list of either single
+ ports or port pairs (e.g. -t 443,80:8080 will establish tunnels
+ local:443-remote:443 and local:8080-remote:80). Note that you have to
+ be a privileged user (i.e. a user with the CAP_NET_BIND_SERVICE
+ capability) to be able to bind to ports below 1024.
+
+ -p,--ssh-port SSHPORT /!\ Not implemented
+ Set the ssh remote port if different from the default.
+
+ -H,--host HOST
+ Set the tunnel host. HOST can be either the IP or hostname of the
+ server to tunnel to, as seen from the ssh host. Defaults to localhost.
+
+ -i,--interface IF /!\ Not implemented
+ Specify the local interface to bind to. Defaults to localhost. Setting
+ it to 0.0.0.0 will make the tunnel available to other clients on your
+ network (depending on your firewall rules).
+
+ -f
+ Fork the script to the background.
+
+ -h,--help
+ Print this help and exit.
+```