socccks
1.0.0
このリポジトリを作成して、Golang、Socks5プロトコル、Shadowsocks(SS)を学習します。
obstacle
|
|
|
+--------------------+ | +--------------------+
| your processes | | | real destination |
+--------------------+ | +--------------------+
| | |
| | |
socks5 protocol | | |
| | |
| | |
+--------------------+ Encrypted Data pipe +--------------------+
| socccks-client | <--------------------------------------> | socccks-server |
+--------------------+ through tcp socket +--------------------+
|
----------------------------------------------------------------------------------------------------
|
your computer | remote computer
|
obstacle
Socccksは、Socks5プロキシです。 Socks5ソケットを介して障害物の背後にあるいくつかのリソースにアクセスできます。 Socccks-clientとsocccks-serverの間のデータは暗号化されており(AES-256-CFB)、機能はありません。
go get github.com/davidqhr/socccks/cli/socccks-servergo get github.com/davidqhr/socccks/cli/socccks-client # config.example.yml
{
"address" : " 0.0.0.0 " ,
"users" : {
"david" : 8112 ,
"monika" : 8113
}
}
socccks-server -c config.example.ymlsocccks-client -s server_ip:server_port -l bindaddress:port -p pass
curl --socks5-hostname bindaddress:port https://www.google.com -v
# eg:
socccks-client -s 192.168.1.132:8113 -l localhost:1090 -p david
curl --socks5-hostname localhost:1090 https://www.google.com -vmit