Commit Graph

108 Commits

Author SHA1 Message Date
emanuele-f
03dbedd52b Change supernode registration messages log to info 2019-03-26 22:24:28 +01:00
emanuele-f
c71f629d1b Fix encryption key being zeroed by AES initialization 2019-03-26 21:56:02 +01:00
emanuele-f
9e2aa47bf0 Add Centos packaging instructions 2019-03-03 04:35:04 +01:00
emanuele-f
7e5fd863a8 Improve Windows compilation instructions 2019-03-03 04:15:38 +01:00
emanuele-f
327a847681 Version fix 2019-03-01 20:38:33 +01:00
emanuele-f
77392f8e53 Add check for SO_REUSEPORT
Fixes #51
2019-03-01 20:34:44 +01:00
emanuele-f
5742ef978f Add Windows compilation instructions 2019-03-01 20:16:24 +01:00
Emanuele Faranda
d7b3b2c06b
Merge pull request #66 from csheely/windows-cmake-build
Submit minor changes to enable Windows CMake builds w/o requiring additional local mods.
2019-03-01 18:57:20 +00:00
Emanuele Faranda
585ed22a5d
Merge pull request #67 from emanuele-f/fix_aes_multiedge
Fixes packet drops while communicating with multiple nodes in AES PSK
2019-03-01 18:53:47 +00:00
Emanuele Faranda
c4b96bea42
Merge pull request #71 from emanuele-f/udp_timeout
Reduce the registration timeout to keep the connection open
2019-03-01 16:07:02 +00:00
emanuele-f
5f4dfdc683 Reduce the registration timeout to keep the connection open 2019-02-25 23:42:46 +01:00
emanuele-f
37233553a4 Fixes packet drops while communicating with multiple nodes in AES PSK
Per-node AES structures must be kept as CBC cannot work with a single structure across multiple nodes
2019-02-20 01:26:18 +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
emanuele-f
5feb00bcf8 Create gitignore 2019-02-11 11:27:43 +01:00
Luca
dcf96a0809 Added #ifdef's for AES 2019-01-28 21:56:38 +01:00
Luca Deri
d275965e00
Merge pull request #60 from emanuele-f/enable_aes
Add AES CBC psk encryption
2019-01-28 21:52:04 +01:00
emanuele-f
200cfd24a3 Fix benchmark AES lib 2019-01-28 01:44:47 +01:00
emanuele-f
5d7db5f332 Add transopts benchmarks 2019-01-28 01:05:48 +01:00
emanuele-f
e4601590aa Add -A option to enable AES CBC psk encryption 2019-01-28 00:27:54 +01:00
Luca Deri
63e74ccc6a Added support for ARM64 platforms 2019-01-26 09:33:24 +01:00
emanuele-f
a96237f83d Use systemd helpers to honor system wide preferences on service enable/start
Also fix services being started after upgrade even if they were disabled but config existed
2018-12-31 16:36:32 +01:00
Luca Deri
1e8b61806d Added note to fix /dev/tap problems 2018-12-22 08:23:22 +01:00
emanuele-f
f02b68f5af Use after network-online to avoid DNS resolve and multicast bind issues 2018-12-14 10:52:55 +01:00
Emanuele Faranda
d896a9c3e8 Fix missing n2n-ntopng in configure 2018-12-12 16:16:46 +01:00
emanuele-f
3bd4e2c335 Add n2n-ntopng to bind the services lifetimes 2018-12-12 16:02:41 +01:00
Luca Deri
55d5392cd2 Added check for missing argument (-l) 2018-12-04 13:55:33 +01:00
emanuele-f
e07ae72c17 Fix multicast self registration
Trace: (192.168.1.10/AE:C4:1F:99:D7:16 is the edge node itself)

