Commit Graph

402 Commits

Author SHA1 Message Date
Russ Magee 291bacf2df Fix for issue #11 2018-11-29 18:06:03 -08:00
Russ Magee 3e7f143f7b Fix for issue #11 https://blitter.com:3000/RLabs/hkexsh/issues/11
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-29 18:05:22 -08:00
Russ Magee b6a22ce64a gofmt cleanup 2018-11-28 21:03:20 -08:00
Russ Magee 103d76989e Fixed mis-named goroutine in doShellMode
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 21:08:37 -08:00
Russ Magee 85619f3cc9 Fixed graphviz tag for stdinToPtyWorker goroutine
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 18:55:07 -08:00
Russ Magee 556a9fcfd0 Merge branch 'metalint'
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 18:47:33 -08:00
Russ Magee fc05a9a4a3 Added fixup-gv.sh and Makefile rules to generate annotated goroutines in graphviz output.
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 18:43:53 -08:00
Russ Magee 6fbbcdadb6 Gometalinter cleanup/audit of hkexsh, hkexshd, hkexpasswd
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-25 10:24:10 -08:00
Russ Magee 2da0d8b198 Tweaks to sed expr in code comments 2018-11-24 19:40:45 -08:00
Russ Magee 5eb80f4226 Further graphviz work; named hkexsh goroutines 2018-11-22 23:43:03 -08:00
Russ Magee 738bcf3ba9 Begin experiments with graphviz 2018-11-22 23:09:22 -08:00
Russ Magee fa398159e3 Merge branch 'metalint' 2018-11-22 19:02:41 -08:00
Russtopia 729697b5ee Update 'README.md' - note about where logging goes 2018-11-22 18:00:50 -08:00
Russ Magee 6c6d0cbbb6 Added PNG go-callvis diagrams
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-22 18:13:11 -08:00
Russ Magee 0b668630e7 hkexsh gometalinter cleanup 2018-11-22 16:49:09 -08:00
Russ Magee c6cbd8d681 Replaced go-code-visualizer with go-callvis
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-21 17:06:09 -08:00
Russ Magee b63252dbf6 Added go-code-visualizer PNG and 'make vis' rule to generate
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-20 22:34:16 -08:00
Russ Magee 5fb227b9f8 -Removed WriteDeadline in hkexnet.Close()
-hkexsh: fixed (non-)error handling for file copies

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-20 18:50:09 -08:00
Russtopia 6ac866fdbf Update 'CODE_OF_MERIT.md' 2018-11-19 21:12:37 -08:00
Russ Magee 1452af3fc8 -hkexnet.immClose flag to allow client to close first (-x incomplete output bug)
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-19 19:55:35 -08:00
Russ Magee 8e02810f0e Restored call to c.Close in hkexnet.Close (was causing hangs on client side) 2018-11-19 14:41:42 -08:00
Russ Magee 74a64489e5 Reverted bad hkexnet.Close diff 2018-11-19 14:38:39 -08:00
Russ Magee 673074d618 Reverted hkexnet.Close() deletion, caused hang
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-19 15:26:01 -08:00
Russ Magee 1909786a4b -Removed Close on null failed Listener (hkexshd)
-Removed premature net.Conn.Close() in hkexnet.Close() (hkexnet)

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-19 14:16:48 -08:00
Russ Magee 4345c7bf2d Removed unused consts
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-18 20:28:03 -08:00
Russ Magee 03eff74d8b Added signal handling for hkexshd to respond as well-behaved daemon
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-15 22:57:21 -08:00
Russtopia ee52959fab Update 'README.md' 2018-11-15 09:04:08 -08:00
Russtopia ab4c5b74c9 Update 'README.md' 2018-11-14 00:11:12 -08:00
Russtopia 43221cbba6 Update 'README.md' 2018-11-13 23:57:36 -08:00
Russtopia be7f84adcf Update 'README.md' 2018-11-13 23:30:06 -08:00
Russtopia 566a8e9ed2 Update 'README.md' 2018-11-13 23:29:28 -08:00
Russtopia 2a9c7d9cfe Update 'README.md' 2018-11-13 23:02:52 -08:00
Russ Magee d28a4af924 Added example openrc init script
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-13 23:59:34 -08:00
Russ Magee d973c83e01 -Makefile: added install,uninstall targets
-Bumped version to 0.7pre

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-13 17:38:13 -08:00
Russtopia 1d1feee476 Update 'README.md' 2018-11-13 12:57:52 -08:00
Russ Magee 4bf94a7854 README.md: Tunnel example usage
TODO updates

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-13 13:54:07 -08:00
Russ Magee 2cb254ef69 Basic -T tun opt parsing
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-12 00:44:16 -08:00
Russ Magee a9ebb102bd Stubbed tun option parsing
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-11 23:26:22 -08:00
Russ Magee d9453835bf Shorter servertun hangup msg
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-11 23:03:32 -08:00
Russ Magee b0f614f82e Tunnel keepalives from client implemented. If client dies/exits unexpectedly the server
tunnel will disconnect from rport in a timely manner.

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-11 22:46:39 -08:00
Russ Magee 709f2ae3dd Got rid of superfluous weAreDialled var
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-11 21:55:21 -08:00
Russ Magee 0943797300 Minor cleanup prior to tackling os.Exit() in doShellMode() and server-side tun hangs 2018-11-11 21:05:25 -08:00
Russ Magee 6f1fcbbf7a Corrected tun chan Ctl cmd comments 2018-11-11 20:25:34 -08:00
Russ Magee 2a9e6af2ae Tunnels w/reconnect refinements:
-200ms deadlink timeouts
-Fixed TunConnRefused client hangup handling

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-11 20:12:29 -08:00
Russ Magee ba3cda95e8 Tunnels with reconnect working.
TODO: interactive client exit must collapse all open tunnels prior to exit.

Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-11-11 18:56:08 -08:00
Russ Magee fbef175012 Tunnels basically working. TODO: add TunKeepAlive packet & handshake w/server tun side 2018-11-11 12:34:54 -08:00
Russ Magee b94f25e5ae Client lport disconn/reconn works, somewhat.. 2018-11-11 11:45:37 -08:00
Russ Magee 3b35751e2e WIP tunnel states, re-dial when not required needs debugging. 2018-11-07 19:35:32 -08:00
Russ Magee dd37922fb2 Server tun worker now in redial goroutine. TODO: Finish full two-way state change msging 2018-11-01 22:47:25 -07:00
Russ Magee 1a153b31ee Merge branch 'tunnel-proto' of ssh://blitter.com/var/git/hkexsh into tunnel-proto 2018-11-01 22:15:03 -07:00