Commit graph

90 commits

Author SHA1 Message Date
6f143280d1 Pin older version of base64 for now 2023-10-02 17:07:37 -04:00
George Hopkins
653c314409 Support pre-shared key 2023-10-02 16:24:37 +02:00
fa634a08dc Fix a clippy warning 2023-01-12 01:43:32 -05:00
76b6a6e346 Use bytes 2023-01-12 01:40:04 -05:00
Jovan Gerodetti
fbc76e3fb0 Handle WireGuardError::ConnectionExpired #44 2022-09-25 22:34:03 +02:00
85195d8aba
Merge pull request #41 from samhug/stackoverflow
Fix stack overflow on windows
2022-08-20 09:17:14 -04:00
Kian-Meng Ang
074e1b430c Fix typos and markdowns
Found via these commands:

    codespell -L crate
    markdownlint -f README.md --disable MD013 MD033 MD041
2022-08-12 18:45:14 +08:00
Sam Hug
cea343c2c9 heap alloc WireGuardTunnel::consume_task() future 2022-08-11 15:32:24 -07:00
8cee210ccb Expose boringtun x25519 primitives 2022-06-25 14:38:08 -04:00
48eaf0f840 Allow onetun to be used as a library 2022-06-25 10:33:37 -04:00
f85692950f Split dependencies that are only used for the binary version of onetun 2022-06-24 01:45:31 -04:00
Jackson Coxson
4162f62ae6 Change the error message from host to bind 2022-06-23 23:14:57 -06:00
Jackson Coxson
9bd7ec2cca Simplify IP version detection 2022-06-23 23:11:45 -06:00
Jackson Coxson
1680b17c47 Correct binding terminoligy IP version detection 2022-06-23 23:10:48 -06:00
Jackson Coxson
96e18edd19 Invert logic for IP version mismatch 2022-06-23 23:10:11 -06:00
Jackson Coxson
c647bc9a96 Rename host_addr to endpoint_bind_addr 2022-06-23 23:01:32 -06:00
Jackson Coxson
3ab108ad04 Move host address resolution logic to config 2022-06-23 22:59:19 -06:00
Jackson Coxson
b108b5f404 Clarify help instructions for host binding 2022-06-23 22:47:33 -06:00
Jackson Coxson
5e94a0f31e Add host address binding option 2022-06-22 23:06:16 -06:00
73671a4d07 Add argument and env variable for remote port forwarding.
Part of #6
2022-06-21 18:38:55 -04:00
52aba0115d Fix new clippy lint 2022-03-27 17:14:18 -04:00
47c6c588d2 udp: remove extra socket iteration in virtual iface 2022-01-10 00:46:52 -05:00
782f5e74bf Apply TcpStream fix to UdpSocket as well 2022-01-10 00:35:14 -05:00
11f86c49d6 Ensure all bytes are written to TcpStream
Fixes #22
2022-01-09 22:52:48 -05:00
e06b6526b7 Process more than one UDP socket per poll 2022-01-08 17:49:07 -05:00
ff0f5b967e Add optional IP packet capture for WireGuard tunnel 2022-01-08 17:30:10 -05:00
953bc18279 Remove some clippy suppressions for udp files 2022-01-08 15:20:21 -05:00
d9bccb79e5 Process all TCP virtual client sockets in one poll 2022-01-08 15:11:59 -05:00
025c001abb Remove event tracing when reading from bus 2022-01-08 14:48:04 -05:00
2b18bd4ec3 Remove unused dependency. Improve trace logging perf. 2022-01-08 14:41:12 -05:00
abd9df6be4 Implement event-based UDP interface 2022-01-08 03:40:20 -05:00
51788c9557 Improve reliability using event-based synchronization 2022-01-08 02:18:51 -05:00
7b6229ca1e
Merge pull request #25 from tilosp/mtu 2021-12-20 15:02:37 -05:00
Tilo Spannagel
ce9cfce8fc Fix ipv6 endpoints 2021-12-20 17:39:01 +00:00
Tilo Spannagel
23af49dde5 Allow configuration of max transmission unit 2021-12-20 17:21:43 +00:00
d51144b693 Formatting 2021-12-20 02:19:54 -05:00
Tilo Spannagel
af803ffc6a Update to smoltcp 0.8.0 2021-12-20 02:16:40 +00:00
c50fe8233a Wireguard -> WireGuard 2021-10-26 03:05:03 -04:00
75d6a0a11c Allow passing private key using file.
Adds warning about passing key directly in CLI.
On *nix systems, checks file permissions for warnings.

Fixes #19
2021-10-26 02:49:14 -04:00
1493feb184 Reduce udp client socket meta buffer 2021-10-26 01:20:02 -04:00
0da6fa51de udp: use tokio select instead of 1ms loop 2021-10-26 00:38:22 -04:00
faf157cfeb UDP port re-use during flooding 2021-10-26 00:03:44 -04:00
d975efefaf End-to-end UDP implementation
Port re-use still needs to be implemented to prevent exhaustion over
time, and flooding.
2021-10-25 19:05:42 -04:00
282d4f48eb Checkpoint 2021-10-20 19:04:56 -04:00
fb50ee7113 UDP virtual interface skeleton 2021-10-20 18:06:35 -04:00
cc91cce169 Basic UDP port pool 2021-10-20 16:49:24 -04:00
11c5ec99fd Replace lockfree with tokio::sync 2021-10-20 16:05:04 -04:00
5cec6d4943 Index ports with protocol in WG. Start writing UDP tunnel code with plans. 2021-10-19 01:55:04 -04:00
703f261344 Move TCP tunneling code to separate module 2021-10-19 01:00:05 -04:00
c2d0b9719a Refactor TCP virtual interface code out of main. Removed unused server socket buffer. 2021-10-19 00:43:59 -04:00