servers : - server : ":: " server_port : 8388 service_port : 80 # the k8s service port, default to server_port password : mypassword method : aes-256-gcm fast_open : true mode : tcp_and_udp # plugin: v2ray-plugin # plugin_opts: server tls host= # Whether to download v2ray and xray plugin. # You can put arbitrary yaml here, and it will be translated to json before mounting. yamlīelow is the common default values you can change: # This is the shadowsocks config which will be mount to /etc/shadowocks-rust. Helm install my -release k8s /chart -f my -values. You can change the config via editing the ConfigMap named shadowsocks-rust.įor more fine-grained control, use helm. Kubectl apply -f https : ///shadowsocks/shadowsocks-rust/raw/master/k8s/shadowsocks-rust.yaml You can leverage k8s Service to expose traffic outside, like LoadBalancer or NodePort which gains more fine-grained compared with fixed host or port.įor a more interesting use case, you can use a Ingress(Istio, nginx, etc.) which routes the matched traffic to shadowsocks along with the real web service. This project provided yaml manifests for deploying to Kubernetes. docker run -name sslocal-rust \ -restart always \ -p 1080:1080/tcp \ -v /path/to/config.json:/etc/shadowsocks-rust/config.json \ -dit ghcr.io/shadowsocks/sslocal-rust:latest docker run -name ssserver-rust \ -restart always \ -p 8388:8388/tcp \ -p 8388:8388/udp \ -v /path/to/config.json:/etc/shadowsocks-rust/config.json \ -dit ghcr.io/shadowsocks/ssserver-rust:latest Deploy to Kubernetes You need to mount the configuration file into the container and create an external port map for the container to connect to it. docker buildx build -t shadowsocks/sslocal-rust:latest -t shadowsocks/sslocal-rust:v1.11.1 -target sslocal. docker buildx build -t shadowsocks/ssserver-rust:latest -t shadowsocks/ssserver-rust:v1.11.1 -target ssserver. If you want to build the Docker image yourself, you need to use the BuildX. docker pull ghcr.io/shadowsocks/sslocal-rust:latest docker pull ghcr.io/shadowsocks/ssserver-rust:latest Build on the local machine(Optional) Pull from GitHub Container Registryĭocker will pull the image of the appropriate architecture from our GitHub Packages. ![]() This project provided Docker images for the linux /i386 and linux /amd64 and linux /arm64 /v8 architectures. build-docker: Build for x86_64-unknown-linux-musl, x86_64-pc-windows-gnu.build-linux: Build for x86_64-unknown-linux-gnu, Debian 9 (Stretch), GLIBC 2.18.build-windows: Build for x86_64-pc-windows-msvc.Then you can find sslocal and ssserver in $ CARGO_HOME/bin. Install from crates.io: # Install from crates.io rpmalloc - Uses rpmalloc as global memory allocator.snmalloc - Uses snmalloc as global memory allocator.It tries to link system-wide tcmalloc by default, use vendored from source with tcmalloc-vendored. tcmalloc - Uses TCMalloc as global memory allocator.mimalloc - Uses mi-malloc as global memory allocator.jemalloc - Uses jemalloc as global memory allocator.But it also allows you to use other famous allocators by features: This project uses system (libc) memory allocator (Rust's default). WARN: stream ciphers are UNSAFE!Īead-cipher-extra - Enable non-standard AEAD ciphers ![]() Stream-cipher - Enable deprecated stream ciphers. Local-tun - TUN interface support for sslocal Local-dns - Allow using dns protocol for sslocal, serves as a DNS server proxying queries to local or remote DNS servers by ACL rules Local-redir - Allow using redir (transparent proxy) protocol for sslocal Local-socks4 - Allow using SOCKS4/4a protocol for sslocal ![]() Local-tunnel - Allow using tunnel protocol for sslocal Local-http-rustls - Support HTTPS with rustls Local-http-native-tls - Support HTTPS with native-tls Local-http - Allow using HTTP protocol for sslocal ![]() Trust-dns - Uses trust-dns-resolver as DNS resolver instead of tokio's builtin. cg31/shadowsocks-windows-gui-rust Windows GUI client, discussion.honwen/openwrt-shadowsocks-rust OpenWRT solution for sslocal, discussion.spyophobia/shadowsocks-gtk-rs A GUI on Linux for sslocal using GTK, discussion.Libraryīinaries running common shadowsocks services Shadowsocks is a fast tunnel proxy that helps you bypass firewalls.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |