我正在尝试使用 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: …
Run Code Online (Sandbox Code Playgroud) 我在具有多个公共 ip 地址的主机上有一个 Dante 服务器,但它无法绑定到主机的 ips。ips 是可以 ping 的,我有另一个服务在监听它们(不同的端口),它可以工作,所以我知道 ips 工作。在我的测试服务器上,它有 10 个公共地址,它没有问题,但在这个有数百个地址的服务器上却没有问题。错误:
debug: sockaddr2ifname(): address 138.xxx.93.2.51002 does not belong to interface
这是我的配置:
logoutput: /dev/stdout
debug: 1
internal: 138.xxx.93.2 port = 51002
external 138.xxx.93.2
external.rotation: same-same
socksmethod: username none
clientmethod: none
user.privileged: root
user.notprivileged: nobody
client pass {
from: 45.xxx.56.91/32 to: 138.xxx.93.2/32
log: error
}
socks pass {
from: 0/0 to: 0/0
session.state.key: from
session.state.max: 100
session.state.throttle: 10/2
}
Run Code Online (Sandbox Code Playgroud)