gpt4 book ai didi

ubuntu - DANTE SERVER v1.1.19 - ubuntu 上的错误配置 socks5

转载 作者:行者123 更新时间:2023-12-04 18:33:41 27 4
gpt4 key购买 nike

我已经按照本教程 dante sock5 configuration我有一个奇怪的错误。

下面是我的 danted.conf 文件:

# /etc/danted.conf

logoutput: syslog
user.privileged: root
user.notprivileged: nobody

# The listening network interface or address.
internal: 0.0.0.0 port=1080

# The proxying network interface or address.
external: eth0

# socks-rules determine what is proxied through the external interface.
# The default of "none" permits anonymous access.
socksmethod: username

# client-rules determine who can connect to the internal interface.
# The default of "none" permits anonymous access.
clientmethod: none

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

当我启动 dante 服务时,我收到以下错误消息:
Starting Dante SOCKS daemon: Nov 21 13:38:09 (1542803889) danted[21175]: /etc/danted.conf: error on line 15, near 's': syntax error

错误定位在“socksmethod:用户名”行。

我不知道如何解决它....我什至不知道从哪里开始我的调查...

[现在]

我已解决配置错误 ,在我的配置文件下面
# /etc/danted.conf

logoutput: syslog
user.privileged: root
user.notprivileged: nobody

# The listening network interface or address.
internal: 0.0.0.0 port=1080

# The proxying network interface or address.
external: eth0

# socks-rules determine what is proxied through the external interface.
# The default of "none" permits anonymous access.
method: username

# client-rules determine who can connect to the internal interface.
# The default of "none" permits anonymous access.
method: none

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

但现在我的连接是 拒绝
curl -v -x socks5://login:password@ip_adress:1080 http://www.google.com/
* Trying XX.XX.YYY.ZZZ...
* TCP_NODELAY set
* connect to XX.XX.YYY.ZZZ port 1080 failed: Connection refused
* Failed to connect to XX.XX.YYY.ZZZport port 1080: Connection refused
* Closing connection 0
curl: (7) Failed to connect to XX.XX.YYY.ZZZport port 1080: Connection refused

我的防火墙是 完全开放 !!

目前我不明白为什么有“客户通行证”和“ socks 通行证”....

也许错误就在那里!

请帮忙 !!

谢谢大家!

最佳答案

我想你可以试试这个配置文件。
检查 danted-servier 版本

danted -v
danted-server V1.1
internal: eth0  port = 1080
external: eth0
external.rotation: same-same
socksmethod: pam.username none
clientmethod: none
user.privileged: root
user.notprivileged: sock
logoutput: /var/log/danted.log
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
}
因为你的 danted-server 版本太旧了,你也可以试试新版本的 danted-server。
新旧版本的配置文件存在一些差异。
danted-server V1.4
logoutput: /var/log/socks.log
internal: eth0 port = 1080
external: eth0
clientmethod: none
socksmethod: none
user.privileged: root
user.notprivileged: 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 touch /var/log/socks.log
(以上任何配置文件均未添加帐户密码,您可以更改服务端口XD)

关于ubuntu - DANTE SERVER v1.1.19 - ubuntu 上的错误配置 socks5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53412291/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com