服务器配置V2ray问题



  • 安装环境 centOS 7
    操作界面为 搬瓦工 KiwiVM 的shell—root
    使用一叫脚本后,显示如下,请问是什么问题啊,导致无法进入下一步。

    [root /]# sed -i '/certbot/d' /etc/crontab

    [root /]# bash <(curl -sL https://raw.githubusercontent.com/hijkpw/scripts/master/centos_install_v2ray2.sh)
    #############################################################

    CentOS 7/8 v2ray 带伪装一键安装脚本

    网址: https://www.hijk.pw

    作者: hijk

    #############################################################

    系统版本: CentOS Linux release 7.3.1611 (Core) Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile

    • base: mirrors.usc.edu
    • extras: mirrors.usc.edu
    • updates: mirrors.usc.eduResolving Dependencies
      --> Running transaction check
      ---> Package bind-utils.x86_64 32:9.11.4-9.P2.el7 will be installed
      --> Processing Dependency: bind-libs-lite(x86-64) = 32:9.11.4-9.P2.el7 for package: 32:bind-utils-9.11.4-9.P2.el7.x86_64
      --> Processing Dependency: bind-libs(x86-64) = 32:9.11.4-9.P2.el7 for package: 32:bind-utils-9.11.4-9.P2.el7.x86_64
      --> Processing Dependency: liblwres.so.160()(64bit) for package: 32:bind-utils-9.11.4-9.P2.el7.x86_64
      --> Processing Dependency: libisccfg.so.160()(64bit) for package: 32:bind-utils-9.11.4-9.P2.el7.x86_64
      --> Processing Dependency: libisc.so.169()(64bit) for package: 32:bind-utils-9.11.4-9.P2.el7.x86_64
      --> Processing Dependency: libirs.so.160()(64bit) for package: 32:bind-utils-9.11.4-9.P2.el7.x86_64
      --> Processing Dependency: libdns.so.1102()(64bit) for package: 32:bind-utils-9.11.4-9.P2.el7.x86_64
      --> Processing Dependency: libbind9.so.160()(64bit) for package: 32:bind-utils-9.11.4-9.P2.el7.x86_64
      ---> Package curl.x86_64 0:7.29.0-35.el7.centos will be updated
      ---> Package curl.x86_64 0:7.29.0-54.el7_7.2 will be an update
      --> Processing Dependency: libcurl = 7.29.0-54.el7_7.2 for package: curl-7.29.0-54.el7_7.2.x86_64
      --> Running transaction check
      ---> Package bind-libs.x86_64 32:9.11.4-9.P2.el7 will be installed
      --> Processing Dependency: bind-license = 32:9.11.4-9.P2.el7 for package: 32:bind-libs-9.11.4-9.P2.el7.x86_64
      ---> Package bind-libs-lite.x86_64 32:9.9.4-37.el7 will be updated--> Processing Dependency: libdns-export.so.100()(64bit) for package: 12:dhclient-4.2.5-47.el7.centos.x86_64
      --> Processing Dependency: libisc-export.so.95()(64bit) for package: 12:dhclient-4.2.5-47.el7.centos.x86_64
      ---> Package bind-libs-lite.x86_64 32:9.11.4-9.P2.el7 will be an update
      ---> Package libcurl.x86_64 0:7.29.0-35.el7.centos will be updated
      ---> Package libcurl.x86_64 0:7.29.0-54.el7_7.2 will be an update
      --> Processing Dependency: nss-pem(x86-64) >= 1.0.3-5 for package: libcurl-7.29.0-54.el7_7.2.x86_64
      --> Processing Dependency: libssh2(x86-64) >= 1.8.0 for package: libcurl-7.29.0-54.el7_7.2.x86_64
      --> Processing Dependency: libnss3.so(NSS_3.34)(64bit) for package: libcurl-7.29.0-54.el7_7.2.x86_64
      --> Running transaction check
      ---> Package bind-license.noarch 32:9.9.4-37.el7 will be updated
      ---> Package bind-license.noarch 32:9.11.4-9.P2.el7 will be an update
      ---> Package dhclient.x86_64 12:4.2.5-47.el7.centos will be updated
      ---> Package dhclient.x86_64 12:4.2.5-77.el7.centos will be an update
      --> Processing Dependency: dhcp-libs(x86-64) = 12:4.2.5-77.el7.centos for package: 12:dhclient-4.2.5-77.el7.centos.x86_64
      --> Processing Dependency: dhcp-common = 12:4.2.5-77.el7.centos for package: 12:dhclient-4.2.5-77.el7.centos.x86_64
      --> Processing Dependency: libisc-export.so.169()(64bit) for package: 12:dhclient-4.2.5-77.el7.centos.x86_64
      --> Processing Dependency: libdns-export.so.1102()(64bit) for package: 12:dhclient-4.2.5-77.el7.centos.x86_64
      ---> Package libssh2.x86_64 0:1.4.3-10.el7_2.1 will be updated
      ---> Package libssh2.x86_64 0:1.8.0-3.el7 will be an update
      ---> Package nss.x86_64 0:3.21.0-17.el7 will be updated
      --> Processing Dependency: nss = 3.21.0-17.el7 for package: nss-sysinit-3.21.0-17.el7.x86_64
      --> Processing Dependency: nss(x86-64) = 3.21.0-17.el7 for package: nss-tools-3.21.0-17.el7.x86_64
      ---> Package nss.x86_64 0:3.44.0-7.el7_7 will be an update--> Processing Dependency: nss-util >= 3.44.0-3 for package: nss-3.44.0-7.el7_7.x86_64
      --> Processing Dependency: nss-softokn(x86-64) >= 3.44.0-1 for package: nss-3.44.0-7.el7_7.x86_64
      --> Processing Dependency: nspr >= 4.21.0 for package: nss-3.44.0-7.el7_7.x86_64
      --> Processing Dependency: libnssutil3.so(NSSUTIL_3.39)(64bit) for package: nss-3.44.0-7.el7_7.x86_64
      --> Processing Dependency: libnssutil3.so(NSSUTIL_3.38)(64bit) for package: nss-3.44.0-7.el7_7.x86_64
      --> Processing Dependency: libnssutil3.so(NSSUTIL_3.31)(64bit) for package: nss-3.44.0-7.el7_7.x86_64
      --> Processing Dependency: libnssutil3.so(NSSUTIL_3.24)(64bit) for package: nss-3.44.0-7.el7_7.x86_64
      ---> Package nss-pem.x86_64 0:1.0.3-7.el7 will be installed
      --> Running transaction check
      ---> Package bind-export-libs.x86_64 32:9.11.4-9.P2.el7 will be installed
      ---> Package dhcp-common.x86_64 12:4.2.5-47.el7.centos will be updated
      ---> Package dhcp-common.x86_64 12:4.2.5-77.el7.centos will be an update
      ---> Package dhcp-libs.x86_64 12:4.2.5-47.el7.centos will be updated
      ---> Package dhcp-libs.x86_64 12:4.2.5-77.el7.centos will be an update
      ---> Package nspr.x86_64 0:4.11.0-1.el7_2 will be updated
      ---> Package nspr.x86_64 0:4.21.0-1.el7 will be an update
      ---> Package nss-softokn.x86_64 0:3.16.2.3-14.4.el7 will be updated
      ---> Package nss-softokn.x86_64 0:3.44.0-8.el7_7 will be an update
      --> Processing Dependency: nss-softokn-freebl(x86-64) >= 3.44.0-8.el7_7 for package: nss-softokn-3.44.0-8.el7_7.x86_64
      ---> Package nss-sysinit.x86_64 0:3.21.0-17.el7 will be updated
      ---> Package nss-sysinit.x86_64 0:3.44.0-7.el7_7 will be an update
      ---> Package nss-tools.x86_64 0:3.21.0-17.el7 will be updated
      ---> Package nss-tools.x86_64 0:3.44.0-7.el7_7 will be an update
      ---> Package nss-util.x86_64 0:3.21.0-2.2.el7_2 will be updated
      ---> Package nss-util.x86_64 0:3.44.0-4.el7_7 will be an update
      --> Running transaction check
      ---> Package nss-softokn-freebl.x86_64 0:3.16.2.3-14.4.el7 will be updated
      ---> Package nss-softokn-freebl.x86_64 0:3.44.0-8.el7_7 will be an update--> Finished Dependency Resolution
      Dependencies Resolved

    ================================================================================
    Package Arch Version Repository Size

    Installing:
    bind-utils x86_64 32:9.11.4-9.P2.el7 base 258 k
    Updating:
    curl x86_64 7.29.0-54.el7_7.2 updates 270 k
    Installing for dependencies:
    bind-export-libs x86_64 32:9.11.4-9.P2.el7 base 1.1 M
    bind-libs x86_64 32:9.11.4-9.P2.el7 base 154 k
    nss-pem x86_64 1.0.3-7.el7 base 74 k
    Updating for dependencies:
    bind-libs-lite x86_64 32:9.11.4-9.P2.el7 base 1.1 M
    bind-license noarch 32:9.11.4-9.P2.el7 base 88 k
    dhclient x86_64 12:4.2.5-77.el7.centos base 285 k
    dhcp-common x86_64 12:4.2.5-77.el7.centos base 176 k
    dhcp-libs x86_64 12:4.2.5-77.el7.centos base 133 k
    libcurl x86_64 7.29.0-54.el7_7.2 updates 223 k
    libssh2 x86_64 1.8.0-3.el7 base 88 k
    nspr x86_64 4.21.0-1.el7 base 127 k
    nss x86_64 3.44.0-7.el7_7 updates 854 k
    nss-softokn x86_64 3.44.0-8.el7_7 updates 330 k
    nss-softokn-freebl x86_64 3.44.0-8.el7_7 updates 224 k
    nss-sysinit x86_64 3.44.0-7.el7_7 updates 65 k
    nss-tools x86_64 3.44.0-7.el7_7 updates 528 k
    nss-util x86_64 3.44.0-4.el7_7 updates 79 k

    Transaction Summary

    Install 1 Package (+ 3 Dependent packages)
    Upgrade 1 Package (+14 Dependent packages)

    Total download size: 6.1 M
    Downloading packages:
    Delta RPMs disabled because /usr/bin/applydeltarpm not installed.--------------------------------------------------------------------------------
    Total 2.9 MB/s | 6.1 MB 00:02
    Running transaction checkRunning transaction testTransaction test succeeded
    Running transaction Updating : nspr-4.21.0-1.el7.x86_64 1/34
    Updating : nss-util-3.44.0-4.el7_7.x86_64 2/34
    Updating : 12:dhcp-libs-4.2.5-77.el7.centos.x86_64 3/34
    Updating : 32:bind-license-9.11.4-9.P2.el7.noarch 4/34
    Updating : 32:bind-libs-lite-9.11.4-9.P2.el7.x86_64 5/34
    Installing : 32:bind-libs-9.11.4-9.P2.el7.x86_64 6/34
    Updating : 12:dhcp-common-4.2.5-77.el7.centos.x86_64 7/34
    Updating : nss-softokn-freebl-3.44.0-8.el7_7.x86_64 8/34
    Updating : nss-softokn-3.44.0-8.el7_7.x86_64 9/34
    Updating : nss-sysinit-3.44.0-7.el7_7.x86_64 10/34
    Installing : nss-pem-1.0.3-7.el7.x86_64 11/34
    Updating : nss-3.44.0-7.el7_7.x86_64 12/34
    Installing : 32:bind-export-libs-9.11.4-9.P2.el7.x86_64 13/34
    Updating : libssh2-1.8.0-3.el7.x86_64 14/34
    Updating : libcurl-7.29.0-54.el7_7.2.x86_64 15/34
    Updating : curl-7.29.0-54.el7_7.2.x86_64 16/34
    Updating : 12:dhclient-4.2.5-77.el7.centos.x86_64 17/34
    Updating : nss-tools-3.44.0-7.el7_7.x86_64 18/34
    Installing : 32:bind-utils-9.11.4-9.P2.el7.x86_64 19/34
    Cleanup : nss-tools-3.21.0-17.el7.x86_64 20/34
    Cleanup : curl-7.29.0-35.el7.centos.x86_64 21/34
    Cleanup : 12:dhclient-4.2.5-47.el7.centos.x86_64 22/34
    Cleanup : libcurl-7.29.0-35.el7.centos.x86_64 23/34
    Cleanup : 12:dhcp-common-4.2.5-47.el7.centos.x86_64 24/34
    Cleanup : nss-sysinit-3.21.0-17.el7.x86_64 25/34
    Cleanup : nss-3.21.0-17.el7.x86_64 26/34
    Cleanup : nss-softokn-3.16.2.3-14.4.el7.x86_64 27/34
    Cleanup : nss-util-3.21.0-2.2.el7_2.x86_64 28/34
    Cleanup : 32:bind-libs-lite-9.9.4-37.el7.x86_64 29/34
    Cleanup : 32:bind-license-9.9.4-37.el7.noarch 30/34
    Cleanup : 12:dhcp-libs-4.2.5-47.el7.centos.x86_64 31/34
    Cleanup : nspr-4.11.0-1.el7_2.x86_64 32/34
    Cleanup : nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64 33/34
    Cleanup : libssh2-1.4.3-10.el7_2.1.x86_64 34/34
    Verifying : 12:dhcp-common-4.2.5-77.el7.centos.x86_64 1/34
    Verifying : nss-tools-3.44.0-7.el7_7.x86_64 2/34
    Verifying : nss-3.44.0-7.el7_7.x86_64 3/34
    Verifying : libssh2-1.8.0-3.el7.x86_64 4/34
    Verifying : nss-sysinit-3.44.0-7.el7_7.x86_64 5/34
    Verifying : nss-util-3.44.0-4.el7_7.x86_64 6/34
    Verifying : 32:bind-export-libs-9.11.4-9.P2.el7.x86_64 7/34
    Verifying : nss-pem-1.0.3-7.el7.x86_64 8/34
    Verifying : curl-7.29.0-54.el7_7.2.x86_64 9/34
    Verifying : 32:bind-license-9.11.4-9.P2.el7.noarch 10/34
    Verifying : 32:bind-libs-lite-9.11.4-9.P2.el7.x86_64 11/34
    Verifying : 32:bind-utils-9.11.4-9.P2.el7.x86_64 12/34
    Verifying : 12:dhcp-libs-4.2.5-77.el7.centos.x86_64 13/34
    Verifying : libcurl-7.29.0-54.el7_7.2.x86_64 14/34
    Verifying : 32:bind-libs-9.11.4-9.P2.el7.x86_64 15/34
    Verifying : nspr-4.21.0-1.el7.x86_64 16/34
    Verifying : nss-softokn-freebl-3.44.0-8.el7_7.x86_64 17/34
    Verifying : nss-softokn-3.44.0-8.el7_7.x86_64 18/34
    Verifying : 12:dhclient-4.2.5-77.el7.centos.x86_64 19/34
    Verifying : nss-tools-3.21.0-17.el7.x86_64 20/34
    Verifying : libssh2-1.4.3-10.el7_2.1.x86_64 21/34
    Verifying : 32:bind-license-9.9.4-37.el7.noarch 22/34
    Verifying : 12:dhclient-4.2.5-47.el7.centos.x86_64 23/34
    Verifying : nss-3.21.0-17.el7.x86_64 24/34
    Verifying : 32:bind-libs-lite-9.9.4-37.el7.x86_64 25/34
    Verifying : nss-sysinit-3.21.0-17.el7.x86_64 26/34
    Verifying : nspr-4.11.0-1.el7_2.x86_64 27/34
    Verifying : nss-util-3.21.0-2.2.el7_2.x86_64 28/34
    Verifying : nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64 29/34
    Verifying : libcurl-7.29.0-35.el7.centos.x86_64 30/34
    Verifying : curl-7.29.0-35.el7.centos.x86_64 31/34
    Verifying : 12:dhcp-libs-4.2.5-47.el7.centos.x86_64 32/34
    Verifying : 12:dhcp-common-4.2.5-47.el7.centos.x86_64 33/34
    Verifying : nss-softokn-3.16.2.3-14.4.el7.x86_64 34/34

    Installed:
    bind-utils.x86_64 32:9.11.4-9.P2.el7

    Dependency Installed:
    bind-export-libs.x86_64 32:9.11.4-9.P2.el7
    bind-libs.x86_64 32:9.11.4-9.P2.el7
    nss-pem.x86_64 0:1.0.3-7.el7

    Updated:
    curl.x86_64 0:7.29.0-54.el7_7.2

    Dependency Updated:
    bind-libs-lite.x86_64 32:9.11.4-9.P2.el7
    bind-license.noarch 32:9.11.4-9.P2.el7
    dhclient.x86_64 12:4.2.5-77.el7.centos
    dhcp-common.x86_64 12:4.2.5-77.el7.centos
    dhcp-libs.x86_64 12:4.2.5-77.el7.centos
    libcurl.x86_64 0:7.29.0-54.el7_7.2
    libssh2.x86_64 0:1.8.0-3.el7
    nspr.x86_64 0:4.21.0-1.el7
    nss.x86_64 0:3.44.0-7.el7_7
    nss-softokn.x86_64 0:3.44.0-8.el7_7
    nss-softokn-freebl.x86_64 0:3.44.0-8.el7_7
    nss-sysinit.x86_64 0:3.44.0-7.el7_7
    nss-tools.x86_64 0:3.44.0-7.el7_7
    nss-util.x86_64 0:3.44.0-4.el7_7

    Complete!
    本脚本为带伪装的一键脚本,运行之前请确认如下条件已经具备:
    1. 一个域名
    2. 域名的某个主机名解析指向当前服务器ip(45.78.xxx.xxx)



  • 这个情况就需要你按y就好了啊,然后输入你的域名啥的



  • 看起来是shell不对,颜色输出不起作用



  • 不用用网页版终端,用bitvise/putty/xshell/secureCRT等终端,输出就是正常了



  • @zxxx 没有给输入Y的机会



  • @hijk 我有这方面考虑,主要是IP已经被墙了,没法使用Xshell,看来只能换IP 了啊



  • 如果有中转服务器,可以不用换



  • @hijk服务器配置V2ray问题 中说:

    如果有中转服务器,可以不用换

    现在是买了域名,挂了CDN,想拯救一下这个IP,这种情况下有什么办法用Xshell链接到服务器吗



  • @阿西吧 这种情况下挂个梯子应该能连上,要不找个免费梯子?



  • @匿名者 是个法子,临时用一下就好,我试试



  • 直接换ip吧,套CDN太慢了



  • cdn除非原来的很慢或者ip被墙,不建议用



  • @hijk服务器配置V2ray问题 中说:

    cdn除非原来的很慢或者ip被墙,不建议用

    用west world代理试了一下(免费3天)
    用某些APP测试能够出墙,但是仍然无法使用Xshell链接原服务器IP,ping原IP也ping不通,看来是只能换IP了



  • 代理不是vpn,绝大部分软件的流量默认都是直连的
    要想代理达到vpn的效果,需要用proxifier之类的软件,让xshell流量走代理,这样才能连过去



  • @hijk 明白了



  • @阿西吧

    电脑端的xshell应该可以在设置里设置sock5代理的吧

    linux命令行的ssh直接就可以走sock5代理:

    ssh -o ProxyCommand='nc -x 127.0.0.1:8081 %h %p' user@1.2.3.4



  • 为啥看留言很多人都喜欢用xshell?开源免费的putty/bitvise不好吗?为啥都用破解的xshell/securecrt这些玩意?



  • @hijk 可能一开始学用的时候,就被“误导”用的xshell吧...我也觉得putty挺好用的



  • putty基本上是最好的,要上传下载文件就用bitcise比较好


登录后回复