我正在尝试为测试目的建立一个使用dante的SOCKS代理。但是,在看了几个关于如何使用的教程之后,我甚至无法让它与web浏览器一起工作。
我在IE和Firefox中都试过了,在这两种情况下,我都使用了“手动代理配置”,除了SOCKS主机之外,所有东西都是空白的,然后输入代理的IP和端口号(1080)。我只是得到了“服务器未找到”/“加载此页面的问题”,而没有看到任何在danted模式下,甚至在调试模式下运行的内容。
如果我做了一个“telnet10.0.0.401080”,我确实看到了在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
}
我肯定我错过了一些简单的东西,但我迷路了。从90年代末S开始,我就连袜子都没想过。
发布于 2018-04-19 20:31:56
这是您的但丁服务器版本配置错误的原因。
以下是但丁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
}
https://serverfault.com/questions/121678
复制相似问题