← 返回文章

VPN 问题

VPN 中遇到的一些问题及解决方法

服务器时间与当前系统时间不一致

问题:v2ray本机和服务器连不上报错socks: failed to transport all TCP response > io: read/write on closed pipe

解决方法:将服务器的时间同步。

  1. 修改时区:
ln -sf /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime
  1. 同步时间
ntpdate -u ntp.api.bz
  • ntpdate : 表示网络同步时间
  • -u 表示可以越过防火墙与主机同步
  • ntp.api.bz 是ntp服务器(上海)。如果命令报错,可能是ntp服务器停用了,可以搜索其他ntp服务器。
  1. 查看时间
$ date
Sun Jul 29 01:16:14 .... 

END