Please answer these questions before submitting your issue. Thanks!
2.5.5
Ubuntu 16.04.1
Ip is blocked
shutdown auto block
ip blocked
Nope, it's a must have.
Actually, random failure won't get your IP blocked, the server would reset the block status when one connection get established successfully.
是不是重启服务器或者ss-server就可以解除block了,咱试过转发服务器被block后重启ss服务器,然后就可以正常连接了
Max Lv [email protected]于2016年10月26日周三 06:11写道:
Nope, it's a must have.
Actually, random failure won't get your IP blocked, the server would reset
the block status when one connection get established successfully.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/shadowsocks/shadowsocks-libev/issues/899#issuecomment-256192453,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJoPKX8WTr8U8SiiK6drn6V2hbJ2t-dsks5q3n6mgaJpZM4KgKxE
.
重启是可以解决的,只是升级到新版以后,之前用haproxy做的代理服务器经常会被block,既然没有关闭选项只能先退回旧版,问下这个特性是哪个版本引入的
Update to the latest commit, add your local IP to the white list and enable ACL.
A sample ACL for your case can be found here:
https://github.com/shadowsocks/shadowsocks-libev/blob/master/acl/local.acl
If you really want to disable auto block:
in file src/server.c
in function static void report_addr(int fd, int err_level)
add a return; before the comment like this:
static void
report_addr(int fd, int err_level)
{
char *peer_name;
peer_name = get_peer_name(fd);
if (peer_name != NULL) {
LOGE("failed to handshake with %s", peer_name);
return; // Block all requests from this IP, if the err# exceeds 128.
if (check_block_list(peer_name, err_level)) {
LOGE("add %s to block list", peer_name);
}
}
}
save & make
but after that, your server will be unsafe
thanks
Max Lv [email protected]于2016年10月26日周三 10:33写道:
Update to the latest commit, add your local IP to the white list and
enable ACL.A sample ACL for your case can be found here:
https://github.com/shadowsocks/shadowsocks-libev/blob/master/acl/local.acl
—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
https://github.com/shadowsocks/shadowsocks-libev/issues/899#issuecomment-256233948,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJoPKdGqkVx1IgGNGSrVwRC1j0K7pnofks5q3rvugaJpZM4KgKxE
.
为什么会被经常block,咱的只是朋友使用时配置没调好然后不停错误连接被block而已。
Tevic [email protected]于2016年10月26日周三 10:04写道:
重启是可以解决的,只是升级到新版以后,之前用haproxy做的代理服务器经常会被block,既然没有关闭选项只能先退回旧版,问下这个特性是哪个版本引入的
—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
https://github.com/shadowsocks/shadowsocks-libev/issues/899#issuecomment-256230199,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJoPKZeVoLhUnxE_Nei4eWAyIuul9vQTks5q3rU8gaJpZM4KgKxE
.
@Sherlock-Holo 特殊情况下,8次的连接超时(例如TCP握手后第一个包还没成功发送),就会被block,新版本好像只要4次?我没看最新的代码,不过应该是这两个数字
不知道,反正被block后重启服务器就搞定了,至于朋友是试了多久被ban就不知道了
破娃酱 [email protected]于2016年10月27日周四 00:03写道:
@Sherlock-Holo https://github.com/Sherlock-Holo
特殊情况下,8次的连接超时(例如TCP握手后第一个包还没成功发送),就会被block,新版本好像只要4次?我没看最新的代码,不过应该是这两个数字—
You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub
https://github.com/shadowsocks/shadowsocks-libev/issues/899#issuecomment-256396076,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJoPKYfD8_tfIWSTo4KUeNIK7MaBUmBWks5q33nUgaJpZM4KgKxE
.
Most helpful comment
If you really want to disable auto block:
in file
src/server.cin function
static void report_addr(int fd, int err_level)add a
return;before the comment like this:save & make
but after that, your server will be unsafe