SSR 故障排查

版权声明:本文为博主原创文章,可以自由转载。 https://blog.csdn.net/u010953692/article/details/88070800

1,确认IP和端口是否被屏蔽

  1. 使用ping 确认IP是否被屏蔽
$ ping 23.92.25.101
PING 23.92.25.101 (23.92.25.101): 56 data bytes
64 bytes from 23.92.25.101: icmp_seq=0 ttl=127 time=229.305 ms
64 bytes from 23.92.25.101: icmp_seq=1 ttl=127 time=229.329 ms
64 bytes from 23.92.25.101: icmp_seq=2 ttl=127 time=228.996 ms
  1. 使用 tcping 确认端口是否被屏蔽
  • MacOS 安装tcping
$ brew search tcping
$ brew install tcping
  • 服务器端口 53 开放
tcping 8.8.8.8 53
8.8.8.8 port 53 open.
  • ubuntu 安装tcpping
apt-cache search tcptraceroute
apt-get install -y tcptraceroute bc
cd /usr/bin/
wget -O tcping https://soft.mengclaw.com/Bash/TCP-PING
ls -lh | grep tcping
chmod +x tcping
ls -lh | grep tcping
# tcping 8.8.8.8 53
seq 0: tcp response from google-public-dns-a.google.com (8.8.8.8) [open]  26.032 ms
seq 1: tcp response from google-public-dns-a.google.com (8.8.8.8) [open]  27.606 ms

2,服务器ping的通,无法fq

在这里插入图片描述

  • 确认端口被屏蔽
$ tcping 23.92.25.101 6001
23.92.25.101 port 6001 closed.

3,SSR 修改配置文件,重启

  • SSR配置文件路径
# cat /etc/shadowsocks-r/config.json
  • SSR修改端口,重启
# /etc/init.d/shadowsocks-r status
# /etc/init.d/shadowsocks-r restart

参考:

  1. SSR故障查询与修复大全
  2. Linux下的TCP测试工具——TCPING安装简明教程

猜你喜欢

转载自blog.csdn.net/u010953692/article/details/88070800
ssr