SSR 및 SS를 제거하기 위해 SSROT에 해당하는 새로운 프록시 인 OverTLS를 사용하고 OT의 녹 구현 만 유지합니다. OT는 매우 빠르고 오래된 개만큼 안정적입니다.
SSR 및 SS가없는 SSROT의 녹 구현 인 OverTLS를 사용하십시오.
새로운 기능 : GFW 터미네이터 SSROT
벽 위로 올라간 고위험 사람들에게 작곡
개발자가 SSROT를 개선하도록 도와줍니다
새로운 기능 : GFW 터미네이터 SSROT 영어 자습서
Shadowsocksr-Native 는 임베디드 장치 및 로우 엔드 박스를위한 가벼운 보안 Socks5 프록시입니다. Shadowsocks-Libev에서 파생되었습니다.
@ssrlive에 의해 유지되는 @breakwa11에 의해 생성 된 Shadowsocksr의 포트입니다.
현재 버전 : 0.4 | changelog
Shadowsocksr-Native는 순수한 C로 작성되었으며 libuv, mbedtls, libsodium 및 json-c에만 의존합니다.
정상적인 사용에서 메모리 풋 프린트는 약 600KB이며 CPU 사용은 저가형 라우터에서 5%를 넘지 않습니다 (400MHz MIPS CPU, 32MB 메모리 및 4MB 플래시가있는 Buffalo WHR-G300N V2).
다른 버전의 Shadowsocks 간의 기능 비교 목록은 Wiki 페이지를 참조하십시오.
| 없음 | 테이블 | ||||
| RC4 | RC4-MD5-6 | RC4-MD5 | |||
| AES-128-CFB | AES-192-CFB | AES-256-CFB | |||
| AES-128-CTR | AES-192-CTR | AES-256-CTR | |||
| 동백 -128-CFB | 동백 192-CFB | 동백 -256-CFB | |||
| BF-CFB | Cast5-CFB | DES-CFB | 아이디어 -CFB | RC2-CFB | 종자 CFB |
| Salsa20 | Chacha20 | chacha20-eietf | |||
| AES-128-GCM | AES-192-GCM | AES-256-GCM | chacha20-eietf-poly1305 | XCHACHA20-IITF-POLY1305 |
| 프로토콜 | 난독 자 |
|---|---|
| 기원 | 솔직한 |
| Auth_sha1_v4 | http_simple |
| Auth_aes128_sha1 | http_post |
| Auth_aes128_MD5 | http_mix |
| auth_chain_a | tls1.2_ticket_auth |
| Auth_chain_B | tls1.2_ticket_fastauth |
| auth_chain_c/d/e/f |
데이터 흐름의 진행
+-----------------------------------------------------------------------------+
| +--------------------------------------------------------+ |
| | +------------------------------------+ | |
| | | +-------------------+ | | |
| obfuscator | encryptor | protocol | user data | | | |
| | | | | | +-------------------+ | | |
| | | | +------+-----------------------------+ | |
| | +-------+--------------+---------------------------------+ |
+---+--------------------+--------------+-------------------------------------+
| | |
+-- server_encode +-- encrypt +-- server_pre_encrypt <<<=== user data
| | |
+-- server_decode +-- decrypt +-- server_post_decrypt ===>>> user data
UNIX와 같은 시스템, 특히 데비안 기반 시스템과 같은 Ubuntu, Debian 또는 Linux Mint의 경우 다음과 같은 바이너리를 구축 할 수 있습니다.
# Debian / Ubuntu
# sudo su # using root account
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install --no-install-recommends build-essential autoconf libtool asciidoc xmlto -y
sudo apt-get install git gcc g++ gdb cmake automake -y
sudo apt-get -f install -y
# cd / # switch to root directory
git clone --recursive https://github.com/ShadowsocksR-Live/shadowsocksr-native.git ssr-n
cd ssr-n # enter ssr-n directory.
# build ShadowsocksR-native
mkdir build && cd build
cmake .. && make
# make install
# /bin/cp -rfa src/ssr-* /usr/bin
# build 32-bit binary
sudo apt-get install gcc-multilib -y
rm -rf *
cmake -D CMAKE_C_FLAGS=-m32 .. && make
대상 바이너리는 ssr-n/build/src/ssr-server , ssr-n/build/src/ssr-client .
Centos 7 만. 우리는 Centos 6.x를 지원하지 않으며 너무 오래되었습니다.
ssr-Native 를 빌드하기 전에 먼저 cmake 3.x를 설치해야합니다. 이후
# CentOS / Fedora / RHEL
sudo su
yum install wget git gcc gcc-c++ gdb autoconf automake libtool make asciidoc xmlto -y
curl https://cmake.org/files/v3.25/cmake-3.25.1-linux-x86_64.sh -o a.sh
sh a.sh --prefix=/usr/ --exclude-subdir && rm -rf a.sh
cd /
git clone --recursive https://github.com/ShadowsocksR-Live/shadowsocksr-native.git ssr-n
cd ssr-n
# Since there no stdatomic.h exist in CentOS 7, we have to use older libuv version.
# Fedora / RHEL can skip the steps.
cd depends/libuv
git checkout 71932a9fc9e234b3ebac90de0dd061fb00ba191b
cd ../..
mkdir build && cd build
cmake .. && make
# make install
# /bin/cp -rfa src/ssr-* /usr/bin 대상 바이너리는 ssr-n/build/src/ssr-server , ssr-n/build/src/ssr-client .
MacOS의 경우 먼저 Xcode를 다운로드/설치/실행해야합니다.
그런 다음 홈 브루를 사용하여 설치하거나 빌드하십시오.
역학 및 도구 설치 :
ruby -e " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install ) "
brew install git cmake automake libtool
brew upgrade git cmake automake libtool이제 소스 코드를 가져 와서 빌드하십시오.
git clone --recursive https://github.com/ShadowsocksR-Live/shadowsocksr-native.git ssr-n
cd ssr-n
mkdir build && cd build
cmake .. && make 대상 바이너리는 ssr-n/build/src/ssr-server , ssr-n/build/src/ssr-client .
Windows의 경우 다음 명령을 사용하여 프로젝트를 수행 한 다음 Visual Studio 2010을 사용하여 Win32/SSR-Native.sln을 엽니 다!
git clone --recursive https://github.com/ShadowsocksR-Live/shadowsocksr-native.git ssr-n모든 지원되는 인수의 자세하고 완전한 목록은 각각 응용 프로그램의 맨 페이지를 참조 할 수 있습니다.
ssr-[client|local|server]
[-c <config_file>] The path to config file
[-d] Run in background as a daemon.
[-h] Show this help message.
config.json
{
"password" : " password " ,
"method" : " aes-128-ctr " ,
"protocol" : " auth_aes128_md5 " ,
"protocol_param" : " " ,
"obfs" : " tls1.2_ticket_auth " ,
"obfs_param" : " " ,
"udp" : true ,
"idle_timeout" : 300 ,
"connect_timeout" : 6 ,
"udp_timeout" : 6 ,
"server_settings" : {
"listen_address" : " 0.0.0.0 " ,
"listen_port" : 12475
},
"client_settings" : {
"server" : " 12.34.56.78 " ,
"server_port" : 12475 ,
"listen_address" : " 0.0.0.0 " ,
"listen_port" : 1080
},
"over_tls_settings" : {
"enable" : false ,
"server_domain" : " goodsitesample.com " ,
"path" : " /udg151df/ " ,
"root_cert_file" : " "
}
}Centos 7에서 Cmake 버전은 너무 오래되어 Shadowsocksr-Native와 함께 일할 수 없습니다. 그래서 우리는 스스로 설치해야합니다.
sudo su
cd /
wget --no-check-certificate https://cmake.org/files/v3.25/cmake-3.25.1-linux-x86_64.sh -O a.sh
bash a.sh --prefix=/usr/ --exclude-subdir
rm -rf a.sh
cmake --version 그리고 cmake --version 명령은 메시지가 좋아합니다.
cmake version 3.25.0
CMake suite maintained and supported by Kitware (kitware.com/cmake).
CentOS 7 / Debian / Ubuntu 지원 다음 명령
sudo su
wget --no-check-certificate https://raw.githubusercontent.com/ShadowsocksR-Live/shadowsocksr-native/master/install/ssrn-install.sh
chmod +x ssrn-install.sh
./ssrn-install.sh 2>&1 | tee ssr-n.log
설치 후 상태를 볼 수 있습니다
systemctl status ssr-native.service
그리고 우리는 root 권한에서 cat 또는 vi 로 구성을 보거나 편집 할 수 있습니다.
cat /etc/ssr-native/config.json
서버 구성을 변경 한 후에는 변경 사항을 발효하려면 서비스를 다시 시작해야합니다.
systemctl restart ssr-native.service
서버를 중지하려면 실행하십시오
systemctl stop ssr-native.service
서버를 제거하려면 다음 명령을 사용하십시오
./ssrn-install.sh uninstall