Commit Graph

43 Commits

Author SHA1 Message Date
emanuele-f
eea0c9b46b Add option to disable p2p 2019-07-15 23:33:11 +02:00
emanuele-f
4e9d66a0a2 Rework log levels
Now "-v" only returns high level information, whereas "-vv" can be used to further increase the verbosity.
2019-07-15 23:21:38 +02:00
emanuele-f
9cc2aee7fc Fix config load from file in Windows 2019-07-08 22:56:13 +02:00
emanuele-f
561f0e2f4f Supernode graceful termination in Windows
Closes #163
2019-07-08 22:49:30 +02:00
emanuele-f
a70641897d Graceful termination in Windows 2019-07-01 00:26:44 +02:00
emanuele-f
09707660a1 Print available Windows TAP devices after help 2019-06-30 20:06:07 +02:00
emanuele-f
69e1d50ca3 Implement selectable tap adapter in Windows 2019-06-30 18:37:48 +02:00
emanuele-f
32f757922c Add warning when community and encryption keys match 2019-06-22 15:46:46 +02:00
emanuele-f
b19232bc7a Drop privileges by default for edge nodes and add root warning 2019-06-19 01:14:54 +02:00
emanuele-f
fb813e5438 Fix "invalid transop ID" when encryption is disabled 2019-05-22 23:30:05 +02:00
emanuele-f
04226c09c8 Fix compilation warnings and little leak 2019-05-21 22:53:55 +02:00
emanuele-f
824b45a808 Add linux termination handler and print stats on shutdown 2019-05-05 21:47:50 +02:00
emanuele-f
d5387945b4 Add the -i option to specify registration interval on edge nodes
Registration is bound to UDP NAT hole punching, so the edges should choose their own value.
2019-05-05 21:24:53 +02:00
emanuele-f
c89ece71ca Code rework changes
- Remove keyschedule leftover and adapt to new API
- Fix cleanup functions
- Remove unused random_device_mac
2019-04-27 15:55:07 +02:00
emanuele-f
f577d997a7 Drop keyschedule support
- Legacy features are now moved to the legacy directory with readme
- Keyschedule feature is not supported anymore
2019-04-27 12:42:06 +02:00
emanuele-f
e757f94efa Initial code rework (wip)
- The edge structure is now opaque
- The configuration is now exposed via an API
- Code cleanup: using multiple transops at once is not supported anymore
2019-04-27 01:56:57 +02:00
emanuele-f
d689691599 n2n.h cleanup 2019-04-14 18:08:51 +02:00
emanuele-f
3149a77753 Replace fprintf with traceEvent 2019-04-14 17:33:57 +02:00
emanuele-f
49d5ecf2a8 Reduce duplicated code in quick_edge_init 2019-04-14 17:21:47 +02:00
emanuele-f
d4205d36fd Additional fix for missing SO_REUSEPORT
edge_utils already fixed in 77392f8e53
2019-04-10 14:59:01 +02:00
emanuele-f
f5b2d00b06 Show multicast group join error code 2019-03-27 21:42:40 +01:00
Chris Sheely
ba0ecabbf6 Submit minor changes to enable Windows CMake builds w/o further mods. 2019-02-11 16:49:37 -05:00
Luca
dcf96a0809 Added #ifdef's for AES 2019-01-28 21:56:38 +01:00
emanuele-f
e4601590aa Add -A option to enable AES CBC psk encryption 2019-01-28 00:27:54 +01:00
Luca Deri
55d5392cd2 Added check for missing argument (-l) 2018-12-04 13:55:33 +01:00
Luca Deri
1c7b14995b When multiple supernodes are specified, the edge registers to all of them 2018-09-29 13:08:01 +02:00
Luca Deri
3acd7a0e89 Implemented local peer discovery over multicast. In case two peers are on the same network
edge detects it and bypsses the supernode

deri@Lucas-iMac.local 132> ping 192.168.254.126
PING 192.168.254.126 (192.168.254.126): 56 data bytes
64 bytes from 192.168.254.126: icmp_seq=0 ttl=64 time=84.314 ms <<== via supernode
64 bytes from 192.168.254.126: icmp_seq=1 ttl=64 time=0.989 ms <<== local network announce detected
64 bytes from 192.168.254.126: icmp_seq=2 ttl=64 time=0.642 ms
64 bytes from 192.168.254.126: icmp_seq=3 ttl=64 time=0.727 ms
^C
--- 192.168.254.126 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.642/21.668/84.314/36.169 ms
2018-09-29 10:03:28 +00:00
Luca Deri
57b728a4dd Improved multicast edge registation 2018-09-29 11:19:36 +02:00
Luca Deri
dd899b3a4d Initial work for local multicast registering (work in progress) 2018-09-28 22:32:36 +00:00
Luca Deri
1888a0c55a Merge of https://github.com/ntop/n2n/pull/26 2018-08-17 14:27:11 +02:00
Luca Deri
e4d99cb6f0 Moved to 2.5
Fixed warning
2018-08-17 14:14:48 +02:00
Luca Deri
d299d558ac Packaging and parameter parsing fixes 2018-08-17 10:17:09 +02:00
Alfredo Cardigliano
30c1ef9ebc supernode is now able to read options from a configuration file with 'supernode <file>' 2018-08-16 15:08:33 +02:00
Alfredo Cardigliano
18186cff4d edge now reads a configuration file with 'edge <file>'
format of each line in the configuration file: '<option>{ ,=}<value>'
use '#' to comment out lines
2018-08-16 12:06:22 +02:00
Luca Deri
fcd5dc86a5 Fixed #32
Minor help fixes
2018-08-08 17:46:39 +02:00
Luca
b34c4a3d42 Cosmetic changes in help 2018-07-04 05:35:21 +02:00
Luca Deri
b6fdae38b9 Added termination variable to edge loop 2018-06-08 12:01:03 +02:00
Luca Deri
b00f329a31 Code cleanup 2018-06-08 08:19:06 +02:00
Luca Deri
85ac185781 Code rework 2018-06-08 00:17:42 +02:00
Luca Deri
41401a131f Minor code cleanup 2018-06-07 21:45:33 +02:00
Luca Deri
7b07636281 Refreshed copyright and added contributors list 2018-06-06 09:57:31 +02:00
Luca Deri
415f6b0a72 Minor code cleanup
Fixed compilation issue on OSX
2018-06-06 09:26:08 +02:00
Luca Deri
b1e9ce6d2a Initial SVN import of n2n v2 2016-10-23 10:46:15 +02:00