emanuele-f
3149a77753
Replace fprintf with traceEvent
6 years ago
emanuele-f
49d5ecf2a8
Reduce duplicated code in quick_edge_init
6 years ago
emanuele-f
50bc1492e2
Remove unnecessary structures in AES encryption
This undoes most of the changes made in 37233553a4
as the problem with the drops was only mitigated.
The actual fix for the dropped packets was in e989f475a1
and the invalid initialization was the root cause
6 years ago
emanuele-f
e3951631b9
Improve benchmark
Sample on i3 2GHz:
Run [transop_null] for 3s (512 bytes): 11203585 packets 3734.5 Kpps 1912.1 MB/s
Run [transop_twofish] for 3s (512 bytes): 60705 packets 20.2 Kpps 10.4 MB/s
Run [transop_aes] for 3s (512 bytes): 467937 packets 156.0 Kpps 79.9 MB/s
6 years ago
emanuele-f
d4205d36fd
Additional fix for missing SO_REUSEPORT
edge_utils already fixed in 77392f8e53
6 years ago
emanuele-f
e989f475a1
Fix invalid initializations
6 years ago
emanuele-f
f5b2d00b06
Show multicast group join error code
6 years ago
emanuele-f
03761fc84c
Handle WSAECONNRESET to avoid stopping the supernode on Windows
6 years ago
emanuele-f
03dbedd52b
Change supernode registration messages log to info
6 years ago
emanuele-f
c71f629d1b
Fix encryption key being zeroed by AES initialization
6 years ago
emanuele-f
9e2aa47bf0
Add Centos packaging instructions
6 years ago
emanuele-f
7e5fd863a8
Improve Windows compilation instructions
6 years ago
emanuele-f
327a847681
Version fix
6 years ago
emanuele-f
77392f8e53
Add check for SO_REUSEPORT
Fixes #51
6 years ago
emanuele-f
5742ef978f
Add Windows compilation instructions
6 years ago
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.
6 years ago
Emanuele Faranda
585ed22a5d
Merge pull request #67 from emanuele-f/fix_aes_multiedge
Fixes packet drops while communicating with multiple nodes in AES PSK
6 years ago
Emanuele Faranda
c4b96bea42
Merge pull request #71 from emanuele-f/udp_timeout
Reduce the registration timeout to keep the connection open
6 years ago
emanuele-f
5f4dfdc683
Reduce the registration timeout to keep the connection open
6 years ago
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
6 years ago
Chris Sheely
ba0ecabbf6
Submit minor changes to enable Windows CMake builds w/o further mods.
6 years ago
emanuele-f
5feb00bcf8
Create gitignore
6 years ago
Luca
dcf96a0809
Added #ifdef's for AES
6 years ago
Luca Deri
d275965e00
Merge pull request #60 from emanuele-f/enable_aes
Add AES CBC psk encryption
6 years ago
emanuele-f
200cfd24a3
Fix benchmark AES lib
6 years ago
emanuele-f
5d7db5f332
Add transopts benchmarks
6 years ago
emanuele-f
e4601590aa
Add -A option to enable AES CBC psk encryption
6 years ago
Luca Deri
63e74ccc6a
Added support for ARM64 platforms
6 years ago
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
6 years ago
Luca Deri
1e8b61806d
Added note to fix /dev/tap problems
6 years ago
emanuele-f
f02b68f5af
Use after network-online to avoid DNS resolve and multicast bind issues
6 years ago
Emanuele Faranda
d896a9c3e8
Fix missing n2n-ntopng in configure
6 years ago
emanuele-f
3bd4e2c335
Add n2n-ntopng to bind the services lifetimes
6 years ago
Luca Deri
55d5392cd2
Added check for missing argument (-l)
6 years ago
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.
6 years ago
Luca Deri
e7cfa00435
Path fix
6 years ago
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
6 years ago
Emanuele Faranda
b84cedd8b8
Add support for multi-service n2n edge
E.g. systemctl start edge@n2n1 will read /etc/n2n/edge-n2n1.conf
6 years ago
Luca Deri
2e2654dd2a
Disable automatic n2n startup
6 years ago
Luca Deri
48c7ff78bd
Merge pull request #53 from emanuele-f/honor_no_routing
Fix packets from clients being routed even when routing is disabled
6 years ago
emanuele-f
7fd1778d7c
Fix packets from clients being routed when routing is disabled
6 years ago
Simone Mainardi
8308098ef3
Fixes for OS X build with Macports
6 years ago
Luca Deri
42a2f7ada7
Autogen for generatic configure
6 years ago
Luca Deri
a80fa1dd27
Added configure and autogen.sh
6 years ago
Luca Deri
75adf2fa06
Added link to binary packages
6 years ago
Luca Deri
1c7b14995b
When multiple supernodes are specified, the edge registers to all of them
6 years ago
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
6 years ago
Luca Deri
57b728a4dd
Improved multicast edge registation
6 years ago
Luca Deri
dd899b3a4d
Initial work for local multicast registering (work in progress)
6 years ago
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
6 years ago