Dante(SOCKS 服务器)不工作

gre*_*mac 8 proxy socks dante

我正在尝试使用 dante 设置 SOCKS 代理以进行测试。但是,在查看了有关如何执行此操作的几个教程后,我什至无法将其与 Web 浏览器一起使用。

我在 IE 和 Firefox 中都尝试过,在这两种情况下,都使用“手动代理配置”,将除 SOCKS 主机之外的所有内容留空,然后输入我的代理的 IP 和端口号(1080)。我只是收到“找不到服务器”/“加载此页面的问题”,并且在调试模式下看不到任何内容,甚至在调试模式下运行。

如果我执行“telnet 10.0.0.40 1080”,我会在 danted 调试输出中看到连接打开,所以我知道很多工作正常。

这是我的配置:

logoutput: stdout /var/log/danted/danted.log
internal: eth0 port = 1080
external: eth0
method: username none #rfc931

user.privileged: proxy
user.notprivileged: nobody
user.libwrap: nobody

connecttimeout: 30   # on a lan, this should be enough if method is "none".

client pass {
        from: 10.0.0.0/8 port 1-65535 to: 0.0.0.0/0
}

client pass {
        from: 127.0.0.0/8 port 1-65535 to: 0.0.0.0/0
}

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

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

pass {
        from: 10.0.0.0/8 to: 0.0.0.0/0
        protocol: tcp udp
}

pass {
        from: 127.0.0.0/8 to: 0.0.0.0/0
        protocol: tcp udp
}

block {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: connect error
}
Run Code Online (Sandbox Code Playgroud)

我确定我可能遗漏了一些简单的东西,但我迷路了。自 90 年代末以来,我什至没有考虑过袜子。

Jam*_*s M 2

这是因为您的 dante-server 版本配置错误。

这是 Dante v1.4.2 的正确配置

#logoutput: /var/log/socks.log

internal: eth0 port = 1080
external: eth0

method: username none
user.privileged: root
user.notprivileged: nobody

#accept connections from any source (bad way)    
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: error connect disconnect
}

#accept from your white list source (good way way)
client pass {
from: 1.2.3.4/32 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
}

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

block {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect error
}
Run Code Online (Sandbox Code Playgroud)