Commit Graph

30 Commits

Author SHA1 Message Date
Christian Ulrich 5bdb69f214
store transport protocol in an Attempt; consider protocol when comparing attempts; puncher.getProtocol not needed anymore 2020-10-25 10:46:29 +01:00
Christian Ulrich ca88330b4d
use SO_REUSEADDR in accept loop 2020-10-24 19:05:16 +02:00
Christian Ulrich 1b315f0eee
Revert "use SO_REUSEADDR in accept loop"
This reverts commit b0398adc12.
2020-10-24 19:04:24 +02:00
Christian Ulrich b0398adc12
use SO_REUSEADDR in accept loop 2020-10-24 19:00:49 +02:00
Christian Ulrich 0750af1a13
introduce new Puncher interface; implement puncher interface for tcp-syni and tcp-nutss 2020-10-24 18:44:37 +02:00
Christian Ulrich 70778f972e
use inheritance (Puncher <- Initiator/Responder <- puncher implementations) to simplify logic in punchd.nim 2020-10-23 01:15:37 +02:00
Christian Ulrich c59d6e42f7
need to include empty extraArgs in tcp-nutss progress message 2020-10-22 00:30:39 +02:00
Christian Ulrich 0f21a63a81
adapt punchd messages to README 2020-10-22 00:22:11 +02:00
Christian Ulrich 2b938f9278
check if the client is still there before sending a message (fix unhandled ValueError) 2020-10-16 00:18:11 +02:00
Christian Ulrich 3f27102e20
first try implementing the NUTSS (b) approach 2020-10-14 20:52:20 +02:00
Christian Ulrich fc9219ed80
introduce generic puncher; split tcp_syni into connect and accept modules 2020-10-12 21:31:55 +02:00
Christian Ulrich 6dff0847b3
close socket if client has hung up 2020-10-10 11:14:31 +02:00
Christian Ulrich 87a8c44954
close sock after sending to client 2020-10-07 00:31:04 +02:00
Christian Ulrich bca5817a6c
workaround not needed anymore (segfault fixed by 8f378794d5) 2020-10-05 17:30:26 +02:00
Christian Ulrich 8dc5b5dd78
remove unused variable 2020-10-04 11:45:17 +02:00
Christian Ulrich 84cb8611ef
change puncher interface to allow accepting multiple connections 2020-10-02 17:12:29 +02:00
Christian Ulrich 7d2a92346d
don't force 3 ports / sequence numbers 2020-08-26 21:33:13 +02:00
Christian Ulrich 6f75ffb35c
workaround segfault (need to investigate later) 2020-08-22 13:11:55 +02:00
Christian Ulrich e23457a647
cleanup on SIGINT 2020-08-22 12:34:12 +02:00
Christian Ulrich 1dc7cf6676
try to implement clean firewall rule creation / destruction 2020-08-21 23:12:45 +02:00
Christian Ulrich f5d36f82d5
fix firewall logic 2020-08-18 00:34:21 +02:00
Christian Ulrich 2e09016b9c
add FIXME 2020-08-16 12:40:28 +02:00
Christian Ulrich d1b104c666
set punchd socket file permissions to 0666 2020-07-28 00:18:27 +02:00
Christian Ulrich e8d06b5982
delete punchd socket on SIGINT 2020-07-28 00:17:45 +02:00
Christian Ulrich 5d08473d86
userSock may be closed in handleRequest, so check before recvLine 2020-07-27 23:51:16 +02:00
Christian Ulrich 9ad26a76d9
fix compile error 2020-07-21 22:54:34 +02:00
Christian Ulrich 187b232162
use dynamic length of destination ports and captured sequence numbers (3 for now) 2020-07-21 11:10:56 +02:00
Christian Ulrich c6d4fadd6e
unix socket needs to be marked as listening 2020-07-13 00:16:10 +02:00
Christian Ulrich d57f293efa
add fixme 2020-07-11 14:45:53 +02:00
Christian Ulrich f5e07b79f4
enter punchd 2020-07-07 19:39:33 +02:00