zonyitoo
18fc497974
Fixed #191 , do not check duplicated nonce for Plain cipher
2020-02-05 20:22:37 +08:00
zonyitoo
80b3212cdd
Optimize logs, yield coroutine instead of sleep 100ms when connect failed
2020-02-04 22:02:45 +08:00
zonyitoo
6ce0fbe7c1
RTT is millisecond
2020-02-04 16:35:12 +08:00
zonyitoo
b1c71672c1
Print original server addr in log
2020-02-04 15:23:17 +08:00
zonyitoo
528807b68e
Refactored balancer, report failure for every relay connections
2020-02-04 15:10:26 +08:00
zonyitoo
508c6dac3c
Check plugin and confirm it starts before listening
2020-02-03 21:31:55 +08:00
zonyitoo
e04deaaf77
Enable TCP_NODELAY for better handshake performance
2020-02-03 14:35:21 +08:00
zonyitoo
7a8673886e
Support TPROXY for TCP on Linux, remote supports of all BSDs, refactor system specific code organization
2020-02-03 05:36:25 +08:00
zonyitoo
70710397ef
Fixed bug, redir shouldnt use forward address configuration
2020-02-02 23:54:28 +08:00
zonyitoo
0fa1be898f
Fixed bug, msg_controllen is size_t type
2020-02-02 23:34:53 +08:00
zonyitoo
73013ae970
Fixed bug, transmute sockaddr_storage to SocketAddr shouldnt use && pointer
2020-02-02 22:16:50 +08:00
zonyitoo
ee40cedece
[ #190 ] Supports UDP transparent proxy on Linux, BSD-like untested
2020-02-02 21:19:05 +08:00
zonyitoo
8ec7633cf8
[ #190 ] UDP Transparent proxy placeholder
2020-02-01 10:23:38 +08:00
zonyitoo
d775f701a6
[ #190 ] Supports TCP Transparent Proxy on BSD-like systems
2020-02-01 01:41:18 +08:00
zonyitoo
cb89ec78d0
[ #190 ] Supports TCP transparent proxy on Linux
2020-01-31 23:21:02 +08:00
zonyitoo
161bc86f8b
Supports setting nofile from command line
2020-01-13 10:45:54 +08:00
zonyitoo
a67f3450a3
Supports setting rlimit nofile on *nix platforms
2020-01-13 10:23:05 +08:00
zonyitoo
8117e50e36
Fixed bug, server bind-addr should not contains a specific port
...
fix #189
2020-01-13 09:28:14 +08:00
zonyitoo
f4feba9fc1
Print handshake actual error message in ssserver
2020-01-12 09:43:08 +08:00
zonyitoo
33e72c51da
Fixed bug, clear the next filter instead of the current one
2020-01-11 23:01:10 +08:00
zonyitoo
f64a993e7b
Check every filters instead of only the current one
2020-01-11 22:47:08 +08:00
zonyitoo
770c79ea27
Print detected repeated iv/salt in debug level
2020-01-11 22:24:12 +08:00
zonyitoo
d8a7f8f5bc
Detect repeated iv/salt for defending from reply attacks
2020-01-11 21:49:51 +08:00
zonyitoo
aa71a72e48
Optimized SharedServerState by wrapping it into one Arc
2020-01-11 19:45:59 +08:00
zonyitoo
b3c00a801b
Add bind_addr() helper method for ServerAddr
...
UDP relay server supports using local addr for bind()
2020-01-11 18:54:33 +08:00
zonyitoo
fccadbbc44
UDP server should filter addresses by forbidden_ip
2020-01-11 15:10:59 +08:00
zonyitoo
430e0b9562
Allow binding with domain name
2020-01-11 15:08:31 +08:00
zonyitoo
422a2ae39e
Allowing to disable trust-dns dependency again
2020-01-11 13:54:36 +08:00
zonyitoo
657f09dffb
Add trace log for connecting, bump version to v1.8.4
2020-01-09 23:10:47 +08:00
zonyitoo
271aa8179e
[ #26 ] Switched to socket2 for much simpler solution
2020-01-09 23:06:21 +08:00
zonyitoo
6f7d540f4e
[ #26 ] Allowing bind to specific address before connect
2020-01-09 23:06:21 +08:00
zonyitoo
30e2b8eca9
Ignore UDP protocol as it is not Rust code
2020-01-08 14:05:41 +08:00
zonyitoo
cd401215f7
Make clippy happy
2020-01-08 13:37:39 +08:00
zonyitoo
1806920d12
Check config_type with unified function
2020-01-08 12:21:26 +08:00
zonyitoo
d43fe19387
Add a unified entrance for starting server
2020-01-08 12:16:55 +08:00
zonyitoo
1cca28573b
Updated doc
2020-01-08 12:03:20 +08:00
zonyitoo
d3ce4869f4
Uses default env-logger format
2020-01-07 09:17:52 +08:00
zonyitoo
be60f12a5b
Bump version to v1.8.2
2020-01-07 01:16:09 +08:00
zonyitoo
19c7aafd68
Rewritten PingBalancer for customizing Server ref
...
- HTTP local service puts HttpClients into Server ref struct
- Removed `trust-dns` feature, `trust-dns-resolver` is now default
resolver
- Reduced Arc<ServerConfig> dependencies
2020-01-07 01:09:30 +08:00
zonyitoo
caf6415cd7
Fixed #185 doc test in lib.rs
2020-01-05 21:08:37 +08:00
zonyitoo
f7eb0ca6a5
AEAD cipher protocol data.len is limited to 0x3FFF
2020-01-05 16:40:19 +08:00
zonyitoo
1b6afa2305
Properly handles IPv6 host URI
2020-01-05 00:17:59 +08:00
zonyitoo
7aeb5f1e81
Send first packet with IV/Nonce to reduce latency
2020-01-04 22:55:22 +08:00
zonyitoo
af958e8655
Optimized http local code
2019-12-29 09:20:17 +08:00
zonyitoo
9202c09da1
[ #182 ] Supports HTTP RFC7230 proxy protocol
2019-12-28 23:55:07 +08:00
zonyitoo
20d46a1b7a
[ #182 ] Supports HTTP CONNECT relay for sslocal
2019-12-28 17:32:20 +08:00
zonyitoo
e529d1541b
Better strategy to drop UDP local <- remote task
2019-12-27 22:27:52 +08:00
zonyitoo
d08bfff00f
Print forward address in start message
2019-12-27 21:02:00 +08:00
zonyitoo
97a1c725cc
UDP tunnel doesnt need TCP server
2019-12-27 20:35:00 +08:00
zonyitoo
4ccade6a17
Just check once before actual start
2019-12-27 20:26:40 +08:00