Dante 服务器因连接关闭

Dante 服务器因连接关闭

我正在使用 amazon aws 设置 socks5 服务器。在我的 vps 上,我有 ubuntu 18.04,我已通过 安装了 dante-server sudo apt-get install。之后,我编辑了 dante 配置文件并启用了 danted.service。它似乎工作正常,但我无法连接到它。要检查连接,我使用:

curl --socks5 proxyuser:proxypass@myvpsip:1080 ident.me; echo

这是 danted.conf:

logoutput: /var/log/socks.log

internal: eth0 port = 1080
external: eth0

socksmethod: username

user.privileged: root
user.unprivileged: nobody
user.libwrap: nobody

client pass {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: error connect disconnect
}

client block {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: connect error
}

socks pass {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: error connect disconnect
}

socks block {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: connect error
}

sudo systemctl status danted.service 返回:

danted.service - SOCKS (v4 and v5) proxy daemon (danted)
   Loaded: loaded (/lib/systemd/system/danted.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-06-07 13:26:44 UTC; 27min ago
     Docs: man:danted(8)
           man:danted.conf(5)
  Process: 19901 ExecStart=/usr/sbin/danted -D (code=exited, 

status=0/SUCCESS)
  Process: 19887 ExecStartPre=/bin/sh -c        uid=`sed -n -e "s/[[:space:]]//g" -e "s/#.*//" -e "/^user\.privileged/{s/[^:]*://p;q;}" /etc/danted.conf`;      if [ -n "$uid"
 Main PID: 19902 (danted)
    Tasks: 20 (limit: 1152)
   CGroup: ...

Jun 07 13:26:44 ip-172-31-10-116 systemd[1]: Stopped SOCKS (v4 and v5) proxy daemon (danted).
Jun 07 13:26:44 ip-172-31-10-116 systemd[1]: Starting SOCKS (v4 and v5) proxy daemon (danted)...
Jun 07 13:26:44 ip-172-31-10-116 systemd[1]: Started SOCKS (v4 and v5) proxy daemon (danted).

答案1

经过两天寻找解决方案,我发现必须打开所需的端口才能连接。我通过亚马逊网站上的 bar 成功完成了此操作。

相关内容