zonyitoo
58c1761630
local-redir UDP compatible with Linux < 2.6.37
...
fix #988
IPV6_TRANSPARENT was supported since Linux Kernel 2.6.37.
2023-02-06 04:49:15 +08:00
Bran Liang
02f87ba9cc
Enable tun destination configuration
2023-01-28 13:30:56 +08:00
5430fecc28
Bump base64 from 0.13.1 to 0.21.0 ( #1081 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tim Xylon <zedifen@outlook.com >
Co-authored-by: zonyitoo <zonyitoo@gmail.com >
2023-01-15 22:50:14 +08:00
zonyitoo
e3855b4a8d
clippy --fix
2022-12-18 11:32:46 +08:00
zonyitoo
d8938ac39f
fix local-dns compile error
...
fix #1051
2022-12-15 21:43:13 +08:00
zonyitoo
8953210907
"acl" is available in ext-config "servers" & "locals"
...
The "acl" in "servers" & "locals" will have higher priority than the
global "acl" in configuration.
fix #1042
2022-12-10 17:49:43 +08:00
zonyitoo
45cc770ef4
ssservice genkey, helper for generate encryption key
2022-10-17 22:29:35 +08:00
zonyitoo
6c5882e6ef
fixed NOFILE command line argument
2022-10-08 01:46:08 +08:00
zonyitoo
91b3bfabe1
fixed RemoteDnsAddress parsing
2022-10-08 01:19:44 +08:00
zonyitoo
817f106777
upgrade clap v4.0
2022-10-07 15:51:58 +08:00
zonyitoo
e972f082e5
ignore TCP_REDIR, UDP_REDIR if not supported on the current platform
2022-07-17 20:33:17 +08:00
ValdikSS
c5f7caab8d
Update broken Wiki/documentation URLs
2022-07-07 17:14:48 +08:00
zonyitoo
bfd043735e
no warning for running from root user
...
It is Ok to run sslocal, ssmanager, ssserver from root user unless there
are bugs and security holes in these programs which are lethal to the
system.
2022-07-06 06:15:47 +08:00
zonyitoo
0f72001378
fallback getpwnam if uid not exists
2022-06-29 00:41:50 +08:00
zonyitoo
64ad58bd61
switch user with -a, docker adds entrypoint script, #876
2022-06-29 00:31:57 +08:00
spyophobia
1efb02ee6b
Binaries spit out correct exit codes
2022-06-23 23:38:03 +08:00
Shun Sakai
f57d50659f
Change the return type of the main function
...
Since Rust 1.61.0, the `main` function can return a type that
implements the `Termination` trait.
By this, the `main` function can return custom exit codes, so use this.
2022-06-13 11:26:50 +08:00
zonyitoo
6036d8cbc2
local-stat-report support TCP destination ( #860 )
2022-06-10 21:59:07 +08:00
zonyitoo
77d343eb98
make "password" optional for none/plain method ( #838 )
2022-05-16 13:34:59 +08:00
zonyitoo
855f7fa8f1
allow sslocal run without servers ( #818 )
...
If no server was configured, then sslocal will bypass all connections
and packets.
2022-05-15 20:42:15 +08:00
zonyitoo
f059d4a4cb
remember worker_count passed from configuration
...
tokio's metric APIs is not stablized yet:
https://github.com/tokio-rs/tokio/issues/4073
2022-04-25 00:01:27 +08:00
ty
7c154d2340
AEAD-2022 ciphers (new protocol) ( #811 )
2022-04-19 11:48:43 +08:00
zonyitoo
66dc357ebf
Bumps rpassword from 5.0.1 to 6.0.1.
2022-04-10 01:53:37 +08:00
zonyitoo
6dee125baf
sysctlbyname with static [u8] name
2022-03-28 12:21:12 +08:00
zonyitoo
00c7d3f0aa
automatically bump RLIMIT_NOFILE on Unix (except Android)
...
- https://github.com/golang/go/issues/46279
- http://0pointer.net/blog/file-descriptor-limits.html
The I/O runtime, Tokio and Mio, in this Project won't use select(2), so
it is safe to bump the RLIMIT_NOFILE soft limit to hard limit
automatically.
2022-03-26 23:48:21 +08:00
zonyitoo
7a22f8d582
create Task for every local/server instances
...
- making good use of multicore runtime
2022-03-20 22:09:53 +08:00
zonyitoo
6bf2a439c8
SOCKS5 RFC1929 Username/Password Authentication ( #788 )
2022-03-16 15:57:47 +08:00
John
12eadcdd39
remove deprecated code for clap 3.1.0 ( #774 )
2022-02-25 10:46:18 +08:00
zonyitoo
e3c1da15e3
regression: server-host option for ssmanager
...
- fixes #767
- introduced since v1.13.0
2022-02-14 16:55:24 +08:00
Mike Borsetti
c3a801a6e1
Update broken url in --help ( #765 )
2022-02-11 00:51:18 +08:00
zonyitoo
0e0edda77b
support SO_USER_COOKIE on FreeBSD
2022-02-09 02:59:26 +08:00
zonyitoo
082ef9741b
better format of Icmpv6
2022-01-19 09:56:24 +08:00
zonyitoo
00c926d282
refactored tun local with smoltcp (user-space network stack)
...
ref #744 , probably could fix compatibility issue on R4S (OpenWRT) and
IPv6 support.
2022-01-16 03:54:52 +08:00
zonyitoo
14186d10f5
LOCAL_ADDR is not required for -U
...
ref #744
2022-01-11 16:33:24 +08:00
zonyitoo
9c07998c60
LOCAL_ADDR is required only in protocol except tun
...
fixes #744
2022-01-11 12:47:51 +08:00
zonyitoo
77bc0fc7ec
make clippy happy
2022-01-06 13:12:47 +08:00
zonyitoo
d31b6633ee
clap::ErrorKind only used when multi-threaded feature is enabled
2022-01-06 09:52:25 +08:00
zonyitoo
9ef0b31f91
upgrade clap to v3.0
2022-01-05 20:12:53 +08:00
Joshua Abraham
8cd7b96cd5
Update sslocal server-url help string
2021-12-12 21:51:08 +08:00
John
24152304f4
optimize logging code
2021-12-06 00:27:24 +08:00
ty
d90fb8a906
"log" and "runtime" specific options configurable in file ( #702 )
2021-11-28 14:49:53 +08:00
zonyitoo
18d042fa57
default config relative path only required if $PWD doesnt exist
2021-11-27 21:24:41 +08:00
zonyitoo
5292a25db3
refine documents
2021-11-27 19:21:41 +08:00
zonyitoo
77b2489a80
add missing logs from binaries
2021-11-27 17:36:16 +08:00
zonyitoo
8e84b51b6d
default configuration path includes $PWD/config.json
...
ref #700
2021-11-27 17:36:16 +08:00
zonyitoo
02b9ad74ca
make clippy happy
2021-11-27 17:36:16 +08:00
zonyitoo
e0bdcd76da
logging default configuration file path
...
ref #668 , #700
2021-11-27 17:36:16 +08:00
zonyitoo
486e1d7279
Local, Server & Manager unified binary ssservice
...
- fixes #698
- Refactored shadowsocks-rust crate structure. Common code are put into
a separated library
2021-11-27 17:36:16 +08:00
zonyitoo
4a4576bcf5
Split library and binaries into separated crates
...
- shadowsocks-core is a library contains all necessary functions for
running shadowsocks
- shadowsocks is a binary crate that ships end-user products
ref #326
2020-11-29 00:12:16 +08:00
zonyitoo
89722523a6
Plugins::join_all should exit if one of the plugins is exited
...
- Make clippy happy
- Upgrade tokio-rustls to 0.21 and other related crates
2020-11-28 02:32:52 +08:00