madjinn
a3dc1977a8
Move the peer to the local winner after a local fallback
...
When the active local endpoint fails, rapidTestOnLocalFallback races the
public endpoint against the remaining local candidates. If a local
candidate wins, RapidTestLocalEndpoints records it as the active local
endpoint but leaves the WireGuard peer alone. The caller is meant to move
the peer, but only did so when no local endpoint was active, which is
never the case once the winner has been recorded.
The peer therefore stayed on the public endpoint while the monitor
treated the site as local: checkLocalEndpoints kept seeing the winner
answer and checkHolepunchEndpoints skipped the site, so nothing moved the
peer or requested relay. A client that can't reach the site's public
endpoint (e.g. one on the site's LAN behind a router without NAT
hairpinning) lost the site until it was restarted.
Move the peer when the winner is still the active local endpoint.
Introduced in 3d88b32 ("Rapid test again when we fail local").
2026-10-07 01:53:31 +02:00
Owen
5f0c611a04
Route watch working
2026-10-01 14:28:09 -04:00
Owen
98fe56ed13
Exclude the websocket routes
2026-10-01 12:27:24 -04:00
Owen
7dd3eb1347
DisableRoutesAndAliasesOnExitNode should also remove from allowedips
2026-09-28 15:59:37 -04:00
Owen
29d1d91ebb
Tie DisableRoutesAndAliases to exit nodes being in or not
2026-09-28 15:08:23 -04:00
Owen
9ef3399e8f
Add DisableRoutesAndAliases
2026-09-25 15:12:26 -04:00
Owen
c4474e6e41
Support updating sites
2026-09-25 11:51:10 -04:00
Owen
b53312939f
Exclude the holepunch endpoints as well
2026-09-24 11:56:42 -04:00
Owen
8b02cf2f32
Support gateway sites
2026-09-24 11:56:42 -04:00
Owen
e04e7e0bcf
Support batched relay,unrelay,local,unlocal messages
2026-09-24 11:55:53 -04:00
Filip Kalný
6dbacdd316
fix: normalize bare server IPs before route setup
2026-08-20 20:27:17 +02:00
Owen
6ed41854c9
Merge branch 'aig' into dev
2026-08-19 16:46:31 -04:00
Owen
685f632507
Resolve crashes noted in #135
...
Fixes #135
2026-08-11 17:46:10 -04:00
Owen
d21b7591c4
update route removal to include source IP for exit node and peer management
2026-08-07 15:50:58 -04:00
Owen
f4b85701aa
add explicit source for bsd based systems
2026-08-07 15:26:24 -04:00
Owen
ef1db9a676
properly handle icmp over tunnel for automatic testing
2026-08-05 16:16:18 -04:00
Owen
202606917c
icmp monitor the exit node for connectivity and provide in api status
2026-08-05 10:33:43 -04:00
Owen
29663cdb81
Prevent flapping on route optimizer
2026-07-29 17:13:59 -04:00
Owen
39aaaafa17
Dont remove non controlled routes
2026-07-17 17:39:24 -04:00
Owen
3d88b321e8
Rapid test again when we fail local
2026-07-17 15:55:31 -04:00
Owen
e1214e21cd
Reflect local status in the api
2026-07-17 13:58:20 -04:00
Owen
a2f0f64c2f
Cancel local send from chainId
2026-07-16 11:29:55 -04:00
Owen
0e06fb0152
Rapid test the local endpoints as well
2026-07-16 11:11:02 -04:00
Owen
7929ce9cf9
Test local connections and choose those first
2026-07-16 10:57:42 -04:00
Owen
efc012b43d
Groundwork for monitoring and updating the dns
2026-06-25 20:21:25 -04:00
Owen
f02045d936
Aliases are by site
2026-06-24 18:36:07 -04:00
Owen
55377980b8
Dont remove alias if used by other peers
2026-06-24 16:42:29 -04:00
Owen
2cd16e24a1
Handle jit peers with alias
2026-05-13 15:09:45 -07:00
Owen
6eaf8c1475
Basic route selector working
2026-04-13 18:24:11 -07:00
Owen
c2b5ef96a4
Jit of aliases working
2026-03-12 17:26:46 -07:00
Owen
e326da3d3e
Merge branch 'dev' into jit
2026-03-12 16:53:16 -07:00
Owen
b3cb3e1c92
Add hardcoded public dns
2026-03-12 16:50:41 -07:00
Owen
e2690bcc03
Store site id
2026-03-06 16:19:00 -08:00
Owen
809dbe77de
Make chainId in relay message bckwd compat
2026-03-06 15:27:03 -08:00
Owen
c67c2a60a1
Handle canceling sends for relay
2026-03-06 15:15:31 -08:00
Owen
25cb50901e
Quiet up logs again
...
Former-commit-id: 112283191c
2026-01-18 12:18:48 -08:00
Owen
3ba1714524
Power state getting set correctly
...
Former-commit-id: 0895156efd
2026-01-14 16:38:40 -08:00
Owen
3470da76fc
Update resetting intervals
...
Former-commit-id: 303c2dc0b7
2026-01-14 12:32:29 -08:00
miloschwartz
dada0cc124
add low power state for testing
...
Former-commit-id: 996fe59999
2026-01-13 14:30:02 -08:00
Owen
20e0c18845
Try to reduce cpu when idle
...
Former-commit-id: ba91478b89
2026-01-12 12:29:42 -08:00
Owen
5b637bb4ca
Add expo backoff
...
Former-commit-id: faae551aca
2026-01-12 12:20:59 -08:00
Owen
7f6c824122
Pull 21820 from config
...
Former-commit-id: 56f4614899
2025-12-16 18:36:04 -05:00
Owen
3ceef1ef74
Small adjustments
...
Former-commit-id: df1c2c18e0
2025-12-10 14:06:36 -05:00
Owen
acb0b4a9a5
Fix ipv6 connectivity
...
Former-commit-id: 61065def17
2025-12-10 10:34:30 -05:00
Owen
defd85e118
Add site name
...
Former-commit-id: 2a60de4f1f
2025-12-07 10:52:22 -05:00
Owen
dc83af6c2e
Only remove routes for subnets that aren't used
...
Former-commit-id: 10eda0aec7
2025-12-05 16:09:04 -05:00
Owen
35544e1081
Fix changing alias
...
Former-commit-id: 0391106477
2025-12-05 12:05:48 -05:00
Owen
28583c9507
HP working better
...
Former-commit-id: 98b6012a5e
2025-12-03 20:49:09 -05:00
Owen
ba41602e4b
Improve handling of allowed ips
...
Former-commit-id: 1a2a2e5453
2025-12-03 15:50:00 -05:00
Owen
4b8b281d5b
Fixing small things
...
Former-commit-id: e898d4454f
2025-12-03 15:14:08 -05:00