Commit graph

187 commits

Author SHA1 Message Date
2add52c1de Increment rc 2012-04-27 20:01:47 +02:00
e3e5224901 Automatically set interface MTU 2012-04-27 16:17:24 +02:00
22a8e9ccb1 Send handshakes after resolve even when the connection is already established for session refreshs to work 2012-04-25 00:15:17 +02:00
13c13161fe resolve: don't set AI_IDN, it will fail with uClibc 2012-04-23 21:41:29 +02:00
80f8c201e8 Ignore handshakes for 15 seconds after session establishment to avoid excessive and concurrent handshakes 2012-04-22 21:34:35 +02:00
1bbef32baa Add --show-key and --machine-readable options 2012-04-22 13:54:36 +02:00
f21a6e3cec Ignore peers with own key 2012-04-22 00:30:09 +02:00
8c91443808 Don't regenerate session handshake keypair for every handshake so a global state can be used; remove the concept of temporary peers
These changes will fix the possibility of a TCP-SYN-Flood-like DoS attack, at the cost of another
protocol change: as we can't count request IDs when we don't know have temporary peers, request IDs
are removed completely.
2012-04-19 17:42:56 +02:00
c5b12202c8 Simplity option code, improve help page formatting 2012-04-18 04:09:04 +02:00
efe9525ca0 Add --help page 2012-04-17 20:18:24 +02:00
afdf78eeaf Revert using hostname as peer printf string as we'll always have a name when a hostname is given 2012-04-17 17:33:29 +02:00
ea4f56a537 Make sure we don't get interupted by signals when we can't handle them properly 2012-04-16 21:57:27 +02:00
73710b6b23 Cancel start if no peers are configured 2012-04-16 18:47:29 +02:00
9a1195a6f7 Remove unused variable 2012-04-16 10:52:43 +02:00
10c89779f8 Use -pthread instead of library 2012-04-16 10:51:51 +02:00
3442125164 Remove old line from COPYRIGHT file 2012-04-16 08:45:02 +02:00
dc11e3bc08 Rename peer-to-peer to forward; remove now useless peer command line option 2012-04-16 07:39:27 +02:00
872e0dfa86 Lots of fixes and improvements on the resolver code 2012-04-16 07:29:55 +02:00
3a87d747a0 Use handshake splay time for unestablished peers as well 2012-04-16 05:34:24 +02:00
96ec41768b Add support for peers specified by hostnames 2012-04-16 05:23:12 +02:00
037c58ae51 Fix minimum required CMake version 2012-04-15 12:15:11 +02:00
b9054051b9 Reduce task queue usage 2012-04-14 16:59:54 +02:00
74f2d0357f Fix reply for failed handshakes 2012-04-14 15:24:51 +02:00
701fcc7c7e Separate handshake from encryption method 2012-04-14 13:06:11 +02:00
ac235fb7d2 Fix sending of packets on big endian architectures 2012-04-09 23:40:43 +02:00
1ed4ac93ae Add some missing error handling 2012-04-06 00:55:59 +02:00
a6a5b5e00e Add on-establish and on-disestablish commands 2012-04-05 20:38:30 +02:00
9720307ab4 Fix string escaping in config lexer 2012-04-05 13:27:25 +02:00
7b2cfb422a Cleanly shutdown; add on-down command 2012-04-05 13:17:02 +02:00
329d15d50c Implement reconfiguration on SIGHUP 2012-04-05 05:21:58 +02:00
cbf0166a7f Save absolute path in peer configs from peer dirs 2012-04-03 23:07:55 +02:00
320e76e0de Keep track of peer dirs 2012-04-03 19:02:27 +02:00
c2e81f00dc Don't set bind sockaddr in config if none is configured 2012-04-03 09:56:44 +02:00
171dd6a58b Save source dirs with peer configs 2012-04-03 04:23:46 +02:00
89208e7de1 Ignore peer configs with errors in peer dirs instead of exiting 2012-04-03 02:17:33 +02:00
053e3f630a Only handle - as stdin when given on command line 2012-04-03 01:33:06 +02:00
bd8dcb9735 Keep list of strings allocated by the lexer 2012-04-03 01:27:27 +02:00
a25640e3b4 Add install command 2012-04-03 00:50:34 +02:00
52b6ec7713 Require Bison 2.5 2012-04-03 00:44:19 +02:00
5991e456cd Fix handshake and keepalive scheduling 2012-04-02 23:12:23 +02:00
6c401d89e2 Allow peer-to-peer forwarding 2012-04-02 21:52:21 +02:00
77520caad8 ecfxp: don't send refresh handshakes from both sides 2012-04-02 03:52:23 +02:00
7836725abd Critical fix of a bug allowing DoS by sending invalid handshakes 2012-04-02 02:37:35 +02:00
b56a383d4c Warn on MTU mismatch 2012-04-02 01:54:00 +02:00
6df58e7989 ecfxp: fix problems with peers trying to send handshakes to each other 2012-04-02 01:41:28 +02:00
3c83faaa16 Add sending of keep-alive packets 2012-04-02 01:28:34 +02:00
9e45032bd5 Add timestamps to log messages 2012-04-01 23:10:46 +02:00
e0a3556742 Add log level configuration 2012-04-01 22:47:55 +02:00
350353d2c1 Add verbose log level, change some log messages 2012-04-01 22:35:00 +02:00
bd78168550 Require port with peer specfication, remove default port 2012-04-01 22:28:31 +02:00