Commit Graph
676 Commits
Author SHA1 Message Date
Lee Smet d982a9c3f3 Add method to remove existing peers (endpoints)
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-27 17:01:59 +01:00
Lee Smet a8122f8621 Fix operationId typo for addPeer in docs/api.yaml
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-27 16:01:41 +01:00
Lee Smet c26d8f8812 Expose API method to add new peer
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-27 15:58:00 +01:00
Lee Smet 354a065b71 Add general info API endpoint to CHANGELOG.md
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-27 15:18:17 +01:00
Lee Smet 43c961181a Add some cross compilation notes in README.md
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-27 15:03:38 +01:00
Lee Smet cce1cc6c20 Remove linker entries from .cargo/config.toml
These were previously added for aarch64-linux cross compilation.
However, this also interferes with regular compilation on these
platforms, since the linkers generally don't include the target triplet
in their name if they are for the native platform. Additionally, the `ar`
field is deprecated.

Fixes #132

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-27 14:52:30 +01:00
Lee Smet 9df5ddda38 Add removal of tokio_unstable flag to CHANGELOG.md
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-27 14:41:35 +01:00
Lee Smet 3470762ff1 Remove tokio_unstable build flag
It was used at some point to use tokio_console, but since we don't use
that right now this flag can be removed.

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-27 14:12:57 +01:00
Lee Smet d4e51524cb Add method to inject new peers (endpoints)
This allows adding new peers while the system is running

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-27 13:47:40 +01:00
Lee Smet e2d1c52231 Add get_info endpoint to docs/api.yaml
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-27 11:45:49 +01:00
Lee Smet aca36211ca Correct get peers path in docs/api.yaml
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-27 11:30:12 +01:00
Lee Smet b640d95e15 Add API handler for general node info
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-27 11:29:17 +01:00
Lee Smet d0d872324b Remove part of the debug dump
This info is now available as part of the admin API

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-27 10:50:03 +01:00
Lee Smet 1254b1a63c Merge pull request #131 from flokli/typos
fix some typos, update example IPs to 400:/7 subnet
2024-02-27 09:52:08 +01:00
Florian Klink f1b785c42d fix some typos, update example IPs to 400:/7 subnet 2024-02-26 20:55:47 +02:00
Lee Smet 1940a41f36 Update CHANGELOG.md
Add listing of selected and fallback routes

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-26 16:55:16 +01:00
Lee Smet b61581d52d Add get_fallback_routes endpoint to docs/api.yaml
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-26 15:48:32 +01:00
Lee Smet 58b08a515f Expose API handler to list fallback routes
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-26 15:47:12 +01:00
Lee Smet 13b00d95d5 Add method on router to list fallback routes
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-26 15:42:55 +01:00
Lee Smet 38df75fd28 Add get_selected_routes endpoint to docs/api.yaml
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-26 15:07:50 +01:00
Lee Smet bef7eb180c Encode infinite metric as string in API
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-26 14:44:39 +01:00
Lee Smet a24ed4f0b1 Add Route tag to docs/api.yaml
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-26 12:11:17 +01:00
Lee Smet 5ef68994d2 Expose API handler to list selected routes
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-26 12:01:16 +01:00
Lee Smet 08c58645ec Inject router in API State
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-26 12:00:49 +01:00
Lee Smet 1fb8e0ec55 Add method on router to list selected routes
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-26 11:59:43 +01:00
Lee Smet ab3626b281 Update addresses in README.md to new range
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-26 10:31:13 +01:00
Lee Smet 9b2edb2fee Add get_peers to CHANGELOG.md
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-23 16:09:10 +01:00
Lee Smet f8bc7f976f Document get_peers method in API spec
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-23 16:08:10 +01:00
Lee Smet 7e1d9cb85d Add get_peers method to http API
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-23 16:07:54 +01:00
Lee Smet 52e93ae345 Inject PeerManager in Http server
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-23 16:07:13 +01:00
Lee Smet fa05b80d73 Add exposed PeerStats in PeerManager
Includes info about peers we already keep track of in other structs

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-23 16:04:10 +01:00
Lee Smet e22272a44a Derive additional bounds on Peer related types
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-23 16:02:13 +01:00
Lee Smet 422a33176c Add wintun.dll to .gitignore
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-22 10:37:52 +01:00
Lee Smet b46d294507 Add .vs to .gitignore
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-22 10:36:54 +01:00
Lee Smet 80b1db1f7e Bump version to v0.4.0
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-22 10:05:59 +01:00
Lee Smet eb3b454dd4 Close #126: Increase packet length field size
This increases the potential max size of packet to 512K, in case we ever
want to enable TSO/GSO/GRO.

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-21 12:09:20 +01:00
Lee Smet 53e21522a7 Don't validate packet destination address
This previously lead to packets being dropped silently. We now
let this pass and instead rely on the route step to not find a route and
then construct a proper ICMP.

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-20 16:01:05 +01:00
Lee Smet 0caeda4861 Add source IP validation to CHANGELOG.md
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-20 15:54:54 +01:00
Lee Smet 593ca06c92 Close #81: Validate source IP of tun packet
For now validate that the IP is at least part of the global overlay. In
theory this can be restricted even further to be part of the node
subnet.

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-20 15:52:39 +01:00
Lee Smet 93adb94016 Specify the need for wintun.dll on Windows
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-20 12:50:26 +01:00
Lee Smet 9a5b7af2ef Merge pull request #124 from a-kenji/fix/typos
Fix various typos
2024-02-20 11:55:19 +01:00
Lee Smet 562566b417 Move windows support to right version in CHANGELOG
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-20 11:27:31 +01:00
Lee Smet 58c925c495 Close #105: Rework key file generation
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-20 11:26:09 +01:00
a-kenji 8fa6c830fb Fix various typos 2024-02-20 11:23:09 +01:00
Lee Smet 1e246f850a Move key save logic out of crypto
It's up to the application itself to define how a key is saved.

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-20 10:56:06 +01:00
Lee Smet 9e030c725d Add state of windows support 2024-02-20 10:33:51 +01:00
Lee Smet 018ed5282a Add network range change to CHANGELOG.md
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-19 14:09:55 +01:00
Lee Smet 35c6a75013 Change overlay IP's to be part of 400::/7
This diverts from the original design, current implementation will
propagate routes but won't be able to send data since packets not
destined to 200::/7 are dropped immediately in the local node.

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-19 14:00:57 +01:00
Lee Smet 1c259a6c80 Log endpoint when connection can't be established
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-16 14:33:24 +01:00
Lee Smet f228d28ebc Use array in Cmd.args in tun/windows add_address
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-02-15 16:53:20 +01:00