【问题标题】:Dante Socks5 proxy server doesn't startDante Socks5 代理服务器无法启动
【发布时间】:2019-07-30 12:01:04
【问题描述】:

我已使用website 中的以下方法安装了 Dante 代理服务器。但是服务器没有启动并显示以下错误。我也尝试过其他网站的步骤。我搜索了 StackOverflow 并在一个问题中看到了同样的问题。但它已经解决了。任何人都可以解决它或建议我使用 SOCKS5 代理服务器的任何其他替代方案

Job for danted.service failed because the control process exited with error code. See "systemctl status danted.service" and "journalctl -xe" for details.

systemctl status danted.service & journalctl -xe 中显示错误

steven@steven-VirtualBox:~$ systemctl status danted.service
● danted.service - LSB: SOCKS (v4 and v5) proxy daemon (danted)
   Loaded: loaded (/etc/init.d/danted; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2019-03-10 18:12:42 IST; 2min 59s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3400 ExecStart=/etc/init.d/danted start (code=exited, status=1/FAILURE)

Mar 10 18:12:41 steven-VirtualBox systemd[1]: Starting LSB: SOCKS (v4 and v5) proxy daemon (danted)...
Mar 10 18:12:42 steven-VirtualBox danted[3405]: error: /etc/danted.conf: problem on line 11 near token "eth0": could not resolve hostname "eth0
Mar 10 18:12:42 steven-VirtualBox systemd[1]: danted.service: Control process exited, code=exited status=1
Mar 10 18:12:42 steven-VirtualBox danted[3400]: Starting Dante SOCKS daemon:
Mar 10 18:12:42 steven-VirtualBox systemd[1]: Failed to start LSB: SOCKS (v4 and v5) proxy daemon (danted).
Mar 10 18:12:42 steven-VirtualBox systemd[1]: danted.service: Unit entered failed state.
Mar 10 18:12:42 steven-VirtualBox systemd[1]: danted.service: Failed with result 'exit-code'.
steven@steven-VirtualBox:~$ journalctl -xe
-- The result is failed.
Mar 10 18:11:40 steven-VirtualBox systemd[1]: danted.service: Unit entered failed state.
Mar 10 18:11:40 steven-VirtualBox systemd[1]: danted.service: Failed with result 'exit-code'.
Mar 10 18:12:40 steven-VirtualBox sudo[3397]:   steven : TTY=pts/18 ; PWD=/home/steven ; USER=root ; COMMAND=/bin/systemctl restart danted
Mar 10 18:12:41 steven-VirtualBox sudo[3397]: pam_unix(sudo:session): session opened for user root by (uid=0)
Mar 10 18:12:41 steven-VirtualBox systemd[1]: Stopped LSB: SOCKS (v4 and v5) proxy daemon (danted).
-- Subject: Unit danted.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit danted.service has finished shutting down.
Mar 10 18:12:41 steven-VirtualBox systemd[1]: Starting LSB: SOCKS (v4 and v5) proxy daemon (danted)...
-- Subject: Unit danted.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit danted.service has begun starting up.
Mar 10 18:12:42 steven-VirtualBox danted[3405]: error: /etc/danted.conf: problem on line 11 near token "eth0": could not resolve hostname "eth0
Mar 10 18:12:42 steven-VirtualBox danted[3405]: alert: mother[1/1]: shutting down
Mar 10 18:12:42 steven-VirtualBox systemd[1]: danted.service: Control process exited, code=exited status=1
Mar 10 18:12:42 steven-VirtualBox danted[3400]: Starting Dante SOCKS daemon:
Mar 10 18:12:42 steven-VirtualBox sudo[3397]: pam_unix(sudo:session): session closed for user root
Mar 10 18:12:42 steven-VirtualBox systemd[1]: Failed to start LSB: SOCKS (v4 and v5) proxy daemon (danted).
-- Subject: Unit danted.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit danted.service has failed.
-- 
-- The result is failed.
Mar 10 18:12:42 steven-VirtualBox systemd[1]: danted.service: Unit entered failed state.
Mar 10 18:12:42 steven-VirtualBox systemd[1]: danted.service: Failed with result 'exit-code'.
Mar 10 18:12:50 steven-VirtualBox sudo[3407]:   steven : TTY=pts/18 ; PWD=/home/steven ; USER=root ; COMMAND=/bin/systemctl status danted
Mar 10 18:12:50 steven-VirtualBox sudo[3407]: pam_unix(sudo:session): session opened for user root by (uid=0)
Mar 10 18:14:38 steven-VirtualBox sudo[3407]: pam_unix(sudo:session): session closed for user root

【问题讨论】:

  • 你看到systemctl status danted.servicejournalctl -xe了吗?
  • 是的,我看到了......我现在更新了问题......
  • 看起来有一些错误输出可能会有所帮助,但您发布的输出在右侧被截断。
  • 我已经更新了错误输出。
  • 您是否阅读了输出并尝试寻找线索?这对我来说似乎是个问题:错误:/etc/danted.conf: problem on line 11 near token "eth0": could not resolve hostname "eth0 因此你应该看看你的 danted.conf 看看那里可能有什么问题

标签: proxy socks dante


【解决方案1】:

我遇到了同样的问题并遇到了您的问题。根据阅读此https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/

,我通过将 network-online.target 的 systemd 依赖项添加到 danted.service 来修复它

方法如下:

sudo systemctl edit danted.service

添加这个:

    [Unit]
    After=network-online.target
    Wants=network-online.target

保存并退出,运行此程序

sudo systemctl daemon-reload
sudo systemctl enable danted.service

【讨论】:

    【解决方案2】:

    这一行就是告诫:

    Mar 10 18:12:42 steven-VirtualBox danted[3405]: error: /etc/danted.conf: problem on line 11 near token "eth0": could not resolve hostname "eth0
    

    好像没有名为eth0的接口。

    我遇到了同样的问题,使用ifconfig 找出了实际接口的名称,然后换掉了eth0

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-25
      • 1970-01-01
      • 2016-03-24
      • 2019-11-06
      • 2020-10-12
      相关资源
      最近更新 更多