Commit graph

316 commits

Author SHA1 Message Date
Σrebe - Romain GERARD
70427227b1
fix(#380): Fix reverse udp tunnel
Correctly set the correct destination in the udp connector
2024-12-11 16:00:14 +01:00
Σrebe - Romain GERARD
5584972c46
bump deps 2024-12-11 15:00:14 +01:00
Σrebe - Romain GERARD
59d0737a2b
chore: lint 2024-11-08 19:59:31 +01:00
Ongy
05043954af
Add hard fileno (#366)
* increase the fileno limit

This allows wstunnel to use fds>1024.
Otherwise heavy use can easily run out of file descriptors on connection
attempts.
While there will still be a limit, it is significantly higher (~500
times on my system) which provides enough headroom for connections to be
torn down and fds to be closed.
2024-11-08 19:51:56 +01:00
Ongy
820cb2232a
Avoid default IP of 0.0.0.0 (#369)
This default never makes sense, since a connection request to the 0 IP
always fails.
The Option mechanism provides a better way of setting an unknown that
can easily be detected than abusing a valid but useless IP address.
2024-10-16 17:21:01 +02:00
Σrebe - Romain GERARD
4b43dfc268 fix(#368): Update the restrictions before each request
instead of only once per conections, to avoid using a stale
restriction config when multiple request arrive on the same tcp stream.
2024-10-12 22:06:29 +02:00
Σrebe - Romain GERARD
c39d84fdc2 fix(#365): correctly downcast websocket cnx when not using tls 2024-10-08 23:08:38 +02:00
Σrebe - Romain GERARD
4bc7ab6fe7 Add inline 2024-10-02 21:30:06 +02:00
Σrebe - Romain GERARD
b2693ecf28 fix(#360): Fork websocket lib to add flush method after writing a frame 2024-10-01 08:36:29 +02:00
Σrebe - Romain GERARD
608865fdd8
feat: log client version at startup 2024-09-30 18:20:01 +02:00
Σrebe - Romain GERARD
b7901bc38c
chore: Truncate pending read_buf when empty to release memory 2024-09-30 18:19:56 +02:00
Σrebe - Romain GERARD
5004366dfb
Bump deps 2024-09-28 14:52:40 +02:00
Σrebe - Romain GERARD
2bc7c94578 fix(#360): data not flushed immediatly on reverse tunnel 2024-09-27 21:36:42 +02:00
Σrebe - Romain GERARD
e2d1413379 fix(#358): Remove header timeout 2024-09-27 21:36:31 +02:00
Σrebe - Romain GERARD
38b3b18297 bump deps 2024-09-27 21:36:31 +02:00
Σrebe - Romain GERARD
8c2704d9d2
fix panic for http2 tunnels 2024-09-02 14:15:46 +02:00
Σrebe - Romain GERARD
878319b027
lower log lvl for received frame 2024-08-29 22:38:25 +02:00
Σrebe - Romain GERARD
8dcaf17356
avoid overflow of day depending of the month 2024-08-27 10:13:06 +02:00
Σrebe - Romain GERARD
5b2a34ff2a
feat: Generate self-signed at startup to avoid fingerprint 2024-08-27 09:08:17 +02:00
Σrebe - Romain GERARD
8f83ca0f7b
chore: Use ecdsa for self-signed certificate and fix adaptative compilation 2024-08-26 23:35:09 +02:00
Σrebe - Romain GERARD
1522882edc
Randomize jwt secret signature 2024-08-26 20:56:55 +02:00
Σrebe - Romain GERARD
0bdedaa7b3
Bump rust version 2024-08-26 20:35:47 +02:00
Ramses
08936bb5e4
Make the ping frequency from the server to the client configurable (#338) 2024-08-20 08:30:12 +02:00
Ramses
8da52538be
Add missing timer to avoid a panic (#334) 2024-08-16 23:06:21 +02:00
Σrebe - Romain GERARD
7270aa5550
update readme 2024-08-15 19:55:03 +02:00
Σrebe - Romain GERARD
74434da624
fix(#333): Reverse Unix socket is now available for non Unix client 2024-08-15 09:48:14 +02:00
Σrebe - Romain GERARD
f55643550b
Auto break connection after too many pings 2024-08-12 09:06:28 +02:00
Σrebe - Romain GERARD
21c4f7ffc6
Use HTTP proxy if configured for socks5 2024-08-10 11:32:50 +02:00
Σrebe - Romain GERARD
0f33feecfc
split 2024-08-10 11:24:33 +02:00
Σrebe - Romain GERARD
dff243369c
support proxy protocol in more cases 2024-08-10 10:58:05 +02:00
Σrebe - Romain GERARD
8c4d091b9e
cleanup 2024-08-05 09:12:32 +02:00
Σrebe - Romain GERARD
a468428791
feat(reverse-tunnel): allow multiple waiters & auto-shutdown 2024-08-04 22:34:04 +02:00
Σrebe - Romain GERARD
811a1e6adf
cleanup argument parsing 2024-08-01 22:26:28 +02:00
Σrebe - Romain GERARD
f149b8190b
cleanup 2024-07-31 22:12:55 +02:00
Σrebe - Romain GERARD
05abcd441f
remove unsafe 2024-07-31 21:42:05 +02:00
Σrebe - Romain GERARD
89e71cc806
lint 2024-07-31 21:31:32 +02:00
Islam Nofl
ce04666b8b
Add forward traffic to another HTTP proxy for the server (only for LocalProtocol::Tcp) (#326)
* Add forward traffic to another HTTP proxy for the server (only for LocalProtocol::Tcp)

* Update to the newest code:
- Add `connect_with_http_proxy` to `TunnelConnector`

* Remove unnecessary error checks

* Resolve conflict again
2024-07-31 21:11:13 +02:00
Σrebe - Romain GERARD
58c34ccc41
refacto: avoid lock in socks5 stream 2024-07-31 08:35:45 +02:00
Σrebe - Romain GERARD
0dded01b7f
refacto: simplify server request handling 2024-07-30 22:30:56 +02:00
Σrebe - Romain GERARD
c36626c298
Refacto: merge http2 and websocket request handling 2024-07-30 21:29:14 +02:00
Σrebe - Romain GERARD
eb96ed41be
Refacto: split server files 2024-07-30 20:22:54 +02:00
Σrebe - Romain GERARD
7d30e0f462
Refacto: Use proper type for WsServer 2024-07-30 09:10:25 +02:00
Σrebe - Romain GERARD
a33a889b3d
Refacto: Use proper type for WsClient 2024-07-30 08:36:52 +02:00
Σrebe - Romain GERARD
5e74ed233d
chore: refacto use dedicated trait 2024-07-29 22:20:28 +02:00
Σrebe - Romain GERARD
279896126c
chore(http-proxy): improve http proxy 2024-07-28 16:04:46 +02:00
Σrebe - Romain GERARD
38cb7ed5f8
refacto: split into modules 2024-07-28 15:24:55 +02:00
Σrebe - Romain GERARD
6a07201de1
refacto: Add specific trait for TunnelListener 2024-07-28 12:22:33 +02:00
Σrebe - Romain GERARD
6e10c27dbb
feat: Add http proxy support 2024-07-27 20:13:02 +02:00
Σrebe - Romain GERARD
97251804dd
feat(udp): set SO_MARK for udp cnx 2024-07-20 16:16:46 +02:00
Σrebe - Romain GERARD
2c5cc95c52
chore(dns): cleanup code 2024-07-20 15:42:42 +02:00