Logan007
e8d5e939a7
added encryption step
4 years ago
Logan007
033b1890f2
blended checksum into header iv
4 years ago
Luca Deri
1a5d753b98
Warning fix
4 years ago
Logan007
789dd90272
Header Encryption
4 years ago
Luca Deri
0bf7ae0a01
Minor code claanup
4 years ago
Luca Deri
3eb82b2a32
Code reorganization
4 years ago
Luca Deri
9951a917c7
Updated (C)
4 years ago
Luca Deri
68428a8d2a
Updated (C)
4 years ago
emanuele-f
be5b441e58
Fix default gateway routes
The 128.0.0.0/1 route was missing causing some traffic to go outside the VPN
4 years ago
Logan007
fad7c191f6
added XORSHIFT128+ random number generator
4 years ago
Luca Deri
bd49b4e3a3
Compilation fixes
4 years ago
Logan007
0477e476e8
added Speck
4 years ago
emanuele-f
5044fcde26
Add linux capabilities dependency to cmake
4 years ago
emanuele-f
0e48e2f24c
Add support for linux capabilities to proper routes cleanup
4 years ago
emanuele-f
62b9530425
Add missing ifdef
4 years ago
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
4 years ago
Logan007
f2524196b1
added optional payload compression (zstd) for all transforms
4 years ago
Logan007
7c2648c1e2
added cli option for ChaCha20 (-A4)
4 years ago
Logan007
9076ed1bab
added optional payload compression (lzo) for all transforms
4 years ago
Logan007
9e5934acc8
added ChaCha20 (cc20)
4 years ago
emanuele-f
46aaa86629
Fix multicast dropped when routing is disabled
5 years ago
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.
5 years ago
emanuele-f
7e7782f965
Possibly fix mingw compilation
5 years ago
emanuele-f
1b49b37a75
Disable PMTU options on apple to fix compilation issues
5 years ago
emanuele-f
8f3009c448
Fix occasional connection issues on startup due to bad MAC address read
5 years ago
emanuele-f
0538c5261d
Disable PMTU in other platforms
5 years ago
emanuele-f
6c67ed0440
MTU changes to avoid connection stall on PMTU discovery failures
5 years ago
emanuele-f
27da194872
Reduce log level due to invalid supernode register ACK cookies
5 years ago
emanuele-f
2f671cf6d9
Add support for TOS setting in edge
5 years ago
emanuele-f
eea0c9b46b
Add option to disable p2p
5 years ago
emanuele-f
4e9d66a0a2
Rework log levels
Now "-v" only returns high level information, whereas "-vv" can be used to further increase the verbosity.
5 years ago
emanuele-f
6bb7e3d9c5
Fix dropped broadcast traffic
Fixes #161
5 years ago
emanuele-f
035b66b1a9
Fix mtu with AES
This avoids fragmentation when possible
5 years ago
emanuele-f
6328962752
Improve packet length log
5 years ago
emanuele-f
8880330c41
Windows compilation fix
5 years ago
emanuele-f
1c9e029b88
Retry multicast group join instead of exiting
Multicast group join failures can occur during system startup
5 years ago
Luca
1512f20eaa
Compilation fix
5 years ago
emanuele-f
a70641897d
Graceful termination in Windows
5 years ago
emanuele-f
41bff29df6
Disable multicast peers discovery in windows
5 years ago
Teteros
ba38ab70de
Fix typo: 'enstablished' -> 'established'
5 years ago
emanuele-f
447c3ad8c3
Replace peers linked list with hash
5 years ago
emanuele-f
4eacea7d57
Little improvement
5 years ago
emanuele-f
f36814b152
Implement query peer to try p2p during send
When a lot of monodirection traffic is sent, p2p can be hard to
enstablish because a reply is needed in order to start the registration.
Now a sending peer can query the peer information via the supernode.
This is based on the following commits:
- 1236f37a70
- ad2d416510
- 5348671299
- b2806dcde8
5 years ago
emanuele-f
b36754eae0
Set last_p2p ib peer_set_p2p_confirmed
5 years ago
emanuele-f
3db1cab276
Split broadcast stats from other supernode stats
5 years ago
emanuele-f
0e6db6361e
Fix connection stall when idle p2p refresh occurs
The edge received packets from the supernode and thought that the other
peer was still active, but the other peer had dropped the p2p connection
due to refresh
5 years ago
emanuele-f
f038f22a0b
Fix too many registrations going on
5 years ago
emanuele-f
623a9e480c
Improve log messages
5 years ago
fengdaolong
69e3b49bec
eliminate compilation warnings
5 years ago
yunbox
f48c170c26
Fix supernode handling REGISTER message from edge and let edge ask supernode to forward REGISTER message in case of non-p2p-reflection.
This is reliable way to PUNCH UDP HOLE (following STUN spec)
5 years ago