Commit Graph

230 Commits

Author SHA1 Message Date
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
Russ Magee 492c7290b0 Much improved tunnel state management: server-side mostly working, client-side re-Accept() -> svr re-Dial() still required 2018-11-01 22:14:44 -07:00
Russ Magee d2322af34b Much improved tunnel state management: server-side mostly working, client-side re-listen -> svr re-Dial() still required 2018-11-01 22:14:01 -07:00
Russ Magee a425afe9b6 Tunnels working again to basic level w/o re-connect or re-dial 2018-11-01 18:52:01 -07:00
Russ Magee 081d88b9ad tunnel setup stubs moved into Conn Read()/Write() handling 2018-10-31 20:11:00 -07:00
Russ Magee 8ee0aea0b4 (non-working) begin of total tunnel redesign 2018-10-31 09:15:28 -07:00
Russ Magee fcbdb77c79 Cleaned up error handling in hkexnet.Conn.Read() a bit 2018-10-30 21:07:42 -07:00
Russ Magee e75ed159f6 two-way tunnel traffic working. Hangup/re-dial on server side needs work 2018-10-28 21:46:29 -07:00
Russ Magee 632f24354b Tunnel rough work-in-progress; data sent (wrong length) and CSOTunClose handling needs work, but it's a start... 2018-10-28 19:17:47 -07:00
Russ Magee 1e6da733a2 Work on setup for tunnels
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-10-27 01:51:40 -07:00
Russ Magee 48b0c41f62 Prototyped TunEndpoint struct, data flow commentary 2018-10-26 20:31:57 -07:00
Russ Magee 25d85f6759 Cleaned up hkexshd.go to use new logger as well
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-10-26 18:20:32 -07:00
Russ Magee 2f83d488d6 Pushed logging into sub-package to preserve windows client build
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-10-26 16:05:01 -07:00
Russ Magee 871f1e0dfa Moved CSE (extended err types) back up out of UNIX shell status space 2018-10-25 22:49:08 -07:00
Russ Magee 752dbf6080 logging now uses syslog 2018-10-25 22:14:18 -07:00
Russ Magee 90deb5b1ff Updated README.md for new CryptMTv1 cipher 2018-10-24 00:31:32 -07:00
Russ Magee 4cb535fcc9 Added support for cryptMTv1
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-10-24 00:16:34 -07:00
Russ Magee 97791544ab Bump version
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-10-21 20:32:57 -07:00
Russ Magee a6950408f2 Merge branch 'kex-spurious-failures' 2018-10-19 13:52:14 -07:00
Russ Magee 3991fc5065 Added keymat expansion for smallest KEX modes
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-10-19 13:51:57 -07:00
Russ Magee fc4b1bf7bb Added clause 11a. to cover crypto regs
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-10-19 11:56:09 -07:00
Russ Magee d13e340895 Added clause 11a. to cover crypto regs
Signed-off-by: Russ Magee <rmagee@gmail.com>
2018-10-19 11:50:17 -07:00
Russ Magee 798661a0cf kex-spurious-failures branch:
-Modified KyberDialSetup()/KyberAcceptSetup() to use []byte for reading/writing
ciphertext to avoid errors caused by leading zero bytes (big.Int can't explicitly
represent these)

-TODO: Consider the same for HerraduraKEx HKexDialSetup()/HKexAcceptSetup()
2018-10-18 20:44:23 -07:00