我正在尝试让NginX在连接到shadowsocks-client时使用代理,如下所示。
代理服务器的设置一般如下:
Browser[SwitchyOmega] -> shadowsocks-client --> shadowsocks-server[Self-built server or shared by others] --> Remote
对于冗余和负载平衡:
Browser[SwitchyOmega] -> nginx -- shadowsocks-client[all in one server with diffent port] --> sha
我想为openwrt创建一个脚本,它每天都会更改Shadowsocks服务中的一些变量。这就是脚本,但我不知道该把它放在哪里,也不知道如何设法每天或每次路由器重启时调用它。
#!/bin/sh /etc/rc.common
restart=0
for i in `uci show shadowsocks | grep alias | sed -r 's/.*\[(.*)\].*/\1/'`
do
server=$(uci get shadowsocks.@servers[${i}].alias)
result=$(nslookup $server)
我在配置影子袜子配置文件时遇到了这个问题:
$ ssserver -c profile.json
/gnu/store/yvjgk9n6xzpr32maq1mqw1ij2vhm9jxb-shadowsocks-2.8.2-0.e332ec9/lib/python3.8/site-packages/shadowsocks/common.py:221: SyntaxWarning: "is" with a literal. Did you mean "=="?
if addr is "":
/gnu/store/yvjgk9n6xzpr32maq
我有一个问题,当我在/etc/rc.local上添加'ssserver -c /etc/shadowsocks.json -d start‘时,它看起来像这样:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disa
在脚本中,我使用了main函数来创建一个新的sudo来使用sudo完成所有事情。
#!/bin/bash
function sudo_stuffs() {
install_ss
}
function install_ss() {
echo something
}
main() {
# 切换目录
cd /tmp
if [[ ! -d "install_shadowsocks" ]]; then
mkdir install_shadowsocks
fi
cd install_shadowsocks
# 如果没有sudo权限
i
日志报告如下:
Initialising ciphers...
RC4-MD5 (RC4-MD5) initialised.
Listen UDP socket state changed to QAbstractSocket::BoundState
Running in local mode.
TCP server listen at port 1080
An invalid socket connection was rejected. Please make sure the connection type is SOCKS5.
An invalid socket connection
我在中国的GFW中使用Ubuntu,并安装了shadowsocks-qt5。设置服务器配置文件并连接服务器后,我无法连接到google.com。
我检查了服务器配置,它是正确的。
我查过日志了。它显示:
TCP server listen at port 1080
Connecting 93.46.8.89:80 from 127.0.0.1:37306
Connecting 93.46.8.89:80 from 127.0.0.1:37310
Connecting 93.46.8.89:80 from 127.0.0.1:373014
在配置中,我的本地端口是