Zoltán Papp
06d71257b4
Build rawsocket code on linux only.
2025-02-21 16:00:31 +01:00
Zoltán Papp
651e88d611
Eliminate code duplication
2025-02-21 14:59:42 +01:00
Zoltán Papp
d496d21693
Apply same pausedCond logic on all implementation
2025-02-21 14:55:56 +01:00
Zoltan Papp
648b4cdf72
Update client/iface/wgproxy/udp/proxy.go
...
Co-authored-by: Viktor Liu <17948409+lixmal@users.noreply.github.com>
2025-02-21 14:50:29 +01:00
Zoltán Papp
f0020ad4ce
Fallback to package loss solution if the raw socket does not work.
2025-02-18 13:58:20 +01:00
Zoltán Papp
1eacff250e
Remove WireGuard kernel code from FreeBSD
2025-02-18 13:47:42 +01:00
Zoltán Papp
1f83ba4563
Ignore err in tests
2025-02-17 22:06:04 +01:00
Zoltán Papp
3d80a25b4d
Fix possible blocker if the bind will be closed earlier then proxy
2025-02-17 22:03:15 +01:00
Zoltán Papp
1963644c99
Add close test for all implementation
2025-02-17 21:47:34 +01:00
Zoltán Papp
360c7134f7
Add unit test
2025-02-17 21:26:37 +01:00
Zoltán Papp
775b4feb7e
Fix close operation
2025-02-17 20:17:47 +01:00
Zoltán Papp
aca443bdec
Build UDP proxy on Linux only
2025-02-17 19:26:40 +01:00
Zoltán Papp
335866ac60
Close unused rawsocket
2025-02-17 15:56:48 +01:00
Zoltán Papp
4db73a13d7
Implement redirect logic in UDP proxy
2025-02-17 15:47:20 +01:00
Zoltán Papp
06a17f0eee
Implement redirect to in eBPF proxy
2025-02-17 15:47:20 +01:00
Zoltán Papp
1f088b7e69
Extend the proxy interface with RedirectTo function and implement it in Bind proxy
2025-02-17 15:47:20 +01:00
Zoltan Papp
ffe74365a8
Code cleaning
2025-02-17 15:47:20 +01:00
Zoltan Papp
30f025e7dd
[client] fix/proxy close ( #2873 )
...
When the remote peer switches the Relay instance then must to close the proxy connection to the old instance.
It can cause issues when the remote peer switch connects to the Relay instance multiple times and then reconnects to an instance it had previously connected to.
2024-11-11 14:18:38 +01:00
Zoltan Papp
9812de853b
Allocate new buffer for every package ( #2823 )
2024-11-01 00:33:25 +01:00
Zoltan Papp
4e918e55ba
[client] Fix controller re-connection ( #2758 )
...
Rethink the peer reconnection implementation
2024-10-24 11:43:14 +02:00
Zoltan Papp
30ebcf38c7
[client] Eliminate UDP proxy in user-space mode ( #2712 )
...
In the case of user space WireGuard mode, use in-memory proxy between the TURN/Relay connection and the WireGuard Bind. We keep the UDP proxy and eBPF proxy for kernel mode.
The key change is the new wgproxy/bind and the iface/bind/ice_bind changes. Everything else is just to fulfill the dependencies.
2024-10-22 20:53:14 +02:00