以下是我在没有任何身份验证的情况下连接到的 Dante SOCKS 代理服务器配置:
internal: eth0 port = 53200
internal: 127.0.0.1 port = 53200
external: eth0
clientmethod: none
method: none
user.privileged: root
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: error # connect disconnect
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp udp
log: error # connect disconnect
}
我在linux下建立了一个用户组,有很多成员。我希望该组的成员能够使用身份验证(通过 proxifier)连接到代理服务器。
如何使用 Dante 强制执行用户身份验证?
答案1
以下配置将强制执行身份验证:
internal: eth0 port = 53200
internal: 127.0.0.1 port = 53200
external: eth0
method: username
user.privileged: root
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: error # connect disconnect
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp udp
log: error # connect disconnect
}