02/Dec/2018 23:01:44 [edge_utils.c:175] Registering with multicast group 224.0.0.68:1968
02/Dec/2018 23:01:44 [edge_utils.c:533] send REGISTER 224.0.0.68:1968
02/Dec/2018 23:01:44 [edge_utils.c:463] sendto sent=36 to
02/Dec/2018 23:01:44 [edge_utils.c:1500] Received packet from multicast socket
02/Dec/2018 23:01:44 [edge_utils.c:1296] ### Rx N2N UDP (36) from 192.168.1.10:48122
02/Dec/2018 23:01:44 [edge_utils.c:1341] Rx REGISTER src=AE:C4:1F:99:D7:16 dst=00:00:00:00:00:00 from peer 192.168.1.10:48122 (192.168.1.10:48122)
02/Dec/2018 23:01:44 [edge_utils.c:567] send REGISTER_ACK 192.168.1.10:48122
02/Dec/2018 23:01:44 [edge_utils.c:463] sendto sent=36 to
02/Dec/2018 23:01:44 [edge_utils.c:1296] ### Rx N2N UDP (36) from 192.168.1.10:48122
02/Dec/2018 23:01:44 [edge_utils.c:1367] Rx REGISTER_ACK src=AE:C4:1F:99:D7:16 dst=AE:C4:1F:99:D7:16 from peer 192.168.1.10:48122 (192.168.1.10:48122)
02/Dec/2018 23:01:44 [edge_utils.c:266] set_peer_operational: AE:C4:1F:99:D7:16 -> 192.168.1.10:48122
02/Dec/2018 23:01:44 [edge_utils.c:318] Failed to find sender in pending_peers.
2018-12-03 00:00:12 +01:00
Luca Deri
e7cfa00435 Path fix 2018-12-01 08:45:41 +01:00
Luca Deri
b758d69e6c Config files are installed with the .sample extension
You can now do 'cp edge.conf.sample edge.conf' to create a n2n configuration. If the .conf (for edge and supernode) are present, the service is enabled automatically. This prevents unwanted services to be enabled, and it preserves services activation across updates
2018-12-01 08:36:58 +01:00
Emanuele Faranda
b84cedd8b8 Add support for multi-service n2n edge
E.g. systemctl start edge@n2n1 will read /etc/n2n/edge-n2n1.conf
2018-11-28 13:04:44 +01:00
Luca Deri
2e2654dd2a Disable automatic n2n startup 2018-11-23 16:57:14 +01:00
Luca Deri
48c7ff78bd
Merge pull request #53 from emanuele-f/honor_no_routing
Fix packets from clients being routed even when routing is disabled
2018-10-31 14:06:31 +01:00
emanuele-f
7fd1778d7c Fix packets from clients being routed when routing is disabled 2018-10-31 13:08:39 +01:00
Simone Mainardi
8308098ef3 Fixes for OS X build with Macports 2018-10-09 17:28:09 +02:00
Luca Deri
42a2f7ada7 Autogen for generatic configure 2018-10-07 11:38:05 +02:00
Luca Deri
a80fa1dd27 Added configure and autogen.sh 2018-10-07 11:37:19 +02:00
Luca Deri
75adf2fa06
Added link to binary packages 2018-10-04 12:24:14 +02: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
fd356cde64 Added the ability to specify (-c) on the supernode the list of allowed communities
kill -HUP on the supernode lists the registered edges
2018-09-28 22:31:45 +02:00
Luca Deri
cb9e758d58 Fixes #41 2018-09-22 09:08:58 +02:00
Luca Deri
68cb96eb01
Merge pull request #37 from farrokhi/dev
Fix build on FreeBSD
2018-09-01 18:07:44 +02:00
Babak Farrokhi
b2a1c4a9f4 Fix a few leftover instances which used the old function name 2018-08-18 11:42:22 +04:30
Babak Farrokhi
79f2e526ef We may use alternative computers (i.e. CLANG) on hosts on which GCC is not the default compiler 2018-08-18 11:40:03 +04:30
Luca Deri
7aac05df08 Added changelog file 2018-08-17 14:47:37 +02:00
Luca Deri
1888a0c55a Merge of https://github.com/ntop/n2n/pull/26 2018-08-17 14:27:11 +02:00
Luca Deri
b877f2dd1c Merge of https://github.com/ntop/n2n/pull/33 2018-08-17 14:25:35 +02:00
Luca Deri
e4d99cb6f0 Moved to 2.5
Fixed warning
2018-08-17 14:14:48 +02:00