Commit Graph

74 Commits

Author SHA1 Message Date
Luca Deri
3b0903785e
Merge branch 'dev' into speck 2020-06-07 10:10:20 +02:00
Luca Deri
40da89521a
Merge branch 'dev' into zstdCompression 2020-06-07 10:03:22 +02:00
Luca Deri
b8fcf09177 Compilation fixes 2020-06-07 10:00:18 +02:00
Luca Deri
0dcbec2f87
Merge pull request #235 from Logan007/cc20
added ChaCha20
2020-06-07 09:48:30 +02:00
Logan oos Even
78e72a2f9e
Merge branch 'dev' into speck 2020-06-06 18:12:11 +05:45
Logan007
0477e476e8 added Speck 2020-05-28 03:17:21 +05:45
emanuele-f
a014f5a68b Windows compilation fix 2020-05-24 11:25:12 +02:00
emanuele-f
0e48e2f24c Add support for linux capabilities to proper routes cleanup 2020-05-23 17:17:32 +02:00
emanuele-f
928fc9f22e Add ability to insert linux routes in n2n
The new -n option can now be used to setup routes directly from the edge command line.
It supports both network routes and default gateway routes. Here is an example:

  - "-n 192.168.100.0/24:192.168.99.1" routes the 192.168.100.0/24 network traffic via 192.168.99.1
  - "-n 0.0.0.0/0:192.168.99.1" routes all the host traffic via 192.168.99.1
2020-05-23 16:21:45 +02:00
Logan007
f2524196b1 added optional payload compression (zstd) for all transforms 2020-05-20 01:12:22 +05:45
Logan oos Even
479f6f759e
Merge branch 'dev' into cc20 2020-05-12 17:31:47 +05:45
Logan007
12aea29abf tried to resolve conflict - part II 2020-05-12 17:24:37 +05:45
Logan007
05e96bb8fe tried to resolve conflict 2020-05-12 17:19:40 +05:45
Logan007
7c2648c1e2 added cli option for ChaCha20 (-A4) 2020-05-12 16:49:07 +05:45
Logan007
9076ed1bab added optional payload compression (lzo) for all transforms 2020-05-03 18:48:59 +02:00
lucaderi
fb0a6e8abc OpenSSL 1.0 fix 2020-04-24 12:35:51 +02:00
Luca Deri
8b8e3ed3ee Updated OpenSSL checks 2020-04-24 08:45:33 +02:00
Luca Deri
10245f5ef1 Warning fix 2020-04-24 00:01:50 +02:00
Luca Deri
b73f146d9b Fixed warnings
Moved to 2.7
2020-03-24 10:09:39 +01:00
realjiangms
9601e82daf More reliable punching:
1. Some nat router blocks the port if incoming traffic arrives before outcoming traffic being sent. Give edge ability to set proper TTL so that the registration packet is dropped before it arrives peer.
2. Support Symmetric NAT by predicting 15 more ports when sending registration packet
3. Purge pending mac also on P2P normal packet. This is actually more usual condition.
4. Add doc for new flag.
2019-11-08 09:21:10 +08:00
emanuele-f
1b49b37a75 Disable PMTU options on apple to fix compilation issues 2019-09-24 09:50:29 +02:00
emanuele-f
8f3009c448 Fix occasional connection issues on startup due to bad MAC address read 2019-09-22 20:16:01 +02:00
emanuele-f
6868ed9ccd Ensure that the TAP interface is up and running 2019-09-22 19:45:51 +02:00
emanuele-f
0538c5261d Disable PMTU in other platforms 2019-09-21 19:25:56 +02:00
lucktu
365bae18d7
A newline
A newline
2019-09-20 15:43:26 +08:00
emanuele-f
b3995e7fbc Implemnent n2n-decode utility to decode and dump traffic to PCAP 2019-09-20 02:13:07 +02:00
emanuele-f
49f1f1b886 Remove unused -b option
n2n already resolves the supernode address dynamically
2019-08-19 08:35:33 +02:00
emanuele-f
6c67ed0440 MTU changes to avoid connection stall on PMTU discovery failures 2019-08-16 16:55:40 +02:00
emanuele-f
0b965c37c0 Read local edge.conf and supernode.conf files on Windows 2019-08-11 14:35:20 +02:00
horseluke
9e56c92af2 Fix: setOption pass wrong argument in edge node 2019-07-28 01:59:51 +08:00
emanuele-f
2f671cf6d9 Add support for TOS setting in edge 2019-07-16 00:37:52 +02:00
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